﻿/* =====================================================
           RESET
        ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6d28d9;
    --primary-dark: #4c1d95;
    --primary-light: #ede9fe;
    --secondary: #ec4899;
    --dark: #111827;
    --text: #374151;
    --muted: #6b7280;
    --background: #f8fafc;
    --white: #ffffff;
    --border: #e5e7eb;
    --success: #10b981;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(0,0,0,.08);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--dark);
}


/* =====================================================
           CONTAINER
        ===================================================== */

.container {
    width: 100%;
    max-width: 1250px;
    margin: auto;
    padding: 0 20px;
}


/* =====================================================
           HEADER
        ===================================================== */

header {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 135deg, var(--primary), var(--secondary) );
    color: white;
    font-size: 20px;
}

.logo-text {
    font-size: 25px;
    font-weight: 800;
    color: var(--dark);
}

    .logo-text span {
        color: var(--primary);
    }


/* MENU */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

    .nav-menu a {
        text-decoration: none;
        color: var(--text);
        font-weight: 500;
        transition: .2s;
    }

        .nav-menu a:hover {
            color: var(--primary);
        }


/* AÇÕES */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    padding: 11px 18px;
    border-radius: 10px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
}

    .btn-login:hover {
        background: var(--primary-light);
    }

.btn-register {
    padding: 11px 20px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
}

    .btn-register:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
    }


/* MENU MOBILE */

.mobile-menu-btn {
    display: none;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
}


/* =====================================================
           FOOTER
        ===================================================== */

footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 45px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
}

    .footer-logo span {
        color: #a78bfa;
    }

.footer-description {
    color: #9ca3af;
    max-width: 380px;
    line-height: 1.7;
}

.footer-column h4 {
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #9ca3af;
    text-decoration: none;
    transition: .2s;
}

    .footer-column a:hover {
        color: white;
    }


/* REDES SOCIAIS */

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

    .social-links a {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        background: #1f2937;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        transition: .2s;
    }

        .social-links a:hover {
            background: var(--primary);
            transform: translateY(-3px);
        }


/* COPYRIGHT */

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
    font-size: 14px;
}


/* =====================================================
           RESPONSIVO
        ===================================================== */

@media(max-width: 900px) {

    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}


@media(max-width: 600px) {

    .navbar {
        height: 65px;
    }

    .logo-text {
        font-size: 21px;
    }

    .btn-login {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}




/* =====================================================
   CLIENTE LOGADO
===================================================== */

.cliente-menu {
    position: relative;
}

.cliente-menu-button {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cliente-menu-arrow {
    font-size: 10px;
    transition: transform .2s ease;
}

.cliente-menu.active .cliente-menu-arrow {
    transform: rotate(180deg);
}


/* =====================================================
   DROPDOWN
===================================================== */

.cliente-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 250px;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .12);
    padding: 8px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.cliente-menu.active .cliente-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* =====================================================
   HEADER DROPDOWN
===================================================== */

.cliente-dropdown-header {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .cliente-dropdown-header strong {
        font-size: 14px;
        color: #18181b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cliente-dropdown-header span {
        font-size: 11px;
        color: #71717a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


/* =====================================================
   DIVISOR
===================================================== */

.cliente-dropdown-divider {
    height: 1px;
    background: #e4e4e7;
    margin: 5px 0;
}


/* =====================================================
   ITENS
===================================================== */

.cliente-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #3f3f46;
    font-family: inherit;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    transition: background .15s ease, color .15s ease;
}

    .cliente-dropdown-item i {
        width: 18px;
        color: #7c3aed;
        text-align: center;
    }

    .cliente-dropdown-item:hover {
        background: #f5f3ff;
        color: #6d28d9;
    }


/* =====================================================
   LOGOUT
===================================================== */

.logout-form {
    margin: 0;
    padding: 0;
}

.cliente-logout {
    color: #dc2626;
}

    .cliente-logout i {
        color: #dc2626;
    }

    .cliente-logout:hover {
        background: #fef2f2;
        color: #dc2626;
    }