/* ==========================================================
   1. CORE VARIABLES & RESET
   ========================================================== */
:root {
    --primary: #ffb7b2;    /* Soft Pink */
    --secondary: #ffdac1;  /* Soft Orange (Fixed from your purple) */
    --text: #5d4037;       /* Deep Brown */
    --bg: #fffaf0;         /* Floral White */
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.5;
}

/* ==========================================================
   2. NAVIGATION (The Alignment Fix)
   ========================================================== */
nav {
    padding: 0 2rem;
    height: 70px; /* Fixed height for perfect centering */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    align-items: center; /* Vertically centers everything in the row */
    gap: 20px;
}

/* All navigation items (Links, Spans, Divs) inherit same baseline */
.nav-links a, 
#auth-status, 
#dev-link-container, 
.user-greet {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    font-weight: bold;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.lang-switcher {
    display: flex;
    gap: 12px;
    margin-right: 20px;
    cursor: pointer;
}

.lang-switcher span:hover { transform: scale(1.2); }

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* ==========================================================
   3. COMPONENTS (Buttons & Greeting)
   ========================================================== */
.btn-login, .btn-primary {
    background: var(--primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
    transition: 0.3s;
}

.btn-logout {
    background: white;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
}

.btn-logout:hover {
    background: var(--primary);
    color: white !important;
}

.user-greet {
    font-weight: 600;
    opacity: 0.8;
    margin-right: 5px;
}

#auth-status {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* ==========================================================
   4. PAGE CONTENT (Hero, Gallery, Stream)
   ========================================================== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 20px;
}

.cat-image {
    max-width: 500px;
    width: 90%;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 8px solid white;
}

h1 { font-size: 3rem; margin-bottom: 0; color: var(--primary); }

.btn-primary { 
    margin-top: 20px; 
    font-size: 1.2rem; 
    padding: 15px 30px; 
}

.btn-primary:hover { transform: scale(1.05); background: #ff9a92; }

/* ==========================================================
   5. MOBILE VIEW
   ========================================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background: white;
        padding: 20px;
        border-radius: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        align-items: flex-start;
        gap: 15px;
    }

    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    #auth-status { flex-direction: column; align-items: flex-start; width: 100%; border-top: 1px solid #eee; padding-top: 10px; }
}

/* ==========================================================
   6. AUTHELIA / LOGIN PAGE OVERRIDES
   ========================================================== */
.MuiButton-containedPrimary, button[type="submit"] {
    background-color: #ffb7b2 !important;
    border-radius: 50px !important;
}

.ak-login-container {
    border-top: 10px solid #ffb7b2 !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

/* Hide Human Avatar SVG */
.MuiContainer-root svg, .MuiAvatar-root svg {
    display: none !important;
}

/* Fix Input Focus & Loading colors */
.Mui-focused fieldset, 
.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline,
.MuiFormLabel-root.Mui-focused {
    border-color: #ffb7b2 !important;
    color: #ffb7b2 !important;
}

.MuiLinearProgress-barColorPrimary, .MuiCircularProgress-svg {
    background-color: #ffb7b2 !important;
    color: #ffb7b2 !important;
}