/* ================================
   J STUDIO PAGE - Gold/Navy Theme
   ================================ */

/* Hero */
.jstudio-hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 72px;
}
.jstudio-hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #09102A 0%, #111B3D 50%, #0c2340 100%);
    z-index: 0;
}
.jstudio-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,224,140,.06) 0%, transparent 70%);
    z-index: 1;
}
.jstudio-hero .container {
    position: relative;
    z-index: 2;
}
.jstudio-hero__content {
    text-align: center;
    padding: 60px 0;
}
.jstudio-hero__content .hero-label {
    font-family: 'Outfit', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    color: #FFE08C;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.jstudio-hero__content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.jstudio-hero__content .gold-text {
    color: #FFE08C;
}
.jstudio-hero__desc {
    font-size: 1rem;
    color: rgba(255,255,255,.55);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Content Section */
.jstudio-content {
    padding: 80px 0;
    background: #f8f9fc;
}

/* Hobby Grid */
.hobby-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 1100px;
    margin: 0 auto;
}

/* Hobby Card */
.hobby-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 320px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(9,16,42,.08);
    transition: transform .4s ease, box-shadow .4s ease;
}
.hobby-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(9,16,42,.15);
}

.hobby-card__img {
    position: absolute;
    inset: 0;
}
.hobby-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.hobby-card:hover .hobby-card__img img {
    transform: scale(1.08);
}

.hobby-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9,16,42,.85) 0%, rgba(9,16,42,.2) 50%, transparent 100%);
    transition: background .3s ease;
}
.hobby-card:hover .hobby-card__overlay {
    background: linear-gradient(to top, rgba(9,16,42,.9) 0%, rgba(9,16,42,.4) 60%, rgba(9,16,42,.2) 100%);
}

.hobby-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    z-index: 2;
    color: #fff;
}

.hobby-card__num {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255,224,140,.12);
    line-height: 1;
    z-index: 2;
    transition: color .3s ease;
}
.hobby-card:hover .hobby-card__num {
    color: rgba(255,224,140,.25);
}

.hobby-card__tag {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: .7rem;
    font-weight: 600;
    color: #FFE08C;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hobby-card__body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.hobby-card__body p {
    font-size: .85rem;
    color: rgba(255,255,255,.6);
    line-height: 1.5;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
}
.hobby-card:hover .hobby-card__body p {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   HOBBY MODAL
   ================================ */
.hobby-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.hobby-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(9,16,42,.85);
    backdrop-filter: blur(8px);
}

.hobby-modal__content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    box-shadow: 0 20px 60px rgba(9,16,42,.3);
    overflow: hidden;
    animation: modalIn .3s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(.95) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.hobby-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: rgba(255,255,255,.7);
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: .3s ease;
}
.hobby-modal__close:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.hobby-modal__header {
    background: linear-gradient(135deg, #09102A 0%, #111B3D 100%);
    color: #fff;
    padding: 28px 32px;
    text-align: center;
}
.hobby-modal__header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
}
.hobby-modal__subtitle {
    display: block;
    margin-top: 6px;
    font-size: .9rem;
    color: rgba(255,255,255,.6);
}

.hobby-modal__body {
    padding: 28px;
    max-height: calc(90vh - 160px);
    overflow-y: auto;
}

.hobby-modal__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.hobby-modal__photo {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(9,16,42,.08);
    transition: .3s ease;
    cursor: pointer;
}
.hobby-modal__photo:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(9,16,42,.12);
}
.hobby-modal__photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .3s ease;
}
.hobby-modal__photo:hover img {
    transform: scale(1.05);
}

.hobby-modal__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(9,16,42,.08);
    font-size: .85rem;
    color: #64748b;
}
.hobby-modal__count {
    font-weight: 600;
    color: #09102A;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    animation: fadeIn .2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    padding: 8px;
    transition: .3s ease;
}
.lightbox-close:hover {
    color: #FFE08C;
}
.lightbox-image {
    max-width: 100%;
    max-height: calc(90vh - 60px);
    object-fit: contain;
    border-radius: 8px;
}
.lightbox-caption {
    color: rgba(255,255,255,.7);
    text-align: center;
    margin-top: 16px;
    font-size: .95rem;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 968px) {
    .hobby-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .jstudio-hero {
        min-height: 35vh;
    }
    .jstudio-hero__content {
        padding: 40px 0;
    }
    .jstudio-hero__content h1 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }
    .jstudio-content {
        padding: 60px 0;
    }
    .hobby-grid {
        gap: 16px;
    }
    .hobby-card {
        height: 280px;
    }
    .hobby-card__body {
        padding: 20px;
    }
    .hobby-card__body h3 {
        font-size: 1.15rem;
    }
    .hobby-card__num {
        font-size: 2rem;
        top: 14px;
        right: 16px;
    }

    .hobby-modal__content {
        max-width: 95vw;
        max-height: 95vh;
    }
    .hobby-modal__header {
        padding: 20px;
    }
    .hobby-modal__header h2 {
        font-size: 1.3rem;
    }
    .hobby-modal__body {
        padding: 20px;
    }
    .hobby-modal__gallery {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
    .hobby-modal__info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hobby-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .hobby-card {
        height: 240px;
    }
    .jstudio-content {
        padding: 48px 0;
    }
    .hobby-card__body h3 {
        font-size: 1.1rem;
    }
    .hobby-card__body p {
        font-size: .8rem;
    }
}
