/* =====================================================
   Yuli.DP91b 國立玉里高中資料處理科91級畢業生  ·  Immersive Dark Theme
   ===================================================== */
:root {
    --clr-lime: #7eb8f7;
    --clr-lime2: #4a90d9;
    --clr-cyan: #5ce8f5;
    --clr-yellow: #f5d76e;
    --clr-red: #f07070;
    --clr-white: #f0f2f8;
    --clr-muted: #7b8494;
    --clr-muted2: #a8b0bf;
    --clr-bg: #0d1117;
    --clr-glass: rgba(10,14,22,.72);
    --clr-glass2: rgba(14,19,30,.85);
    --clr-border: rgba(126,184,247,.18);
    --shadow: 0 8px 32px rgba(0,0,0,.55);
    --blur: blur(14px);
    --radius: 12px;
    --radius-sm: 7px;
}

/* ── Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html, body {
    background: var(--clr-bg);
    color: var(--clr-white);
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
}

a {
    color: var(--clr-cyan);
    text-decoration: none;
    transition: color .2s;
}

    a:hover {
        color: var(--clr-lime);
    }

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #0a0d14;
}

::-webkit-scrollbar-thumb {
    background: rgba(126,184,247,.3);
    border-radius: 3px;
}

/* ══════════════════════════════════════════════
   HERO SLIDESHOW
══════════════════════════════════════════════ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    background: #000;
}

/* Slides */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    transform: scale(1.05);
    animation: none;
}

    .hero-slide.active {
        opacity: 1;
        animation: kenburns 7s ease forwards;
    }

@keyframes kenburns {
    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1.0);
    }
}

/* Gradient overlays */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,.1) 40%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.85) 100% );
    z-index: 2;
    pointer-events: none;
}

/* ── Navbar (inside hero) ── */
.hero-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2rem;
    gap: 1rem;
}

.hero-brand {
    color: var(--clr-lime) !important;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.hero-brand-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--clr-lime);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .4;
        transform: scale(.7)
    }
}

.hero-nav-links {
    display: flex;
    gap: .2rem;
    list-style: none;
}

    .hero-nav-links a {
        color: rgba(255,255,255,.85);
        font-size: .82rem;
        font-weight: 600;
        letter-spacing: .5px;
        padding: .4rem .9rem;
        border-radius: 20px;
        transition: all .2s;
        text-shadow: 0 1px 4px rgba(0,0,0,.5);
    }

        .hero-nav-links a:hover,
        .hero-nav-links a.active {
            background: rgba(126,184,247,.15);
            color: var(--clr-lime);
            backdrop-filter: blur(8px);
        }

.hero-nav-toggler {
    display: none;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    border-radius: 6px;
    padding: .35rem .55rem;
    font-size: 1.1rem;
    cursor: pointer;
}

/* ── Hero Center Content ── */
.hero-content {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    z-index: 5;
    text-align: center;
    padding: 0 1.5rem;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,.7);
    letter-spacing: 2px;
    line-height: 1.1;
}

    .hero-title span {
        color: var(--clr-lime);
    }

.hero-subtitle {
    font-size: clamp(.85rem, 2vw, 1.05rem);
    color: rgba(255,255,255,.8);
    margin-top: .5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
    letter-spacing: .5px;
}

.hero-caption-box {
    display: inline-block;
    margin-top: 1.2rem;
    padding: .35rem 1.2rem;
    background: rgba(126,184,247,.12);
    border: 1px solid rgba(126,184,247,.35);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    font-size: .88rem;
    color: var(--clr-lime);
    letter-spacing: .3px;
    transition: opacity .5s;
}

/* ── Counter ── */
.hero-counter {
    margin-top: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.hero-counter-label {
    font-size: .75rem;
    color: rgba(255,255,255,.55);
    letter-spacing: .5px;
}

.counter-wrap {
    display: inline-flex;
    gap: 2px;
    background: rgba(0,0,0,.6);
    border: 1px solid rgba(126,184,247,.4);
    border-radius: 5px;
    padding: 3px 6px;
    box-shadow: 0 0 12px rgba(126,184,247,.15);
}

.counter-digit {
    width: 20px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: linear-gradient(180deg,#1a1a1a,#0a0a0a);
    color: var(--clr-lime);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 17px;
    border-radius: 3px;
    border: 1px solid #222;
}

/* ── Slide Controls ── */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.85);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    backdrop-filter: blur(6px);
}

    .hero-arrow:hover {
        background: rgba(126,184,247,.2);
        color: var(--clr-lime);
        border-color: var(--clr-lime);
    }

