@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* ==========================================================================
   VARIÁVEIS E RESET GLOBAL
   ========================================================================== */
:root {
    --bg: #0f1115;
    --accent: #2ecc71;       /* Verde principal */
    --accent-hover: #27ae60;
    --accent-rgb: 46, 204, 113;
    --surface: #121212;      /* Fundo profundo */
    --card: #1e1e1e;         /* Fundo dos cards */
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --danger: #e74c3c;
    --gold: #f1c40f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Removendo qualquer transição de opacidade/fade global */
    animation: none !important; 
}

body {
    background: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

#menu-toggle { display: none; }

/* ==========================================================================
   HEADER DESKTOP
   ========================================================================== */
.main-header {
    height: 60px;
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: relative; /* Base para o mobile */
}

.logo { 
    font-size: 1.4rem; 
    font-weight: 800; 
    text-decoration: none; 
    color: #fff; 
    z-index: 1002;
}
.logo span { color: var(--accent); }

.nav-center {
    display: flex;
    gap: 30px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-item {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-item:not(.highlight):hover, 
.nav-item.active {
    color: #fff;
}

.nav-item.highlight {
    color: var(--gold) !important; 
    border: 1px solid var(--gold);
    padding: 7px 22px;
    border-radius: 6px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4px 12px;
    width: 180px;
}

.search-input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    outline: none;
}

.search-submit {
    background: transparent;
    border: none;
    color: #fff;
}

.login-btn {
    color: #fff;
    text-decoration: none;
    padding: 7px 20px;
    border-radius: 6px;
    font-weight: 700;
    border: 1px solid var(--accent);
}

.mobile-menu-toggle { display: none; }

/* Overlay (Fundo escurecido) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none; /* Escondido */
    align-items: center;
    justify-content: center;
}

/* Cartão do Modal */
.modal-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: none; /* Escondido */
    animation: modalShow 0.3s ease;
}

@keyframes modalShow {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 2rem;
    cursor: pointer;
}

/* Estilo específico do Donate */
.qr-code-img {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    border-radius: 10px;
    border: 5px solid #fff;
}

.pix-key {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    margin-bottom: 10px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.contact-links a:hover { background: var(--accent); }

.beta-notice-bar {
    background-color: #1b5e20; /* Verde escuro profundo */
    border-bottom: 2px solid #27ae60; /* Linha de destaque em verde esmeralda */
    padding: 12px 20px;
    text-align: center;
    color: #f1f8f1; /* Letras quase brancas/esverdeadas bem claras */
    font-size: 14px;
    animation: slideDown 0.5s ease-out;
}

.notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.notice-content i {
    color: #4ade80; /* Ícone em um verde limão claro para brilhar no fundo escuro */
    font-size: 18px;
}

.notice-content strong {
    color: #ffffff;
    letter-spacing: 0.5px;
}

.notice-content a {
    color: #4ade80; /* Link claro para leitura fácil */
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 2px 5px;
}

.notice-content a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1); /* Efeito de destaque ao passar o mouse */
    border-radius: 4px;
}

/* Mantendo a animação */
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.copy-pix-area {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    background: #f4f4f4;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.copy-pix-area input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
    font-family: monospace;
}

#btn-copy-pix {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}

#btn-copy-pix:hover {
    background-color: #1e8449;
}

/* Estilo para quando o botão for clicado (feedback) */
#btn-copy-pix.copied {
    background-color: #1b5e20;
}



/* ==========================================================================
   HEADER MOBILE CONSOLIDADO - traçoslivres.com
   ========================================================================== */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        padding-top: 60px;
    }

    /* 1. Header Principal */
    .main-header {
        display: flex !important;
        align-items: center !important;
        height: 60px !important;
        width: 100% !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        background: #0f1115 !important;
        z-index: 9999 !important;
    }

    /* 2. Container Interno */
    .header-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 15px !important;
        position: relative !important;
        gap: 10px; /* Espaço mínimo entre os elementos */
    }

    /* 3. Botão Hambúrguer (Esquerda) */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 35px;
        height: 35px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 10005;
        padding: 0;
        flex-shrink: 0; /* Impede o botão de esmagar */
    }

    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #fff;
        border-radius: 2px;
        transition: 0.3s;
    }

    /* 4. Logo (Centralizada com proteção de espaço) */
    .logo-area {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 1000 !important;
        max-width: 45%; /* Limita a largura para não bater nos botões */
        text-align: center;
    }

    .logo {
        font-size: 1.1rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important; /* Adiciona "..." se o nome for muito grande */
        display: block;
        color: #fff;
        text-decoration: none;
        transition: font-size 0.2s ease;
    }

    /* Ajuste responsivo extremo para telas muito pequenas */
    @media (max-width: 380px) {
        .logo {
            font-size: 0.9rem !important;
        }
    }

    /* 5. Lado Direito (Login) */
    .header-right {
        display: flex !important;
        align-items: center;
        z-index: 1001 !important;
        flex-shrink: 0; /* Impede o botão de sumir */
    }

    .login-btn {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
    }

    /* 6. Gaveta Lateral (Menu) */
    .nav-center {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 280px !important;
        height: 100vh !important;
        background: #0d0f13 !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 80px 20px !important;
        transition: left 0.3s ease-in-out !important;
        z-index: 10000 !important;
    }

    /* Estado Ativo (Menu Aberto) */
    .main-header.active .nav-center {
        left: 0 !important;
    }

    /* Animação do X */
    .main-header.active .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .main-header.active .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    .main-header.active .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Esconder busca no mobile (conforme solicitado) */
    .search-container {
        display: none !important;
    }
}