/* =============================================
   Yami Records – Clean Dark Minimal
   ============================================= */

:root {
    --bg: #0e0e0e;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222;
    --text: #e8e8e8;
    --text-muted: #ccc;
    --accent: #fff;
    --accent-green: #4ade80;
    --accent-green-dim: rgba(74, 222, 128, .12);
    --accent-red: #ef4444;
    --border: rgba(255,255,255,.08);
    --radius: 10px;
}

/* --- Base -------------------------------------------------- */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--text); }
a:hover { color: #fff; }

::selection {
    background: rgba(255,255,255,.15);
}

/* --- Navbar ------------------------------------------------ */
.navbar {
    background: rgba(14,14,14,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: .75rem 0;
    z-index: 1000;
}

.navbar-logo {
    height: 60px;
    filter: brightness(1);
}

.nav-top-link {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .02em;
    transition: color .15s;
}

.nav-top-link:hover {
    color: #fff;
}

/* --- Hero banner ------------------------------------------- */
.hero-banner {
    position: relative;
    width: 100%;
    padding-top: 60px; /* navbar offset */
    background: #000;
    overflow: hidden;
    max-height: 70vh;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(14,14,14,.1) 0%, rgba(14,14,14,.75) 80%, rgba(14,14,14,1) 100%);
}

.hero-banner-content {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
}

.hero-banner-content .hero-tagline {
    color: rgba(255,255,255,.85);
    font-size: 1rem;
}

.hero-banner-content .hero-livestream {
    color: rgba(255,255,255,.7);
}

/* --- Hero intro (below banner) ----------------------------- */
.hero-intro {
    padding: 2.5rem 1rem 2rem;
}

.hero-tagline {
    font-size: .95rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: .04em;
    margin: 0;
}

.hero-livestream {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-muted);
    font-size: .85rem;
    letter-spacing: .3px;
}

.livestream-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: .3; }
    50% { opacity: 1; }
}

/* --- Content pages ----------------------------------------- */
.content-page {
    padding-top: 110px;
    padding-bottom: 60px;
    flex: 1;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

/* --- Gate page --------------------------------------------- */
.gate-page {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 60px;
}

.gate-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
}

.gate-icon {
    font-size: 2rem;
    opacity: .4;
}

.gate-card .form-control {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
}

.gate-card .form-control:focus {
    border-color: rgba(255,255,255,.25);
    box-shadow: 0 0 0 .2rem rgba(255,255,255,.06);
}

.gate-card .btn-light {
    background: #fff;
    color: #000;
    font-weight: 500;
    border: none;
}

.gate-card .btn-light:hover {
    background: #e0e0e0;
}

/* --- Event cards ------------------------------------------- */
.event-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: all .2s;
    position: relative;
    height: 100%;
}

.event-card:hover {
    background: var(--bg-card-hover);
    color: #fff;
    border-color: rgba(255,255,255,.15);
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    font-size: .82rem;
    color: var(--text-muted);
}

.event-arrow {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: .3;
    transition: opacity .2s;
}

.event-card:hover .event-arrow {
    opacity: .8;
}

/* --- Filter tabs ------------------------------------------- */
.filter-tabs {
    display: flex;
    gap: .25rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.filter-tab {
    padding: .5rem 1rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all .15s;
}

.filter-tab:hover {
    color: var(--text);
}

.filter-tab.active {
    color: #fff;
    border-bottom-color: #fff;
}

/* --- Date groups ------------------------------------------- */
.date-header {
    font-size: .9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
}

/* --- Slot cards -------------------------------------------- */
.slot-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    height: 100%;
    transition: all .2s;
}

.slot-card.slot-available {
    border-color: rgba(74, 222, 128, .25);
}

.slot-card.slot-available:hover {
    border-color: rgba(74, 222, 128, .5);
    background: var(--bg-card-hover);
}

.slot-card.slot-booked {
    opacity: .55;
}

.slot-time {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.slot-status {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .2rem .6rem;
    border-radius: 4px;
}

.slot-status.available {
    background: var(--accent-green-dim);
    color: var(--accent-green);
}

.slot-status.booked {
    background: rgba(255,255,255,.06);
    color: var(--text-muted);
}

.slot-dj {
    font-size: .82rem;
    color: var(--text-muted);
    margin-top: .4rem;
}

.slot-card .btn-light {
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    font-size: .82rem;
    font-weight: 500;
}

.slot-card .btn-light:hover {
    background: rgba(255,255,255,.15);
}

/* --- Booking form ------------------------------------------ */
.booking-form .form-control,
.booking-form .form-select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: .6rem .9rem;
}

.booking-form .form-control::placeholder,
.booking-form .form-select::placeholder {
    color: rgba(255,255,255,.45);
}

.booking-form .form-control:focus {
    border-color: rgba(255,255,255,.25);
    box-shadow: 0 0 0 .2rem rgba(255,255,255,.06);
    background: var(--bg-card);
    color: var(--text);
}

.booking-form .form-label {
    font-size: .85rem;
    font-weight: 500;
    color: var(--text);
}

