/* Gold button custom for rankings */
.gold-btn {
    background: linear-gradient(90deg, #FFD700 0%, #FFB300 100%);
    border: none;
    color: #222 !important;
}
.gold-btn-outline {
    border: 2px solid #FFD700;
    color: #FFD700 !important;
    background: transparent;
}
.gold-btn:focus, .gold-btn-outline:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.5);
}
/* ========================================
   L2 Starter - Flask Template Styles
   ======================================== */

/* CSS Variables */
:root {
    --background: 222 47% 6%;
    --foreground: 45 20% 95%;
    --card: 222 47% 8%;
    --card-foreground: 45 20% 95%;
    --primary: 45 100% 50%;
    --primary-foreground: 222 47% 6%;
    --secondary: 210 100% 50%;
    --secondary-foreground: 0 0% 100%;
    --muted: 222 30% 15%;
    --muted-foreground: 222 20% 60%;
    --border: 222 30% 20%;
    --gold-dark: 35 100% 40%;
    --gold-light: 50 100% 60%;
    --radius: 0.75rem;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    min-height: 100vh;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, hsl(var(--background)), hsl(var(--background) / 0.95));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, hsl(var(--gold-dark)), hsl(var(--primary)), hsl(var(--gold-light)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    letter-spacing: 0.2em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-family: 'Cinzel', serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: hsl(var(--primary));
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, hsl(var(--primary)), transparent);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: hsl(var(--foreground));
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
    padding: 1rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    color: hsl(var(--foreground));
    text-decoration: none;
    border-radius: var(--radius);
    transition: background 0.3s ease;
}

.mobile-nav-links a:hover {
    background: hsl(var(--muted));
}

@media (max-width: 768px) {
    .nav-links,
    .nav-buttons {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-family: 'Cinzel', serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 0 20px hsl(var(--primary) / 0.3);
}

.btn-primary:hover {
    background: hsl(var(--primary) / 0.9);
    box-shadow: 0 0 30px hsl(var(--primary) / 0.5);
}

.btn-outline {
    background: transparent;
    color: hsl(var(--primary));
    border: 2px solid hsl(var(--primary) / 0.5);
}

.btn-outline:hover {
    background: hsl(var(--primary) / 0.1);
    border-color: hsl(var(--primary));
}

.btn-secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    box-shadow: 0 0 20px hsl(var(--secondary) / 0.2);
}

.btn-secondary:hover {
    background: hsl(var(--secondary) / 0.8);
}

.btn-epic {
    background: linear-gradient(135deg, hsl(var(--gold-dark)), hsl(var(--primary)), hsl(var(--gold-dark)));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 0 30px hsl(var(--primary) / 0.4);
}

