/* Layout - Page Structure */

.site-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.nav-left,
.nav-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-byline {
    color: var(--text-muted);
    font-weight: normal;
    white-space: nowrap;
}

.nav-byline a {
    color: var(--text-primary);
    font-weight: bold;
}

.nav-right {
    justify-content: flex-end;
}

.nav-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 0;
}

.nav-logo,
.nav-right a {
    font-weight: bold;
    color: var(--text-primary);
}

.nav-filter {
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #222;
    color: var(--text-primary);
    cursor: pointer;
    min-width: 0;
    max-width: 150px;
    text-overflow: ellipsis;
    flex-shrink: 1;
    font-size: 0.875rem;
    font-weight: bold;
}

.nav-filter option:disabled {
    color: var(--text-muted);
}

.nav-album-label {
    font-weight: bold;
    color: var(--text-primary);
    text-transform: lowercase;
    white-space: nowrap;
}

.nav-album-prefix {
    color: var(--text-muted);
    font-weight: 400;
}

.main {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.site-footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* Page-specific layouts */

.page-gallery .main,
.page-albums .main {
    padding: 1rem;
    max-width: none;
}

.page-photo .main {
    padding: 0;
    max-width: none;
    padding-bottom: 60px; /* Space for sticky nav */
}

.page-photo .site-footer {
    margin-bottom: 60px; /* Space for sticky nav */
}

.page-photo .photo-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    font-weight: bold;
}

.page-login .main,
.page-upload .main,
.page-edit .main {
    max-width: 600px;
}

@media (max-width: 600px) {
    .nav-byline {
        display: none;
    }
}