.hero-arrow-prev {
    left: 1.2rem;
}

.hero-arrow-next {
    right: 1.2rem;
}

.hero-controls {
    position: absolute;
    bottom: 26px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
}

.hero-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    border: 1px solid rgba(255,255,255,.4);
    cursor: pointer;
    transition: all .3s;
}

    .hero-dot.active {
        background: var(--clr-lime);
        border-color: var(--clr-lime);
        transform: scale(1.4);
        box-shadow: 0 0 6px var(--clr-lime);
    }

    .hero-dot:hover {
        background: rgba(255,255,255,.7);
    }

.hero-pause {
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.7);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: .85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    backdrop-filter: blur(6px);
}

    .hero-pause:hover {
        color: var(--clr-lime);
        border-color: var(--clr-lime);
    }

/* Progress bar */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--clr-lime);
    z-index: 10;
    transition: width .1s linear;
    box-shadow: 0 0 8px var(--clr-lime);
}

/* ══════════════════════════════════════════════
   PAGE STICKY NAV (non-hero pages)
══════════════════════════════════════════════ */
.page-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--clr-glass2);
    backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--clr-border);
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
}

    .page-nav .navbar-brand {
        color: var(--clr-lime) !important;
        font-weight: 800;
        font-size: 1.05rem;
        display: flex;
        align-items: center;
        gap: .4rem;
    }

        .page-nav .navbar-brand .brand-dot {
            width: 7px;
            height: 7px;
            background: var(--clr-lime);
            border-radius: 50%;
            animation: pulse 2s infinite;
            display: inline-block;
        }

    .page-nav .nav-link {
        color: var(--clr-muted2) !important;
        font-size: .83rem;
        font-weight: 600;
        padding: .4rem .8rem;
        border-radius: 20px;
        transition: all .2s;
    }

        .page-nav .nav-link:hover,
        .page-nav .nav-link.active {
            background: rgba(126,184,247,.12);
            color: var(--clr-lime) !important;
        }

    .page-nav .navbar-toggler {
        border-color: rgba(126,184,247,.4);
    }

    .page-nav .navbar-toggler-icon {
        filter: invert(1);
    }

/* ══════════════════════════════════════════════
   CONTENT SECTION (below hero on index)
══════════════════════════════════════════════ */
.content-section {
    position: relative;
    overflow: hidden;
}

.content-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(.35);
    transform: scale(1.08);
    z-index: 0;
}

.content-inner {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ══════════════════════════════════════════════
   GLASS CARDS
══════════════════════════════════════════════ */
.glass-card {
    background: var(--clr-glass);
    backdrop-filter: var(--blur);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .3s, border-color .3s;
}

    .glass-card:hover {
        box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(126,184,247,.15);
        border-color: rgba(126,184,247,.28);
    }

    .glass-card .card-header {
        background: rgba(255,255,255,.04);
        border-bottom: 1px solid rgba(255,255,255,.08);
        padding: .75rem 1.1rem;
        display: flex;
        align-items: center;
        gap: .5rem;
        font-weight: 700;
        font-size: .88rem;
        color: var(--clr-lime);
    }

    .glass-card .card-body {
        padding: 1rem;
    }

/* ── Buttons ── */
.btn-glass {
    background: rgba(126,184,247,.1);
    color: var(--clr-lime);
    border: 1px solid rgba(126,184,247,.3);
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    padding: .3rem .9rem;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    text-decoration: none;
}

    .btn-glass:hover {
        background: rgba(126,184,247,.2);
        color: var(--clr-lime);
        border-color: var(--clr-lime);
        box-shadow: 0 0 12px rgba(126,184,247,.2);
        transform: translateY(-1px);
    }

.btn-glass-lg {
    padding: .55rem 1.4rem;
    font-size: .88rem;
    border-radius: 25px;
}

/* ── Section Title ── */
.section-title {
    color: var(--clr-lime);
    font-weight: 800;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1;
}

/* ── Items grid ── */
.item-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: .6rem .8rem;
}