.booking-form .btn-light {
    background: #fff;
    color: #000;
    font-weight: 500;
    border: none;
}

.booking-form .btn-light:hover {
    background: #e0e0e0;
}

/* --- Confirmation ------------------------------------------ */
.confirm-icon {
    font-size: 4rem;
    color: var(--accent-green);
}

.confirm-icon .bi-check-circle-fill {
    animation: pop-in .5s ease;
}

@keyframes pop-in {
    0% { transform: scale(.5); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.confirm-details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.detail-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: .15rem;
}

/* --- Shadow figures corner decoration ---------------------- */
.shadows-corner {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: .12;
}

.shadows-corner img {
    height: 150px;
    width: auto;
    filter: invert(1) brightness(1.5);
    display: block;
    animation: shadow-dance 4s ease-in-out infinite;
}

.shadows-corner.bottom-right {
    bottom: 0;
    right: 0;
}

@keyframes shadow-dance {
    0%, 100% { transform: translateY(0) scaleX(1); }
    15% { transform: translateY(-3px) scaleX(1.02); }
    30% { transform: translateY(0) scaleX(0.98); }
    45% { transform: translateY(-2px) scaleX(1.01); }
    60% { transform: translateY(1px) scaleX(0.99); }
    75% { transform: translateY(-1px) scaleX(1.01); }
}

/* --- Footer ------------------------------------------------ */
footer {
    padding: 1rem 0 1.5rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* --- Buttons (overrides) ----------------------------------- */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all .15s;
}

.btn-outline-light {
    border-color: rgba(255,255,255,.2);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.35);
}

/* --- Forms (overrides) ------------------------------------- */
.form-control,
.form-select {
    border-radius: 8px;
}

/* --- Alerts ------------------------------------------------ */
.alert {
    border-radius: 8px;
    border: none;
}

/* --- Livestream page --------------------------------------- */
.livestream-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 60vh;
}

.livestream-header {
    margin-bottom: 1.5rem;
}

.stream-title {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin: 0;
}

/* Live badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--accent-red);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: .35rem .9rem;
    border-radius: 6px;
}

.live-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: pulse-dot 1.5s ease infinite;
}

/* Stream container: player + chat side by side */
.stream-container {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
}

.stream-player {
    flex: 1;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.stream-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.stream-iframe-mixcloud {
    /* Mixcloud widget is shorter than 16:9 */
}

.stream-chat {
    width: 340px;
    min-height: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.chat-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Offline state */
.livestream-offline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.offline-icon {
    font-size: 3rem;
    opacity: .25;
    margin-bottom: 1rem;
}

.offline-links {
    margin-top: .5rem;
}

/* Nav live indicator */
.nav-top-link.nav-live {
    color: #fff;
    font-weight: 600;
}

.nav-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-red);
    margin-right: .3rem;
    animation: pulse-dot 1.5s ease infinite;
    vertical-align: middle;
}

/* Homepage live link */
.hero-livestream-link {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: opacity .2s;
}

.hero-livestream-link:hover {
    opacity: .85;
    color: #fff;
}

.livestream-dot-live {
    background: var(--accent-red);
    animation: pulse-dot 1s ease infinite;
}

/* Responsive: stack player + chat on mobile */
@media (max-width: 900px) {
    .stream-container {
        flex-direction: column;
    }
    .stream-chat {
        width: 100%;
        min-height: 400px;
    }
    .stream-player {
        padding-bottom: 56.25%;
    }
}

.livestream-placeholder {
    font-size: .9rem;
    color: var(--text-muted);
}

/* --- Contact page ------------------------------------------ */
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--text);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 400;
    padding: .6rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all .2s;
    width: 100%;
    max-width: 280px;
    justify-content: center;
}

.contact-link:hover {
    color: #fff;
    border-color: rgba(255,255,255,.25);
    background: var(--bg-card);
}

/* --- Apply form page --------------------------------------- */
.apply-form .form-control,
.apply-form .form-select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: .6rem .9rem;
}

.apply-form .form-control::placeholder,
.apply-form .form-select::placeholder {
    color: rgba(255,255,255,.45);
}

.apply-form .form-control:focus {
    border-color: rgba(255,255,255,.25);
    box-shadow: 0 0 0 .2rem rgba(255,255,255,.06);
    background: var(--bg-card);
    color: var(--text);
}

.apply-form .form-label {
    font-size: .85rem;
    font-weight: 500;
    color: var(--text);
}

.apply-form .btn-light {
    background: #fff;
    color: #000;
    font-weight: 500;
    border: none;
}

.apply-form .btn-light:hover {
    background: #e0e0e0;
}

/* --- Availability window card ------------------------------ */
.window-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
}

