/* ==========================================================================
   CSS GLOBAL - WHOTAO DISCORD BOT WEBSITE
   Inspired by kennyy.com.br (Premium Dark Neon Theme)
   ========================================================================== */

:root {
    --bg-dark: #070709;
    --bg-card: rgba(18, 18, 24, 0.65);
    --bg-navbar: rgba(7, 7, 9, 0.75);
    --border-glow: rgba(255, 46, 147, 0.15);
    --border-light: rgba(255, 255, 255, 0.07);
    
    /* Neon Colors */
    --neon-crimson: #ff2e93;
    --neon-teal: #00f2fe;
    
    /* Text Colors */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #6b7280;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--neon-crimson) 0%, #a855f7 50%, var(--neon-teal) 100%);
    --gradient-glow: radial-gradient(circle, rgba(255, 46, 147, 0.15) 0%, rgba(0, 242, 254, 0.05) 50%, transparent 100%);
}

/* Reset & Scrollbar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-crimson);
}

/* Noise overlay */
.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
}

/* Decorative Glow Blobs */
.glow-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.45;
    pointer-events: none;
}
.glow-1 {
    top: 10%;
    right: -100px;
    background: var(--neon-crimson);
}
.glow-2 {
    bottom: 20%;
    left: -150px;
    background: var(--neon-teal);
}
.glow-3 {
    top: 60%;
    right: 10%;
    background: #a855f7;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: var(--bg-navbar);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
    transition: padding 0.3s ease;
}
.navbar.scroll {
    padding: 14px 8%;
}
.navbar .logo {
    font-family: 'K2D', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: lowercase;
    display: flex;
    align-items: center;
    color: var(--text-main);
    text-decoration: none;
}
.navbar .logo span {
    color: var(--neon-crimson);
}
.navbar .logo-dot {
    color: var(--neon-teal);
}
.navbar .nav-links {
    display: flex;
    gap: 32px;
}
.navbar .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}
.navbar .nav-links a:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}
.navbar .nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 8px;
}
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 46, 147, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 46, 147, 0.4);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-light);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-outline:hover {
    border-color: var(--neon-teal);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
    transform: translateY(-2px);
}
.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding: 140px 8% 80px 8%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
    z-index: 10;
    position: relative;
}
.hero-text {
    z-index: 2;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 46, 147, 0.1);
    border: 1px solid rgba(255, 46, 147, 0.2);
    color: var(--neon-crimson);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-text h1 {
    font-family: 'K2D', sans-serif;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.highlight {
    background: linear-gradient(to right, var(--neon-crimson), var(--neon-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-text p {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 580px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
}
.stats-row {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
}
.stat-item h3 {
    font-family: 'K2D', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}
.stat-item span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ui-mockup {
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-10deg) rotateX(10deg);
    transition: transform 0.5s ease;
}
.ui-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
.floating-avatar {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section-container {
    padding: 100px 8%;
    position: relative;
    z-index: 10;
}
.dark-section {
    background: rgba(18, 18, 24, 0.35);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px auto;
}
.section-header h2 {
    font-family: 'K2D', sans-serif;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 16px;
}

/* ==========================================================================
   CAROUSEL FEATURES (SWIPER)
   ========================================================================== */
.features-swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 50px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px 30px;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.feature-card:hover {
    border-color: var(--neon-crimson);
    box-shadow: 0 10px 30px rgba(255, 46, 147, 0.1);
    transform: translateY(-5px);
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(255, 46, 147, 0.1);
    color: var(--neon-crimson);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.swiper-slide-active .feature-icon {
    background: var(--gradient-primary);
    color: #fff;
}
.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}
.swiper-pagination-bullet {
    background: var(--text-muted);
    opacity: 0.3;
}
.swiper-pagination-bullet-active {
    background: var(--neon-crimson) !important;
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

/* ==========================================================================
   COMMANDS TABLE (INTERACTIVE)
   ========================================================================== */
.commands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.command-group {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
}
.cmd-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--neon-teal);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}
.cmd-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}
.cmd-item:last-child {
    margin-bottom: 0;
}
.cmd-name {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: var(--neon-crimson);
    font-weight: 600;
}
.cmd-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   TECHNICAL STACK & CODE BLOCK
   ========================================================================== */
.tech-section {
    max-width: 1200px;
    margin: 0 auto;
}
.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.tech-text h2 {
    font-family: 'K2D', sans-serif;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
}
.tech-text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}
.tech-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.tech-tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-muted);
}
.tech-code {
    background: #0d0e12;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.window-header {
    background: #15181f;
    padding: 12px 20px;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--border-light);
}
.window-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.window-header .dot.red { background: #ff5f56; }
.window-header .dot.yellow { background: #ffbd2e; }
.window-header .dot.green { background: #27c93f; }
.tech-code pre {
    padding: 24px;
    overflow-x: auto;
}
.tech-code code {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: #a9b2c3;
    line-height: 1.6;
}

/* ==========================================================================
   DASHBOARD SPECIFIC STYLES
   ========================================================================== */
.dashboard-layout {
    display: block;
    min-height: 100vh;
}
.sidebar {
    background: var(--bg-navbar);
    border-right: 1px solid var(--border-light);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: fixed;
    width: 250px;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 90;
}
.sidebar-logo {
    font-family: 'K2D', sans-serif;
    font-size: 24px;
    font-weight: 800;
    text-transform: lowercase;
    text-decoration: none;
    color: var(--text-main);
}
.sidebar-logo span {
    color: var(--neon-crimson);
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s ease;
}
.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255, 46, 147, 0.08);
    color: var(--text-main);
    border-left: 3px solid var(--neon-crimson);
}
.sidebar-user {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--neon-crimson);
}
.user-info h4 {
    font-size: 14px;
    font-weight: 600;
}
.user-info span {
    font-size: 12px;
    color: var(--text-muted);
}
.dashboard-main {
    margin-left: 250px;
    padding: 40px 5%;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.dashboard-header h1 {
    font-family: 'K2D', sans-serif;
    font-size: 32px;
    font-weight: 800;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
}
.dashboard-card h3 {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.dashboard-card .value {
    font-family: 'K2D', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
}
.dashboard-card .trend {
    font-size: 12px;
    color: #10b981;
}
.dashboard-charts {
    display: grid;
    grid-template-columns: 2.1fr 0.9fr;
    gap: 30px;
    margin-bottom: 40px;
}
.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 30px;
}
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.chart-header h3 {
    font-size: 16px;
    font-weight: 700;
}
.dashboard-config {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.config-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.config-row:last-child {
    border-bottom: none;
}
.config-label h4 {
    font-size: 14px;
    font-weight: 600;
}
.config-label p {
    font-size: 12px;
    color: var(--text-muted);
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2b2d31;
    transition: .4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--neon-crimson);
}
input:checked + .slider:before {
    transform: translateX(20px);
}

/* ELO Table */
.elo-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.elo-table th, .elo-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
.elo-table th {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.elo-table td {
    font-size: 14px;
}
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 700;
    font-size: 12px;
}
.rank-1 { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.rank-2 { background: rgba(158, 158, 158, 0.15); color: #9e9e9e; }
.rank-3 { background: rgba(205, 127, 50, 0.15); color: #cd7f32; }

/* ==========================================================================
   TOS & PRIVACY (LEGAL PAGES)
   ========================================================================== */
.legal-page {
    padding: 140px 8% 80px 8%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.legal-page h1 {
    font-family: 'K2D', sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
}
.legal-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
}
.legal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
    line-height: 1.7;
}
.legal-content h2 {
    font-family: 'K2D', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 16px 0;
    color: var(--neon-teal);
}
.legal-content h2:first-child {
    margin-top: 0;
}
.legal-content p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}
.legal-content ul, .legal-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 15px;
}
.legal-content li {
    margin-bottom: 8px;
}

/* ==========================================================================
   MODAL DIALOG - CONFIRMATION
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    background: #0f1015;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 36px;
    width: 90%;
    max-width: 460px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 30px rgba(255,46,147,0.1);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-title {
    font-family: 'K2D', sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}
.modal-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-light);
    background: #09090c;
    padding: 0 8%;
    position: relative;
    z-index: 10;
}
.cta-banner {
    background: linear-gradient(135deg, rgba(255, 46, 147, 0.05) 0%, rgba(0, 242, 254, 0.05) 100%);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    transform: translateY(-50px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.cta-banner h2 {
    font-family: 'K2D', sans-serif;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}
.cta-banner p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 28px;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 40px 0 80px 0;
}
.footer-brand strong {
    font-family: 'K2D', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
}
.footer-brand strong span {
    color: var(--neon-crimson);
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
}
.footer-links {
    display: flex;
    gap: 80px;
}
.footer-links h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
    margin-bottom: 16px;
}
.footer-links div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.25s ease;
}
.footer-links a:hover {
    color: var(--text-main);
}
.copyright {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-dark);
}

/* ==========================================================================
   RESPONSIVIDAD
   ========================================================================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 120px;
        text-align: center;
        gap: 40px;
    }
    .hero-text h1 {
        font-size: 42px;
    }
    .hero-text p {
        margin: 0 auto 36px auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .stats-row {
        justify-content: center;
    }
    .tech-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .commands-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none; /* Debería cambiarse a un menú móvil en producción */
    }
    .dashboard-main {
        margin-left: 0;
        padding: 100px 5% 40px 5%;
    }
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
        gap: 40px;
    }
}
@media (max-width: 640px) {
    .navbar {
        padding: 15px 5%;
    }
    .navbar .nav-links {
        display: none; /* Oculta enlaces de navegación en móviles para diseño minimalista */
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