.item-num {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.6);
    border-radius: var(--radius-sm);
    font-size: .77rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
}

    .item-num:hover {
        border-color: var(--clr-yellow);
        color: var(--clr-yellow);
        background: rgba(245,215,110,.08);
        transform: translateY(-1px);
    }

    .item-num.active {
        border-color: var(--clr-lime);
        color: #0d1117;
        background: var(--clr-lime);
        box-shadow: 0 0 8px rgba(126,184,247,.4);
    }

a.item-num {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.item-title-preview {
    min-height: 1.5em;
    padding: .25rem .8rem;
    background: rgba(126,184,247,.04);
    border-top: 1px solid rgba(255,255,255,.05);
    font-size: .77rem;
    color: var(--clr-lime);
    font-style: italic;
}

/* ── Detail pane ── */
.detail-pane {
    padding: .9rem 1rem;
}

.detail-date {
    color: var(--clr-lime);
    font-size: .78rem;
    text-align: right;
    margin-bottom: .5rem;
    font-weight: 600;
}

.detail-label {
    color: var(--clr-lime);
    font-weight: 700;
    font-size: .8rem;
    text-align: right;
    padding-right: .7rem;
    white-space: nowrap;
    vertical-align: top;
    padding-top: 4px;
    width: 60px;
}

.detail-value {
    color: var(--clr-white);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding-bottom: 4px;
    padding-left: 2px;
    font-size: .87rem;
    word-break: break-word;
}

/* ── Random Photo ── */
.rnd-photo-wrap {
    position: relative;
    text-align: center;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .rnd-photo-wrap img {
        width: 100%;
        max-height: 230px;
        object-fit: cover;
        cursor: pointer;
        transition: transform .4s ease, filter .4s ease;
        filter: brightness(.85);
    }

    .rnd-photo-wrap:hover img {
        transform: scale(1.04);
        filter: brightness(1);
    }

.rnd-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    padding: .5rem .8rem .4rem;
    font-size: .75rem;
    color: var(--clr-lime);
    display: flex;
    align-items: center;
    gap: .3rem;
}

/* ── News sidebar ── */
.news-item {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    padding: .3rem .3rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: background .15s;
}

    .news-item:last-child {
        border-bottom: none;
    }

    .news-item:hover {
        background: rgba(255,255,255,.03);
    }

.news-date {
    color: var(--clr-lime);
    font-size: .71rem;
    white-space: nowrap;
    font-weight: 600;
}

.news-ttl {
    color: var(--clr-muted2);
    font-size: .8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    transition: color .15s;
}

.news-item:hover .news-ttl {
    color: var(--clr-white);
}

/* ── List rows (Blog/Link) ── */
.list-row {
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: .8rem 1.1rem;
    transition: background .15s;
    position: relative;
}

    .list-row:last-child {
        border-bottom: none;
    }

    .list-row:hover {
        background: rgba(255,255,255,.03);
    }

    .list-row::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--clr-lime);
        opacity: 0;
        transition: opacity .2s;
        border-radius: 0 2px 2px 0;
    }

    .list-row:hover::before {
        opacity: 1;
    }

.list-row-title {
    font-weight: 700;
    color: var(--clr-cyan);
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.list-row-date {
    color: var(--clr-muted);
    font-size: .74rem;
}

.list-row-desc {
    color: var(--clr-muted2);
    font-size: .8rem;
    margin-top: 3px;
    line-height: 1.55;
}

/* ══════════════════════════════════════════════
   PAGE HERO (other pages)
══════════════════════════════════════════════ */
.page-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(3px) brightness(.4);
    transform: scale(1.06);
    z-index: 0;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(13,17,23,.9) 100%);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem 2rem;
    width: 100%;
}

