/* main.css - Design System for babui.social */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* --------------------------------------------------
   HTML & BODY
-------------------------------------------------- */

html {
    min-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;
    height: auto;

    overflow-x: hidden;
}


/* --------------------------------------------------
   Global Link Styles
-------------------------------------------------- */

a {
    color: #000000;
    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;
}


/* --------------------------------------------------
   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;
}


.lang-switch,
.lang-switch a {
    font-size: 18px;
    color: #FFFFFF;
}


.lang-switch a:hover {
    color: #93C5FD;
}


.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;
}


/* Override global links for Navbar */

.main-nav a {
    color: #FFFFFF;
}


.main-nav a:hover,
.main-nav a.active {
    color: #93C5FD;
}


.main-nav .sep {
    color: #FFFFFF;
}


.main-nav a.logout-link:hover {
    color: #FF0000;
}


/* --------------------------------------------------
   Main Layout
-------------------------------------------------- */

.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);

    /*
       Important:
       Do not force the content card to grow vertically.
       This prevents unnecessary empty page space.
    */
    flex: 0 0 auto;
}


/* Optional: Add underline to links inside the main content area */

.site-card-box a {
    text-decoration: underline;
}


.site-card-box a:hover {
    text-decoration: none;
}


/* --------------------------------------------------
   Auth Split
-------------------------------------------------- */

.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;
}


.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%;

    /*
       Footer naturally follows the content.
       No forced positioning or extra height.
    */
    margin-top: 0;

    flex-shrink: 0;
}


.footer-container {
    max-width: 900px;

    margin: 0 auto;

    padding: 0 20px;

    font-size: 15px;
}


.footer-links {
    display: flex;

    gap: 8px;

    margin-bottom: 6px;
}


/* Footer: only hovered item becomes bold */

.footer-wrapper a:hover,
.footer-wrapper .footer-copyright:hover {
    font-weight: 700 !important;
}


/* Footer separators */

.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;

        margin-bottom: 10px;
    }


    /* Hide separator in vertical mode */

    .footer-links .sep {
        display: none;
    }
}