.logo-link {
    color: var(--gold);
    text-decoration: none;
}

.header-username {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgb(255,255,255,0.8);
}

/* ---------- Settings section ---------- */

.settings-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1.5px solid var(--border);
}

.setting-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.setting-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.theme-toggle-btn {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
}

.theme-toggle-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.settings-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.25rem 0;
}

.settings-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.change-password-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 340px;
}

.change-password-form .password-wrapper {
    position: relative;
    display: flex;
}

.change-password-form .password-wrapper input {
    width: 100%;
    padding-right: 3.5rem;
}

.change-password-form input {
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition);
}

.change-password-form input:focus {
    border-color: var(--gold);
}

.change-password-form button {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 0.5rem 1.4rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    transition: all var(--transition);
}

.change-password-form button:hover {
    background: #c49515;
}

.password-msg {
    font-size: 0.8rem;
    min-height: 1.2em;
    width: 100%;
}

.password-msg.error {
    color: #e74c3c;
}

.password-msg.success {
    color: #27ae60;
}

/* ---------- Page layout ---------- */

.methuselah-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(100vh - 64px);
}

.methuselah-page h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* ---------- Uploads navigation ---------- */

.my-uploads-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.my-uploads-nav h2 {
    flex: 1;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    white-space: nowrap;
}

/* ---------- Picture grid ---------- */

#pictures-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.my-pic-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.my-pic-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow);
}

.my-pic-card img {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

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

.my-pic-event {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.my-pic-votes {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
    margin-top: 2px;
}

.my-pic-delete {
    background: none;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.my-pic-delete:hover {
    color: #fff;
    background: #e74c3c;
    border-color: #e74c3c;
}

.loading-msg,
.empty-msg {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    background: var(--card);
    border-radius: var(--radius);
    border: 1.5px dashed var(--border);
}

/* ---------- Responsive ---------- */

@media (width <= 768px) {
    .methuselah-page {
        padding: 1rem;
    }

    .methuselah-page h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .settings-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .change-password-form {
        flex-direction: column;
        align-items: stretch;
    }

    .change-password-form input {
        width: 100%;
        font-size: 1rem;
        padding: 0.6rem 0.75rem;
    }

    .change-password-form button {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .my-pic-card {
        padding: 0.5rem 0.75rem;
        gap: 0.75rem;
    }

    .my-pic-card img {
        width: 48px;
        height: 48px;
    }

    .my-pic-event {
        font-size: 0.72rem;
    }

    .my-pic-delete {
        width: 36px;
        height: 36px;
    }
}