.window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.window-time {
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- Timeline bar ------------------------------------------ */
.timeline-bar {
    position: relative;
    height: 36px;
    background: rgba(255,255,255,.04);
    border-radius: 6px;
    overflow: hidden;
}

.timeline-segment {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
    transition: opacity .15s;
}

.timeline-segment.booked {
    background: rgba(255,255,255,.12);
}

.timeline-segment.available {
    background: var(--accent-green-dim);
    border: 1px solid rgba(74, 222, 128, .2);
}

.timeline-label {
    font-size: .7rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 .4rem;
    color: var(--text-muted);
}

.timeline-segment.available .timeline-label {
    color: var(--accent-green);
}

/* --- Duration picker grid ---------------------------------- */
.duration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .75rem;
}

.duration-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all .2s;
}

.duration-option:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255,255,255,.2);
    color: #fff;
}

/* --- Time picker grid -------------------------------------- */
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: .5rem;
}

.time-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .7rem .5rem;
    background: var(--bg-card);
    border: 1px solid rgba(74, 222, 128, .25);
    border-radius: 8px;
    color: var(--accent-green);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: all .2s;
}

.time-option:hover {
    background: var(--accent-green-dim);
    border-color: var(--accent-green);
    color: #fff;
}

/* --- Booking summary strip --------------------------------- */
.booking-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .75rem 1rem;
}

/* --- Bootstrap overrides for readability -------------------- */
.text-muted {
    color: rgba(255,255,255,.6) !important;
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 768px) {
    .hero-logo { max-width: 200px; }
    .navbar-logo { height: 44px; }
    .page-title { font-size: 1.4rem; }
    .content-page { padding-top: 90px; padding-bottom: 40px; }

    .hero-banner {
        max-height: 50vh;
    }

    .stream-container {
        flex-direction: column;
    }

    .stream-chat {
        width: 100%;
        min-height: 350px;
    }

    .contact-link {
        width: 100%;
        max-width: 280px;
    }

    .window-card {
        padding: 1rem;
    }

    .window-time {
        font-size: .95rem;
    }
}

/* --- Mobile hamburger menu --------------------------------- */
.nav-mobile-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,.6);
    font-size: 1.5rem;
    padding: .25rem;
    line-height: 1;
    cursor: pointer;
    transition: color .15s;
}

.nav-mobile-toggle:hover {
    color: #fff;
}

@media (max-width: 767.98px) {
    .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(14,14,14,.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: .75rem 1.25rem 1rem;
        gap: 0;
    }

    .nav-links.open {
        display: flex !important;
    }

    .nav-links .nav-top-link {
        display: block;
        padding: .6rem 0;
        font-size: .95rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links .nav-top-link:last-child {
        border-bottom: none;
    }
}

/* --- Small mobile ------------------------------------------ */
@media (max-width: 575.98px) {
    .page-title { font-size: 1.2rem; }
    .navbar-logo { height: 38px; }
    .content-page { padding-top: 80px; padding-bottom: 30px; }

    .hero-banner-content {
        bottom: 1.5rem;
        padding: 0 1rem;
    }

    .hero-banner-content .hero-tagline {
        font-size: .85rem;
    }

    .hero-intro {
        padding: 1.5rem .75rem 1.5rem;
    }

    .gate-card {
        padding: 1.5rem 1.25rem;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: .35rem;
    }

    .schedule-time {
        min-width: auto;
    }

    .duration-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .time-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .timeline-label {
        font-size: .6rem;
    }

    .timeline-bar {
        height: 30px;
    }

    .offline-icon {
        font-size: 2rem;
    }

    .filter-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* --- Schedule page ----------------------------------------- */
.schedule-date-group {
    margin-bottom: 2rem;
}

.schedule-date {
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.45);
    border-bottom: 1px solid var(--border);
    padding-bottom: .5rem;
    margin-bottom: .75rem;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .75rem 1rem;
    transition: border-color .15s;
}

.schedule-item:hover {
    border-color: rgba(255,255,255,.15);
}

.schedule-time {
    font-size: .82rem;
    font-weight: 500;
    color: rgba(255,255,255,.5);
    white-space: nowrap;
    min-width: 100px;
}

.schedule-info {
    flex: 1;
    min-width: 0;
}

.schedule-dj {
    font-weight: 600;
    font-size: .95rem;
}

.schedule-genre {
    font-size: .8rem;
    color: rgba(255,255,255,.45);
    margin-top: 2px;
}

.schedule-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: rgba(255,255,255,.4);
}

.schedule-empty i {
    font-size: 2.5rem;
    margin-bottom: .75rem;
    display: block;
}

.schedule-empty p {
    margin-bottom: 1rem;
    font-size: .95rem;
}

/* --- Archive grid ------------------------------------------ */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.archive-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: background .15s, transform .15s;
}

.archive-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.archive-thumb-link {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.archive-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.archive-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.35);
    opacity: 0;
    transition: opacity .2s;
    font-size: 2.5rem;
    color: #fff;
}

.archive-thumb-link:hover .archive-play {
    opacity: 1;
}

.archive-info {
    padding: .85rem 1rem 1rem;
}

.archive-title {
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: .25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.archive-dj {
    font-size: .85rem;
    color: var(--text-muted);
}

.archive-meta {
    margin-top: .35rem;
    font-size: .78rem;
    color: rgba(255,255,255,.4);
    display: flex;
    gap: .75rem;
}
