/* ==========================================================================
   WILLSLOTS.COM - PREMIUM LIGHT DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette - Vibrant Purple & Clean White */
    --bg-main: #ffffff;
    --bg-sub: #fcfaff;
    --bg-glass: rgba(255, 255, 255, 0.7);

    --purple-light: #f3e5f5;
    --purple-mid: #9c27b0;
    --purple-dark: #7b1fa2;
    --purple-glow: rgba(156, 39, 176, 0.2);

    --text-main: #121212;
    --text-sub: #545454;
    --text-muted: #8e8e8e;

    --accent-gradient: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    --accent-gradient-text: linear-gradient(135deg, #9c27b0 20%, #7b1fa2 80%);

    --success: #00c853;
    --warning: #ffab00;
    --danger: #ff1744;

    /* Spacing & Borders */
    --border-light: rgba(156, 39, 176, 0.1);
    --border-focus: rgba(156, 39, 176, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(156, 39, 176, 0.08);
    --shadow-lg: 0 16px 48px rgba(156, 39, 176, 0.12);

    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --container-width: 1280px;
    --header-height: 80px;
}

/* 1. Base Reset & Layout
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: 0.3;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(156, 39, 176, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 32px;
}

.mb-4 {
    margin-bottom: 32px;
}

/* 2. Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
}

.header-inner {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -1px;
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-desktop {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 10px 20px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-sub);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: var(--purple-mid);
    background: var(--purple-light);
}

.nav-link.active {
    color: #fff;
    background: var(--purple-mid);
    box-shadow: 0 4px 15px var(--purple-glow);
}

/* Mobile Menu Toggles */
.menu-toggle {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--purple-mid);
    border-radius: 9px;
    transition: .3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 10px;
}

.menu-toggle span:nth-child(3) {
    top: 20px;
}

.menu-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    padding: 100px 30px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-mobile.active {
    right: 0;
}

/* 3. Global Components
   ========================================================================== */
.main-content {
    padding-top: var(--header-height);
}

.gradient-text {
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-sub);
}

/* Badge System */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--purple-light);
    color: var(--purple-mid);
    border: 1px solid var(--border-light);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purple-mid);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(156, 39, 176, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(156, 39, 176, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(156, 39, 176, 0);
    }
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(156, 39, 176, 0.35);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(156, 39, 176, 0.5);
}

.btn-secondary {
    background: #fff;
    color: var(--purple-mid);
    border: 2px solid var(--purple-mid);
}

.btn-secondary:hover {
    background: var(--purple-light);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
}

/* 4. Tool Specific Styles
   ========================================================================== */

/* RTP Tracker & Game Cards */
#games-grid {
    display: grid;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.game-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 30px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.game-card:hover {
    transform: translateX(12px);
    border-color: var(--purple-mid);
    box-shadow: var(--shadow-md);
    background: var(--bg-sub);
}

.game-card-thumb {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
}

.game-card-info {
    flex: 1;
}

.game-card-name {
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.game-card-provider {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--purple-dark);
}

.game-card-rtp {
    text-align: right;
    min-width: 180px;
}

.rtp-val {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.rtp-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.rtp-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
}

/* Super Recommended Style */
.top-pick-card {
    border: 2px solid var(--purple-mid) !important;
    background: linear-gradient(to right, #fff, var(--purple-light)) !important;
    position: relative;
    overflow: hidden;
}

.top-pick-card::after {
    content: 'HOT';
    position: absolute;
    top: 10px;
    right: -20px;
    background: var(--purple-mid);
    color: #fff;
    padding: 2px 25px;
    transform: rotate(45deg);
    font-size: 0.7rem;
    font-weight: 900;
}

.super-badge {
    background: var(--accent-gradient);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    animation: pulse 1.5s infinite;
}

/* Filter Bar & Search */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 16px 24px;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    background: var(--bg-sub);
    font-size: 1rem;
}

.filter-btn {
    padding: 14px 28px;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.filter-btn.active {
    background: var(--purple-mid);
    color: #fff;
    border-color: var(--purple-mid);
}

/* Ranking Styles */
.ranking-item {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
    transition: 0.3s;
}

.ranking-position {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
}

.ranking-position.gold {
    background: #ffd700;
    color: #fff;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-weight: 800;
    font-size: 1.1rem;
}

.score-value {
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--purple-mid);
}

