/* ========================================
   BLAIDD'S BALLON D'OR - Modern Gaming Theme
   Cores baseadas na logo (Roxo/Azul)
   ======================================== */

/* ========== ROOT VARIABLES ========== */
:root {
    /* Cores Principais da Logo */
    --primary-purple: #8B5CF6;
    --primary-blue: #3B82F6;
    --dark-purple: #6B46C1;
    --dark-blue: #1E3A8A;
    --accent-purple: #A78BFA;
    --accent-pink: #EC4899;
    
    /* Cores de Fundo */
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-card: #1E293B;
    --bg-dark: #020617;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-purple: linear-gradient(135deg, #8B5CF6 0%, #6B46C1 100%);
    --gradient-blue: linear-gradient(135deg, #3B82F6 0%, #1E3A8A 100%);
    --gradient-gaming: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 50%, #6B46C1 100%);
    
    /* Tier Colors */
    --tier-splus: #FF0080;
    --tier-s: #FF4500;
    --tier-a: #FFA500;
    --tier-b: #FFD700;
    --tier-c: #90EE90;
    --tier-d: #87CEEB;
    --tier-f: #808080;
    
    /* Text Colors */
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    
    /* Shadows */
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);
    --shadow-purple: 0 10px 40px rgba(139, 92, 246, 0.3);
    --shadow-blue: 0 10px 40px rgba(59, 130, 246, 0.3);
    
    /* Fonts */
    --font-primary: 'Rajdhani', sans-serif;
    --font-title: 'Orbitron', sans-serif;
}

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Effects */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at bottom, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.bg-gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--bg-dark);
    padding: 8px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    font-size: 0.9rem;
}

.top-bar-text {
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-bar-text i {
    color: var(--primary-purple);
}

.top-bar-text strong {
    color: var(--primary-purple);
}

/* ========== MAIN NAVBAR ========== */
.main-navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.main-navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.4);
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
    transition: all 0.3s ease;
}

.logo-container:hover .logo-img {
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8));
    transform: scale(1.05);
}

.logo-text {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-gaming);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

/* Custom Toggler */
.custom-toggler {
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    background: transparent;
    padding: 0;
}

.custom-toggler span {
    display: block;
    height: 3px;
    background: var(--primary-purple);
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.custom-toggler:not(.collapsed) span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.custom-toggler:not(.collapsed) span:nth-child(2) {
    opacity: 0;
}

.custom-toggler:not(.collapsed) span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Nav Links */
.nav-link-custom {
    position: relative;
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 10px 20px !important;
    margin: 0 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link-custom i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-link-custom:hover {
    color: var(--primary-purple) !important;
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.nav-link-custom:hover i {
    transform: scale(1.2);
}

.nav-link-custom.active {
    color: var(--primary-purple) !important;
    background: rgba(139, 92, 246, 0.2);
}

/* User Dropdown */
.user-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px !important;
    border-radius: 50px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--gradient-purple);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar i {
    font-size: 1.3rem;
    color: white;
}

.user-name {
    font-weight: 600;
}

/* Dropdown Menu */
.dropdown-menu-custom {
    background: var(--bg-secondary);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
}

.dropdown-menu-custom .dropdown-item {
    color: var(--text-secondary);
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.dropdown-menu-custom .dropdown-item:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-purple);
    transform: translateX(5px);
}

.dropdown-menu-custom .dropdown-item i {
    font-size: 1.1rem;
}

.dropdown-divider {
    border-color: rgba(139, 92, 246, 0.2);
}

/* Login/Register Buttons */
.btn-login {
    color: var(--text-primary) !important;
    border: 2px solid var(--primary-purple);
    padding: 8px 25px !important;
    border-radius: 50px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-purple);
}

.btn-register {
    background: var(--gradient-purple) !important;
    color: white !important;
    padding: 8px 25px !important;
    border-radius: 50px;
    margin: 0 5px;
    border: none;
    transition: all 0.3s ease;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-purple);
}

/* ========== MAIN CONTENT ========== */
.main-content {
    min-height: calc(100vh - 200px);
    margin-top: 40px;
    margin-bottom: 60px;
}

/* ========== CARDS ========== */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-purple);
    border-color: var(--primary-purple);
}

.card-header {
    background: var(--gradient-purple);
    color: white;
    font-weight: 600;
    border: none;
    padding: 20px;
}

.card-body {
    padding: 25px;
}

/* ========== BUTTONS ========== */
.btn {
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-purple);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.bg-gradient {
    background: var(--gradient-purple) !important;
}

/* ========== TIER BADGES ========== */
.tier-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-title);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.tier-badge:hover {
    transform: scale(1.1);
}

.tier-splus { background: var(--tier-splus); }
.tier-s { background: var(--tier-s); }
.tier-a { background: var(--tier-a); }
.tier-b { background: var(--tier-b); }
.tier-c { background: var(--tier-c); }
.tier-d { background: var(--tier-d); }
.tier-f { background: var(--tier-f); }

/* ========== TEXT STYLES ========== */
.text-gradient {
    background: var(--gradient-gaming);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
}

/* ========== MODERN FOOTER ========== */
.modern-footer {
    background: var(--bg-dark);
    position: relative;
    margin-top: 100px;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
    fill: var(--bg-primary);
}

.footer-content {
    padding: 80px 0 30px 0;
    position: relative;
    z-index: 2;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6));
}

.footer-title {
    font-family: var(--font-title);
    font-size: 1.3rem;
    background: var(--gradient-gaming);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient-purple);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-purple);
}

.footer-heading {
    color: white;
    font-family: var(--font-title);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary-purple);
    transform: translateX(5px);
}

.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-purple);
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary-purple);
}

.stat-item h4 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
}

.stat-item p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-muted);
}

.footer-bottom p {
    margin: 10px 0;
}

.heart-beat {
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

/* Footer Canvas */
#footerCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.1;
}

/* ========== SCROLL TO TOP ========== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-purple);
    color: white;
    border: none;
    font-size: 1.5rem;
    box-shadow: var(--shadow-purple);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .nav-link-custom {
        margin: 5px 0;
    }
    
    .user-dropdown {
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
}

/* ========== UTILITIES ========== */
.shadow-custom {
    box-shadow: var(--shadow-purple) !important;
}

.glow-purple {
    box-shadow: var(--shadow-glow);
}

.text-purple {
    color: var(--primary-purple) !important;
}