@charset "UTF-8";

/*
 * Shared application shell (left sidebar + mobile top bar).
 * Self-contained so pages that do not load style.css still get the palette.
 */

:root {
    --app-accent: #FFD60A;
    --app-accent-2: #FF8F00;
    --app-accent-soft: rgba(255, 214, 10, 0.1);
    --app-accent-line: rgba(255, 214, 10, 0.22);
    --app-on-accent: #0A0D12;
    --app-bg: #0A0D12;
    --app-surface: #141820;
    --app-surface-2: #1C2230;
    --app-text: #F8FAFC;
    --app-text-dim: #CBD5E1;
    --app-text-mute: #64748B;
    --app-border: rgba(255, 255, 255, 0.08);
    --app-sidebar-w: 256px;
    --app-gradient: linear-gradient(135deg, #FFD60A 0%, #FF8F00 100%);
}

/* ===== Sidebar ===== */

.app-sidebar {
    position: fixed;
    inset-block: 0;
    left: 0;
    z-index: 1200;
    width: var(--app-sidebar-w);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 20px;
    background: rgba(20, 24, 32, 0.92);
    backdrop-filter: blur(30px) saturate(1.1);
    -webkit-backdrop-filter: blur(30px) saturate(1.1);
    border-right: 1px solid var(--app-border);
    box-shadow: 0 15px 50px -10px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
    text-decoration: none;
    color: var(--app-text);
}

.app-brand img {
    height: 46px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(255, 214, 10, 0.25));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-brand:hover img {
    transform: scale(1.06) rotate(-3deg);
}

.app-brand-text {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
}

.app-brand-accent {
    background: var(--app-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.app-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 10px;
    border: none;
    border-left: 4px solid transparent;
    background: none;
    color: var(--app-text-dim);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.app-nav-link svg {
    flex-shrink: 0;
}

.app-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--app-text);
}

/* Page stylesheets underline links globally; keep the shell clean. */
.app-brand:hover,
.app-nav-link:hover,
.app-topbar-brand:hover,
.app-topbar-cta:hover,
.app-sidebar-cta a:hover {
    text-decoration: none;
}

.app-nav-link.active {
    background: var(--app-accent-soft);
    border-left-color: var(--app-accent);
    color: var(--app-accent);
}

.app-sidebar-foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.app-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.app-live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    animation: appPulse 1.6s ease-in-out infinite;
}

@keyframes appPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.app-sidebar-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(20, 24, 32, 0.75);
    border: 1px solid var(--app-accent-line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.app-sidebar-cta p {
    margin: 0;
    color: var(--app-text-dim);
    font-size: 0.68rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.45;
}

.app-sidebar-cta a {
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--app-accent);
    color: var(--app-on-accent);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.app-sidebar-cta a:hover {
    filter: brightness(1.1);
}

.app-sidebar-cta a:active {
    transform: scale(0.97);
}

/* ===== Mobile top bar ===== */

.app-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(10, 13, 18, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--app-border);
}

.app-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.app-burger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--app-text);
}

.app-topbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--app-text);
}

.app-topbar-brand img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.app-topbar-brand span {
    font-size: 1.05rem;
    font-weight: 900;
}

.app-topbar-cta {
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--app-accent);
    color: var(--app-on-accent);
    font-size: 0.7rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

/* ===== Content offset ===== */

.app-shell-body {
    padding-left: var(--app-sidebar-w);
}

.app-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1150;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-overlay.active {
    display: block;
    opacity: 1;
}

/* Tailwind's md: variant starts at 768px, so the sidebar must appear at exactly
   768px too; a plain max-width: 768px would leave that one pixel showing the
   mobile shell under a desktop grid. */
@media (max-width: 767.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    .app-topbar {
        display: flex;
    }

    .app-shell-body {
        padding-left: 0;
        padding-top: 56px;
    }
}
