﻿/* ==========================================================================
   TEMA: Ghost Aviator (roxo #CD31E6 + fundo #00000C)
   Sobrescrições e ajustes finais para o tema
   ========================================================================== */

/* ===================================
   FUNDOS E BACKGROUNDS
   =================================== */

body {
    background: linear-gradient(180deg, #00000C 0%, var(--secondary-dark) 100%) !important;
    color: #ffffff !important;
}

html {
    background: #00000C !important;
}

.background-overlay {
    background: radial-gradient(circle at 50% 50%, rgba(205, 49, 230, 0.04) 0%, transparent 50%),
                linear-gradient(180deg, #00000C 0%, var(--secondary-dark) 100%);
}

/* ===================================
   CARDS E CONTAINERS
   =================================== */

.card, .game-card, .news-card, .stats-card {
    background: linear-gradient(145deg, var(--tertiary-dark), var(--secondary-dark)) !important;
    border: 1px solid rgba(205, 49, 230, 0.18);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.card:hover {
    border-color: rgba(205, 49, 230, 0.38);
    box-shadow: 0 8px 30px rgba(205, 49, 230, 0.12);
}

/* ===================================
   BOTÕES
   =================================== */

.btn-primary {
    background: linear-gradient(135deg, #CD31E6, #B028C8) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(205, 49, 230, 0.35);
    color: #ffffff !important;
    font-weight: 700;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E066F5, #CD31E6) !important;
    box-shadow: 0 6px 25px rgba(205, 49, 230, 0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, #CD31E6, #9A23AD) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(205, 49, 230, 0.3);
    color: #ffffff !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #E066F5, #CD31E6) !important;
    box-shadow: 0 6px 25px rgba(205, 49, 230, 0.5);
}

/* ===================================
   HEADER E NAVEGAÇÃO
   =================================== */

:root {
    --header-height: calc(84px + var(--safe-top));
}

.header {
    background: rgba(0, 0, 12, 0.95) !important;
    border-bottom: 1px solid rgba(205, 49, 230, 0.22);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    padding: 0 !important;
    padding-top: var(--safe-top) !important;
    min-height: 0;
    box-sizing: border-box;
}

.header-container {
    min-height: calc(84px - 16px);
    align-items: center;
    padding: 8px 20px !important;
    box-sizing: border-box;
}

.header .logo {
    line-height: 0;
}

.header-logo {
    height: 68px;
    width: auto;
    max-height: calc(var(--header-height) - 16px);
    object-fit: contain;
}

@media (max-width: 768px) {
    :root {
        --header-height: calc(64px + var(--safe-top));
    }

    .header-container {
        min-height: calc(64px - 12px);
        padding: 6px 16px !important;
    }

    .header-logo {
        height: 52px;
    }
}

.menu-item.active {
    background: linear-gradient(135deg, rgba(205, 49, 230, 0.12), rgba(176, 40, 200, 0.08));
    border-left: 3px solid #CD31E6;
}

.menu-item:hover {
    background: rgba(205, 49, 230, 0.08);
}

/* ===================================
   BADGES E LABELS
   =================================== */

.badge-premium, .badge-gold {
    background: linear-gradient(135deg, #B028C8, #9A23AD);
    color: #ffffff;
    font-weight: 700;
    text-shadow: none;
}

.badge-success, .badge-green {
    background: linear-gradient(135deg, #CD31E6, #9A23AD);
}

/* ===================================
   INPUTS E FORMS
   =================================== */

input:focus, textarea:focus, select:focus {
    border-color: #CD31E6 !important;
    box-shadow: 0 0 0 3px rgba(205, 49, 230, 0.12) !important;
}

.form-input:focus {
    border-color: #CD31E6;
}

/* ===================================
   PROGRESS BARS E LOADERS
   =================================== */

.progress-bar {
    background: linear-gradient(90deg, #CD31E6, #E066F5);
}

.loading-spinner i {
    color: #CD31E6;
}

/* ===================================
   NOTIFICAÇÕES E ALERTAS
   =================================== */

.alert-success {
    background: rgba(205, 49, 230, 0.1);
    border-left: 4px solid #CD31E6;
    color: #E066F5;
}

.alert-warning {
    background: rgba(205, 49, 230, 0.1);
    border-left: 4px solid #CD31E6;
    color: #E066F5;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    color: #ff6b7a;
}

/* ===================================
   TOOLTIPS E POPOVERS
   =================================== */

.tooltip {
    background: linear-gradient(135deg, var(--tertiary-dark), var(--secondary-dark));
    border: 1px solid rgba(205, 49, 230, 0.25);
}

/* ===================================
   SCROLLBARS
   =================================== */

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #CD31E6, #B028C8);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #E066F5, #CD31E6);
}

::-webkit-scrollbar-track {
    background: var(--secondary-dark);
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
    background: linear-gradient(135deg, var(--secondary-dark), var(--primary-dark));
    border-top: 1px solid rgba(205, 49, 230, 0.18);
}

/* ===================================
   DESTAQUE E ANIMAÇÕES
   =================================== */

@keyframes gold-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(205, 49, 230, 0.35);
    }
    50% {
        box-shadow: 0 0 20px rgba(205, 49, 230, 0.55);
    }
}

.glow-gold {
    animation: gold-glow 2s ease-in-out infinite;
}

@keyframes green-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(205, 49, 230, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(205, 49, 230, 0.6);
    }
}

.glow-green {
    animation: green-glow 2s ease-in-out infinite;
}

/* ===================================
   GRADIENTES DE TEXTO
   =================================== */

.text-gradient-gold {
    background: linear-gradient(135deg, #E066F5, #CD31E6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.text-gradient-green {
    background: linear-gradient(135deg, #E066F5, #CD31E6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   AJUSTES ESPECÍFICOS
   =================================== */

.btn-deposit {
    background: linear-gradient(135deg, #CD31E6, #B028C8) !important;
    box-shadow: 0 4px 15px rgba(205, 49, 230, 0.4);
    color: #ffffff !important;
    font-weight: 700;
}

.btn-deposit:hover {
    background: linear-gradient(135deg, #E066F5, #CD31E6) !important;
    box-shadow: 0 6px 25px rgba(205, 49, 230, 0.55);
}

.user-balance {
    background: rgba(13, 13, 22, 0.9) !important;
    border: 1px solid rgba(205, 49, 230, 0.3);
    color: #CD31E6 !important;
}

.user-balance:hover {
    background: rgba(0, 37, 28, 0.95) !important;
    border-color: rgba(205, 49, 230, 0.5);
    box-shadow: 0 0 15px rgba(205, 49, 230, 0.2);
}

.balance-toggle {
    color: #CD31E6 !important;
}

.balance-toggle:hover {
    color: #E066F5 !important;
}

.login-logo, .header-logo {
    filter: drop-shadow(0 0 10px rgba(205, 49, 230, 0.35));
}

.header-logo:hover {
    transform: scale(1.03);
}

.bottom-menu-item.active {
    color: #CD31E6 !important;
}

.bottom-menu-item.active i {
    color: #CD31E6 !important;
}

i.fa-star, i.fa-crown, i.fa-trophy, i.fa-coins {
    color: #CD31E6 !important;
}

.text-gold, .gold-text {
    color: #CD31E6 !important;
}

.border-gold {
    border-color: rgba(205, 49, 230, 0.38) !important;
}