/* Detector & Radar */
.radar-wrapper {
    margin: 60px auto;
    width: 300px;
    height: 300px;
    position: relative;
}

.radar-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid var(--purple-mid);
    background: rgba(156, 39, 176, 0.05);
    overflow: hidden;
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
    background: linear-gradient(0deg, rgba(156, 39, 176, 0.4) 0%, transparent 100%);
    transform-origin: top left;
    animation: sweep 3s infinite linear;
}

@keyframes sweep {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Signal Terminal */
.signal-terminal {
    background: #0a0a0f !important;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

/* Simulator */
.sim-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--purple-light);
    outline: none;
    margin: 20px 0;
}

.sim-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--purple-mid);
    cursor: pointer;
}

/* 5. Homepage Groups
   ========================================================================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.tool-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    text-align: center;
    transition: 0.4s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-card:hover {
    transform: translateY(-12px);
    border-color: var(--purple-mid);
}

.tool-card-icon {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: var(--bg-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 3rem;
}

.tool-card-icon img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}

/* Engagement Grid (Notification + Instagram) */
.engagement-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.engagement-grid .tool-card {
    flex: 1;
    min-width: 350px;
    max-width: 450px;
}

@media (max-width: 768px) {
    .engagement-grid .tool-card {
        min-width: 100%;
    }
}

/* 6. Iframe & Banner Wrappers */
.iframe-wrapper {
    width: 100%;
    margin: 40px 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #fff;
    display: flex;
    justify-content: center;
}

.external-banner {
    width: 100%;
    height: 400px;
    border: none;
}

.external-platforms {
    width: 100%;
    height: 839px;
    border: none;
}

/* 7. Footer
   ========================================================================== */
.footer {
    padding: 100px 0 60px;
    background: var(--bg-sub);
    border-top: 1px solid var(--border-light);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-sub);
    font-weight: 700;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--purple-mid);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 8. Responsive Design & Final Polishes
   ========================================================================== */
@media (max-width: 1024px) {
    .section-header h2 {
        font-size: 2.2rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-content {
        padding-top: 70px;
    }

    /* Bigger Icons for Mobile per user request */
    .game-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .game-card-thumb {
        width: 120px;
        height: 120px;
        border-radius: 24px;
        margin-bottom: 20px;
    }

    .game-card-name {
        font-size: 1.5rem;
    }

    .game-card-rtp {
        min-width: 100%;
        text-align: center;
        margin-top: 20px;
    }

    /* Full Width Banners with Fixed 400px Height */
    .mobile-flush {
        padding: 0 !important;
        width: 100vw !important;
        margin-left: calc(-50vw + 50%);
    }

    .mobile-flush .iframe-wrapper {
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        border: none;
        height: 400px !important;
    }

    .mobile-flush .external-banner {
        height: 400px !important;
    }
}

@media (max-width: 480px) {

    .mobile-flush .iframe-wrapper,
    .mobile-flush .external-banner {
        height: 400px !important;
    }
}

/* Game Selector (Sinais) */
.game-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.game-select-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-select-card:hover {
    border-color: var(--purple-light);
    transform: translateY(-2px);
}

.game-select-card.selected {
    border-color: var(--purple-mid);
    background: rgba(156, 39, 176, 0.1);
    box-shadow: 0 0 15px rgba(156, 39, 176, 0.3);
}

/* Terminal Output (Gerador de Sinais) */
.terminal-line {
    font-family: var(--font-mono);
    line-height: 1.6;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.terminal-line span:first-child {
    color: #00ff66;
    margin-right: 8px;
    font-weight: bold;
}

.terminal-line .command {
    color: #fff;
    font-weight: 500;
}

.terminal-line .output {
    color: #a8b2d1;
}

.terminal-line .highlight {
    color: var(--primary-color, #c14afe);
    font-weight: 800;
}

/* Overriding terminal text colors for matrix style */
.terminal-line {
    color: #00ff66 !important;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.5);
}

.terminal-line span {
    color: #00ff66 !important;
}

.terminal-line .highlight {
    color: #00ff66 !important;
    font-weight: bold;
}

.terminal-line .output {
    color: #00ff66 !important;
}

.terminal-line .command {
    color: #fff !important;
}