/* ========================================================
   IGARAPP - A Rede Social
   Visual Profissional, Limpo e Direto ao Ponto
======================================================== */

:root {
    --brand-primary: #1b5036;
    --brand-primary-hover: #143d29;
    --brand-dark: #0f1419;
    --brand-gray: #536471;
    --brand-border: #eff3f4;
    --brand-surface: #ffffff;
}

body.night-mode {
    --brand-surface: #16181c;
    --brand-border: #2f3336;
    --brand-gray: #71767b;
}

/* Landing Page - Split Screen Profissional (Estilo X / Bluesky) */
.landing-main-wrap {
    min-height: 100vh;
    display: flex;
    background: var(--body-bg);
}

.landing-left-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1217;
    position: relative;
    padding: 3rem;
}

.landing-hero-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
}

.landing-right-auth {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 4rem;
    background: var(--body-bg);
    min-width: 320px;
}

.landing-auth-inner {
    max-width: 440px;
    width: 100%;
    margin: auto 0;
}

.landing-brand-banner {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    margin-bottom: 2rem;
}

.landing-hero-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--body-color);
    margin-bottom: 0.75rem;
}

.landing-hero-subtitle {
    font-size: 1.1rem;
    color: var(--brand-gray);
    margin-bottom: 2rem;
    font-weight: 400;
}

.landing-auth-card {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.05);
}

.landing-footer {
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--brand-gray);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.landing-footer a {
    color: var(--brand-gray);
    text-decoration: none;
}

.landing-footer a:hover {
    color: var(--body-color);
    text-decoration: underline;
}

/* Responsividade Mobile */
@media (max-width: 991px) {
    .landing-main-wrap {
        flex-direction: column;
    }

    .landing-left-hero {
        display: none;
    }

    .landing-right-auth {
        padding: 2.5rem 1.5rem;
        min-height: 100vh;
        justify-content: center;
    }

    .landing-auth-inner {
        max-width: 100%;
        margin: 0 auto;
    }

    .landing-hero-title {
        font-size: 2rem;
    }
}

/* Botões do Sistema */
.btn-main, .btn-primary {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

.btn-main:hover, .btn-primary:hover {
    background: var(--brand-primary-hover) !important;
    border-color: var(--brand-primary-hover) !important;
}

/* ========================================================
   LANDING PAGE (Visitantes / Index)
======================================================== */
body.index-body .logo-wrapper {
    display: none !important;
}

body.index-body .x-sidebar-fixed {
    display: none !important;
}

body.index-body .main-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 100vh;
}

/* ========================================================
   MESSAGES & APP MOBILE NAVIGATION (Hotbar & Navbar)
======================================================== */
@media (max-width: 768px) {
    body:not(.index-body) .x-sidebar-fixed {
        display: block !important;
        visibility: visible !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        height: 54px !important;
        z-index: 1060 !important;
        background: var(--header-background) !important;
        border-top: 1px solid var(--border-divider) !important;
    }

    body:not(.index-body) .logo-wrapper {
        display: flex !important;
        visibility: visible !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 50px !important;
        z-index: 1050 !important;
        background: var(--header-background) !important;
        border-bottom: 1px solid var(--border-divider) !important;
        padding: 6px 14px !important;
        align-items: center !important;
    }

    body:not(.index-body) .x_sidebar_links {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 10px !important;
        background: var(--header-background) !important;
    }

    body:not(.index-body) .x_sidebar_links > a, 
    body:not(.index-body) .x_sidebar_links > div {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px !important;
        flex: 1 !important;
        text-align: center !important;
    }

    body:not(.index-body) .main-wrapper {
        padding-top: 50px !important;
        padding-bottom: 54px !important;
    }

    .x_menu_sidebar.msg, 
    .x_menu_sidebar_content.msg {
        height: calc(100dvh - 104px) !important;
        min-height: calc(100dvh - 104px) !important;
        max-height: calc(100dvh - 104px) !important;
    }

    .panel-messages {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .chat-conversations {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
    }

    .chat-form {
        position: relative !important;
        z-index: 100 !important;
        background: var(--header-background) !important;
        border-top: 1px solid var(--border-divider) !important;
        padding: 8px !important;
    }

    .x_menu_sidebar_back {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        cursor: pointer !important;
        color: var(--body-color) !important;
    }
}
