/* JL Core Frontend Styles v2.0 */

/* === Adventure Doors Grid === */
.jl-doors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}
.jl-doors-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    max-width: 860px;
    margin: 16px auto 0;
}
.jl-door {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 28px;
    padding: 36px 20px;
    min-height: 180px;
    color: white;
    box-shadow: 0 8px 28px rgba(0,0,0,0.2), inset 0 -4px 0 rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}
.jl-door::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 60%);
    border-radius: 28px;
    pointer-events: none;
}
.jl-door:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 20px 45px rgba(0,0,0,0.25);
}
.jl-door-emoji {
    font-size: clamp(42px, 8vw, 58px);
    margin-bottom: 6px;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15));
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.jl-door:hover .jl-door-emoji { transform: scale(1.25) rotate(-8deg); }
.jl-door-label {
    font-family: 'Baloo 2', 'Fredoka', cursive;
    font-size: clamp(20px, 3.5vw, 26px);
    color: white;
    text-shadow: 0 2px 6px rgba(0,0,0,0.15);
    font-weight: 700;
}
.jl-door-count {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    margin-top: 2px;
}
@media (max-width: 600px) {
    .jl-doors-grid { gap: 10px; }
    .jl-doors-row-3 { grid-template-columns: 1fr 1fr; gap: 10px; }
    .jl-doors-row-3 .jl-door:last-child { grid-column: 1 / -1; }
    .jl-door { min-height: 140px; padding: 24px 14px; border-radius: 22px; }
}

/* === Horizontal Scroll Cards === */
.jl-content-section { margin: 48px 0; }
.jl-sec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(16px, 4vw, 40px);
    margin-bottom: 20px;
}
.jl-sec-header h2 {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    color: #2C3E50;
}
.jl-see-all {
    font-size: 14px;
    font-weight: 700;
    color: #F5A623;
    text-decoration: none;
}
.jl-h-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px clamp(16px, 4vw, 40px) 20px;
    scrollbar-width: none;
}
.jl-h-scroll::-webkit-scrollbar { display: none; }
.jl-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
    text-decoration: none;
    color: inherit;
}
.jl-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}
.jl-card-img {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #F0F7FF, #FFF8E7);
}
.jl-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.jl-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 48px;
}
.jl-card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}
.tag-story { background: rgba(245,166,35,0.85); color: white; }
.tag-game { background: rgba(123,198,126,0.85); color: white; }
.tag-activity { background: rgba(232,115,154,0.85); color: white; }
.tag-print { background: rgba(155,111,207,0.85); color: white; }
.tag-nasheed { background: rgba(92,191,207,0.85); color: white; }
.tag-video { background: rgba(74,144,217,0.85); color: white; }
.tag-dua { background: rgba(230,90,90,0.85); color: white; }
.jl-card-body { padding: 14px 16px; }
.jl-card-h {
    font-family: 'Fredoka', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 4px;
    line-height: 1.3;
}
.jl-card-meta {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

/* === Scroll Reveal Animation === */
.jl-rv {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.34,1.56,0.64,1);
}
.jl-rv.show {
    opacity: 1;
    transform: translateY(0);
}

/* === Empty State === */
.jl-empty-state {
    text-align: center;
    padding: 80px 24px;
    max-width: 480px;
    margin: 0 auto;
}
.jl-empty-state .emoji { font-size: 64px; margin-bottom: 16px; }
.jl-empty-state h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 28px;
    color: #2C3E50;
    margin-bottom: 8px;
}
.jl-empty-state p { color: #999; font-size: 16px; line-height: 1.6; }