.page-hero-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    gap: .5rem;
}

    .page-hero-title i {
        color: var(--clr-lime);
    }

/* ══════════════════════════════════════════════
   PHOTO GALLERY
══════════════════════════════════════════════ */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .6rem;
    padding: .8rem;
}

.album-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: all .25s;
    text-align: center;
    text-decoration: none;
    display: block;
}

    .album-card:hover, .album-card.active {
        border-color: var(--clr-lime);
        box-shadow: 0 0 16px rgba(126,184,247,.2);
        transform: translateY(-3px);
    }

    .album-card img {
        width: 100%;
        height: 85px;
        object-fit: cover;
        display: block;
        filter: brightness(.75);
        transition: filter .25s, transform .3s;
    }

    .album-card:hover img, .album-card.active img {
        filter: brightness(1);
        transform: scale(1.04);
    }

.album-card-name {
    color: var(--clr-lime);
    font-size: .72rem;
    padding: 5px 4px 6px;
    font-weight: 600;
    word-break: break-all;
}

.photo-main-display {
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

    .photo-main-display img {
        width: 100%;
        max-height: 70vh;
        object-fit: contain;
        display: block;
        cursor: zoom-in;
        transition: transform .3s;
    }

        .photo-main-display img:hover {
            transform: scale(1.02);
        }

.photo-thumb-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: .6rem;
}

.photo-thumb {
    width: 74px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: .55;
    transition: all .2s;
}

    .photo-thumb:hover, .photo-thumb.active {
        opacity: 1;
        border-color: var(--clr-lime);
        box-shadow: 0 0 8px rgba(126,184,247,.3);
    }

/* ══════════════════════════════════════════════
   MODALS
══════════════════════════════════════════════ */
.modal-dark .modal-content {
    background: rgba(12,16,26,.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(126,184,247,.25);
    border-radius: var(--radius);
    color: var(--clr-white);
    box-shadow: 0 0 60px rgba(0,0,0,.7), 0 0 0 1px rgba(126,184,247,.1);
}

.modal-dark .modal-header {
    background: rgba(255,255,255,.03);
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: 1rem 1.3rem;
}

.modal-dark .modal-title {
    color: var(--clr-lime);
    font-weight: 800;
    font-size: 1rem;
}

.modal-dark .btn-close {
    filter: invert(1) brightness(.6);
}

.modal-dark .modal-footer {
    border-top: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.02);
    padding: .75rem 1.3rem;
}

/* ── Dark Form ── */
.dark-form label {
    color: var(--clr-lime);
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: .2rem;
}

.dark-form .form-control {
    background: rgba(255,255,255,.06);
    color: var(--clr-yellow);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-sm);
    font-size: .87rem;
    padding: .45rem .75rem;
    transition: all .2s;
}

    .dark-form .form-control:focus {
        background: rgba(255,255,255,.09);
        color: var(--clr-yellow);
        border-color: var(--clr-lime);
        box-shadow: 0 0 0 2px rgba(126,184,247,.12);
    }

    .dark-form .form-control::placeholder {
        color: rgba(255,255,255,.25);
    }

.dark-form textarea.form-control {
    resize: vertical;
}

/* ── Alerts ── */
.alert-ok {
    background: rgba(126,184,247,.08);
    border: 1px solid rgba(126,184,247,.4);
    color: var(--clr-lime);
    border-radius: var(--radius-sm);
    padding: .5rem .9rem;
    font-size: .83rem;
    margin-bottom: .8rem;
}

.alert-err {
    background: rgba(240,112,112,.08);
    border: 1px solid rgba(240,112,112,.4);
    color: var(--clr-red);
    border-radius: var(--radius-sm);
    padding: .5rem .9rem;
    font-size: .83rem;
    margin-bottom: .8rem;
}

/* ══════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════ */
.pagination-dark .page-link {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.1);
    color: var(--clr-muted2);
    font-size: .82rem;
    padding: .35rem .65rem;
}

    .pagination-dark .page-link:hover {
        background: rgba(126,184,247,.1);
        color: var(--clr-lime);
        border-color: rgba(126,184,247,.3);
    }

