@import 'gallery-overlay.css';

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1rem;
}

/* ============================
   TOP BAR (Fixed Header)
   ============================ */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

html.light-mode .top-bar {
    background: rgba(250, 250, 248, 0.92);
    box-shadow: none;
}

.top-bar-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.top-bar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.top-bar-logo:hover {
    opacity: 0.8;
}

.top-bar-logo svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

.top-bar-logo h1 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.top-bar-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
}

.header {
    display: none;
}

/* ============================
   MOBILE STICKY NAV
   ============================ */
.mobile-sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.2s ease;
    display: none;
}

html.light-mode .mobile-sticky-nav {
    background: rgba(250, 250, 248, 0.92);
    border-bottom-color: var(--border-color);
    box-shadow: none;
}

.mobile-sticky-nav.visible {
    transform: translateY(0);
}

.mobile-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    max-width: 100vw;
    gap: 0.75rem;
}

.mobile-nav-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.mobile-nav-title:hover {
    opacity: 0.8;
}

.mobile-nav-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
}

.mobile-nav-dates {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 30px), transparent 100%);
    mask-image: linear-gradient(to right, black calc(100% - 30px), transparent 100%);
}

.mobile-nav-dates::-webkit-scrollbar {
    display: none;
}

.mobile-nav-dates .date-tab {
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================
   SIDEBARS
   ============================ */
.sidebar-right {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    width: 260px;
    background: transparent;
    padding: 20px;
    overflow-y: auto;
    z-index: 100;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-left {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: 260px;
    max-width: 260px;
    right: auto;
    background: transparent;
    padding: 20px;
    overflow-y: auto;
    z-index: 100;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-right::-webkit-scrollbar,
.sidebar-left::-webkit-scrollbar {
    display: none;
}

@media (max-width: 1400px) {

    .sidebar-right,
    .sidebar-left {
        display: none;
    }
}

.sidebar-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================
   STICKY DATE INDICATOR (Pill)
   ============================ */
/* ============================
   STICKY DATE INDICATOR (Mouse Follower)
   ============================ */
/* ============================
   STICKY DATE INDICATOR (Mouse Follower)
   ============================ */
.sticky-date-indicator {
    position: fixed;
    /* Left will be calculated/fixed via JS or CSS. User asked for 20px from waterfall left. 
       We will set a default here but JS might override if waterfall position varies. 
       For now, let's assume it's fixed relative to container or screen. */
    left: 20px;
    top: 0;
    transform: translateY(-50%);
    /* Center vertically on the line */
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    z-index: 90;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, top 0.05s linear;
    /* Smooth follow */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); Removed */
    white-space: nowrap;
}

.sticky-date-indicator.visible {
    opacity: 1;
}

.sticky-date-line {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    width: 100%;
    /* Horizontal line */
    background: transparent;
    z-index: 0;
    /* Behind images (if images are z-1 or auto) */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, top 0.05s linear;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    /* Dashed style but weaker */
    background: transparent;
    border-left: none;
    /* remove vertical border */
}

.sticky-date-line.visible {
    opacity: 1;
}

@media (max-width: 1000px) {
    .sticky-date-indicator {
        left: 10px;
        /* Mobile adjust */
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

/* ============================
   FOOTER
   ============================ */
.footer {
    text-align: center;
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.footer p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.9375rem;
}

.footer-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ============================
   RESPONSIVE OVERRIDES
   ============================ */
@media (max-width: 768px) {
    body {
        padding: 4rem 0.5rem 0.5rem 0.5rem;
    }

    .container {
        padding: 0;
    }

    .top-bar-logo h1 {
        font-size: 0.875rem;
    }

    .top-bar-logo svg {
        width: 16px;
        height: 16px;
    }

    .top-bar-nav {
        gap: 0.75rem;
    }

    .footer {
        padding: 1rem 0;
        font-size: 0.875rem;
    }

    .footer p {
        font-size: 0.875rem;
    }

    .footer-note {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.25rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }
}