.btn-epic:hover {
    box-shadow: 0 0 40px hsl(var(--primary) / 0.6);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-xl {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ========================================
   Cards
   ======================================== */
.card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
}

.card-glass {
    background: hsl(var(--card) / 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid hsl(var(--border) / 0.5);
}

.card-glow {
    box-shadow: 0 0 40px hsl(var(--primary) / 0.1);
}

/* ========================================
   Forms
   ======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: hsl(var(--foreground));
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.2);
}

.form-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-foreground));
    width: 1.25rem;
    height: 1.25rem;
}

.input-icon-wrapper .form-input {
    padding-left: 3rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        hsl(var(--background)) 0%, 
        transparent 20%, 
        transparent 80%, 
        hsl(var(--background)) 100%
    );
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: hsl(var(--primary) / 0.1);
    border: 1px solid hsl(var(--primary) / 0.3);
    border-radius: 9999px;
    color: hsl(var(--primary));
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    background: linear-gradient(135deg, hsl(var(--foreground)), hsl(var(--primary)), hsl(var(--gold-light)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Stats Grid
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: hsl(var(--card) / 0.5);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}

.stat-value {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========================================
   Tables
   ======================================== */
.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid hsl(var(--border));
}

.table th {
    font-family: 'Cinzel', serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.table tr:hover {
    background: hsl(var(--muted) / 0.3);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-weight: 600;
}

.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #000; }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #8B4513); color: #fff; }

/* ========================================
   Footer
   ======================================== */
.footer {
    background: hsl(var(--card));
    border-top: 1px solid hsl(var(--border));
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-description {
    color: hsl(var(--muted-foreground));
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-column a {
    display: block;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: hsl(var(--foreground));
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        gap: 2rem;
    }
}

/* ========================================
   Flash Messages
   ======================================== */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flash {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    animation: slideIn 0.3s ease;
}

.flash-success {
    background: hsl(142 76% 36%);
    color: white;
}

.flash-error {
    background: hsl(0 84% 60%);
    color: white;
}

.flash-warning {
    background: hsl(45 100% 50%);
    color: hsl(var(--primary-foreground));
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================
   Page Sections
   ======================================== */
.page-header {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(to bottom, hsl(var(--background)), hsl(var(--card)));
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.page-subtitle {
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
}

.section {
    padding: 4rem 0;
}

/* ========================================
   Auth Pages
   ======================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: hsl(var(--muted-foreground));
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: hsl(var(--muted-foreground));
}

.auth-footer a {
    color: hsl(var(--primary));
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Bonus Banner */
.bonus-banner {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--secondary) / 0.1));
    border: 1px solid hsl(var(--primary) / 0.3);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.bonus-title {
    font-family: 'Cinzel', serif;
    font-size: 0.875rem;
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
}

.bonus-items {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-primary { color: hsl(var(--primary)); }
.text-muted { color: hsl(var(--muted-foreground)); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: hsl(var(--primary));
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.4;
}

.checkbox-label a {
    color: hsl(var(--primary));
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

footer.footer {
    flex-shrink: 0;
    width: 100%;
    background: hsl(var(--background));
    border-top: 1px solid hsl(var(--border) / 0.5);
    padding: 2rem 0 1rem 0;
    text-align: center;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
}


.input-wrapper {
    display: flex;
    align-items: center;
    background: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 0 12px;
    height: 48px;
    transition: all 0.25s ease;
}

/* efeito foco */
.input-wrapper:focus-within {
    border-color: #f5c542;
    box-shadow: 0 0 0 2px rgba(245, 197, 66, 0.25);
}

/* ícone */
.input-icon {
    color: #f5c542;
    display: flex;
    align-items: center;
    margin-right: 10px;
}

/* input */
.input-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    width: 100%;
    font-size: 15px;
}

/* placeholder */
.input-wrapper input::placeholder {
    color: #888;
}


/* ===============================
   RAIDBOSS PAGINATION (ISOLADO)
   =============================== */

.raidboss-pagination {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* Cores base isoladas */
.raidboss-pagination {
    --gold: #d4af37;
    --gold-dark: #b8962e;
    --gold-light: #f5e28a;
    --dark-bg: #0f0f0f;
}

/* Botões */
.raidboss-pagination .page-link {
    background-color: var(--dark-bg);
    color: var(--gold);
    border: 1px solid var(--gold);
    margin: 0 3px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

/* Hover */
.raidboss-pagination .page-link:hover {
    background-color: var(--gold);
    color: #000;
    border-color: var(--gold-light);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.6);
}

/* Página ativa */
.raidboss-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #000;
    border-color: var(--gold);
    font-weight: bold;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.9);
}

/* Desabilitado */
.raidboss-pagination .page-item.disabled .page-link {
    background-color: #1a1a1a;
    color: #666;
    border-color: #333;
    cursor: not-allowed;
    box-shadow: none;
}

/* Ellipsis (...) */
.raidboss-pagination .page-item.disabled span.page-link {
    background-color: transparent;
    border-color: var(--gold);
    color: var(--gold);
}

/* Tamanho grande */
.raidboss-pagination.pagination-lg .page-link {
    padding: 10px 18px;
    font-size: 1.05rem;
}

/* Garante horizontal */
.raidboss-pagination .page-item {
    display: inline-flex;
}