.pagination-dark .page-item.active .page-link {
    background: var(--clr-lime);
    border-color: var(--clr-lime);
    color: #1a1a1a;
    font-weight: 700;
}

.pagination-dark .page-item.disabled .page-link {
    color: rgba(255,255,255,.2);
}

/* ══════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.93);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    cursor: zoom-out;
    animation: fadeIn .2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 87vh;
    border: 2px solid rgba(126,184,247,.4);
    border-radius: var(--radius-sm);
    box-shadow: 0 0 80px rgba(126,184,247,.1);
    cursor: default;
    animation: zoomIn .25s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(.9);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    color: var(--clr-lime);
    font-size: 1.6rem;
    cursor: pointer;
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(126,184,247,.3);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    z-index: 10000;
}

    .lightbox-close:hover {
        background: var(--clr-lime);
        color: #1a1a1a;
    }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
    text-align: center;
    padding: 1.2rem;
    font-size: .75rem;
    color: var(--clr-muted);
    border-top: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.02);
}

    .site-footer a {
        color: var(--clr-lime);
    }

        .site-footer a:hover {
            text-decoration: underline;
        }

/* ══════════════════════════════════════════════
   MAIN WRAPPER
══════════════════════════════════════════════ */
.main-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    min-height: calc(100vh - 320px);
    padding: 1.5rem max(1rem, calc(50% - 580px));
}

.main-bg {
    position: absolute;
    inset: 0;
    background-color: #0f0f0f;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 300px 300px;
    z-index: 0;
}

.main-wrapper > *:not(.main-bg) {
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════════
   BACKWARD-COMPAT ALIASES (older views)
══════════════════════════════════════════════ */
.dark-card {
    background: var(--clr-glass);
    backdrop-filter: var(--blur);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: .75rem;
}

    .dark-card .card-header {
        background: rgba(255,255,255,.04);
        border-bottom: 1px solid rgba(255,255,255,.08);
        padding: .75rem 1.1rem;
        display: flex;
        align-items: center;
        gap: .5rem;
        font-weight: 700;
        font-size: .88rem;
        color: var(--clr-lime);
    }

    .dark-card .card-body {
        padding: 1rem;
    }

.section-icon {
    color: var(--clr-lime);
}

.tag-primary {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: rgba(126,184,247,.08);
    border: 1px solid rgba(126,184,247,.25);
    color: var(--clr-lime);
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    padding: 2px 8px;
}

.btn-site {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: rgba(255,255,255,.07);
    color: var(--clr-muted2);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    padding: .3rem .9rem;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}

    .btn-site:hover {
        background: rgba(255,255,255,.12);
        color: var(--clr-white);
    }

.btn-site-add {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: rgba(126,184,247,.1);
    color: var(--clr-lime);
    border: 1px solid rgba(126,184,247,.3);
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    padding: .3rem .9rem;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}

    .btn-site-add:hover {
        background: rgba(126,184,247,.2);
        border-color: var(--clr-lime);
        box-shadow: 0 0 12px rgba(126,184,247,.2);
        transform: translateY(-1px);
    }

.list-section {
}

/* ── tag ── */
.tag {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: rgba(126,184,247,.08);
    border: 1px solid rgba(126,184,247,.25);
    color: var(--clr-lime);
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    padding: 2px 8px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .hero-nav-links {
        display: none;
    }

        .hero-nav-links.show {
            display: flex;
            flex-direction: column;
            position: absolute;
            top: 60px;
            right: 1rem;
            background: rgba(0,0,0,.85);
            backdrop-filter: blur(12px);
            border: 1px solid var(--clr-border);
            border-radius: var(--radius-sm);
            padding: .5rem;
        }

    .hero-nav-toggler {
        display: flex;
    }

    .hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .page-hero {
        height: 280px;
    }

    .page-hero-title {
        font-size: 1.3rem;
    }

    .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .photo-thumb {
        width: 60px;
        height: 45px;
    }

    .main-wrapper {
        padding: 1rem .75rem;
        min-height: calc(100vh - 260px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .counter-digit {
        width: 17px;
        height: 24px;
        line-height: 24px;
        font-size: 14px;
    }
}
