/* main.css - Design System for babui.social */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #F1F1F1;
    color: #000000;
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Global Link Styles --- */
a {
    color: #000000; /* Default to Black */
    text-decoration: none;
}

/* Active navigation link and active language switch color */
.main-nav a.active, 
.lang-switch a.active {
    color: #93C5FD !important;
}

a:hover {
    color: #2563EB; /* Default to Blue on Hover */
}

/* Header & Topbar */
.topbar-wrapper {
    background-color: #000000;
    padding: 14px 20px;
    width: 100%;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.brand-logo {
    font-size: 26px;
    font-weight: 700;
    color: #FFFFFF;
}

.brand-logo .dot {
    color: #93C5FD;
}

/* Override global links for Topbar */
.brand-logo:hover {
    color: #FFFFFF; /* Keep logo white on hover */
}

.lang-switch, .lang-switch a {
    font-size: 18px;
    color: #FFFFFF;
}

.lang-switch a:hover {
    color: #93C5FD; /* Light blue hover for dark background */
}

.lang-switch a.active {
    text-decoration: underline;
}

/* Navigation Bar */
.navbar-wrapper {
    background-color: #505050;
    width: 100%;
    padding: 12px 20px;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
}

.main-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    flex-wrap: wrap;
    color: #FFFFFF; /* Makes the literal text separators white */
}

/* Override global links for Navbar */
.main-nav a {
    color: #FFFFFF;
}

.main-nav a:hover, .main-nav a.active {
    color: #93C5FD; /* Light blue hover for dark background */
}

.main-nav .sep {
    color: #FFFFFF;
}

.main-nav a.logout-link:hover {
    color: #FF0000; /* Dark red color on hover */
}

/* Main Layout & Auth Split */
.site-card-box {
    background-color: #FFFFFF;
    max-width: 900px;
    width: calc(100% - 40px);
    margin: 25px auto;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex: 1;
}

/* Optional: Add underline to links inside the main content area for better UI clarity */
.site-card-box a {
    text-decoration: underline; 
}

.site-card-box a:hover {
    text-decoration: none; 
}

.auth-split-container {
    display: flex;
    gap: 30px;
}

.welcome-section, .auth-form-section {
    flex: 1;
}

.auth-divider-vertical {
    width: 1px;
    background-color: #505050;
}

.auth-tabs {
    margin-bottom: 20px;
    font-size: 16px;
}

.auth-tab {
    color: #4B5563;
    cursor: pointer;
}

.auth-tab.active {
    color: #000000;
    font-weight: 700;
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.auth-form.active {
    display: flex;
}

.auth-form label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.auth-form input, .auth-form select {
    padding: 10px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit; /* Ensures Bengali font applies to inputs too */
}

.submit-text-btn {
    background-color: #000000;
    color: #FFFFFF;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    font-family: inherit;
}

.submit-text-btn:hover {
    background-color: #2563EB;
}

/* Footer Section */
.footer-wrapper {
    background-color: #F1F1F1;
    padding: 20px 0 30px 0;
    width: 100%;
    margin-top: auto;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 15px;
}

.footer-links {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

/* Footer links will automatically inherit the global Black -> Blue hover rules now! */
.footer-links .sep {
    color: #000000;
}

.footer-copyright {
    color: #505050;
    font-size: 13px;
}

/* Responsive Fixes */
@media screen and (max-width: 768px) {
    .auth-split-container {
        flex-direction: column;
    }
    .auth-divider-vertical {
        display: none;
    }
    .main-nav {
        justify-content: center;
    }
    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 8px; /* Space between links */
        margin-bottom: 10px;
    }
    /* Hide separator in vertical mode */
    .footer-links .sep {
        display: none;
    }
}