/* ==========================================================================
   GxCheats - Professional Design System
   ========================================================================== */

:root {
    /* Colors */
    --primary: #DC2626;
    /* Dark Red */
    --primary-dark: #991B1B;
    --secondary: #7C3AED;
    /* Purple */
    --bg: #0F0F0F;
    /* Professional Black/Dark Gray */
    --bg-surface: #18181B;
    /* Slightly lighter surface */
    --text: #FFFFFF;
    --text-secondary: #A1A1AA;
    --border: rgba(255, 255, 255, 0.08);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-overlay: linear-gradient(to bottom, rgba(15, 15, 15, 0), var(--bg));

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(220, 38, 38, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation: pulse 15s ease-in-out infinite;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
    opacity: 0.2;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Floating Header */
.header {
    position: fixed;
    top: 24px;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header .container {
    background: rgba(24, 24, 27, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 12px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}

.logo-text .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link.login-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
}

.nav-link.login-btn:hover {
    background: var(--text);
    color: var(--bg);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 180px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.glitch {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 56px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 100px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    display: inline-flex;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.cta-btn {
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-btn:not(.secondary) {
    background: var(--text);
    color: var(--bg);
}

.cta-btn:not(.secondary):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text);
}

/* Hero Image with Skew Effect */
.hero-image {
    margin-top: 60px;
    perspective: 1000px;
}

.hero-image img {
    max-width: 700px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(220, 38, 38, 0.3), 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: rotateX(5deg) rotateY(-5deg);
    transition: transform 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image img:hover {
    transform: rotateX(0deg) rotateY(0deg) scale(1.02);
}

/* Sections */
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.title-accent {
    color: var(--primary);
    font-weight: 400;
}

/* Games Grid */
.games,
.cheats-section {
    padding: 80px 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.game-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.game-image {
    height: 240px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-info {
    padding: 32px;
}

.game-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.game-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cheat-count {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.view-btn {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Content Pages (Game/Free) */
.game-banner {
    height: 400px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 48px;
    margin-top: 140px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, rgba(15, 15, 15, 0.8) 50%, rgba(15, 15, 15, 0.4) 100%);
}

.banner-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.platform-tags {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.platform-tag {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
}

.back-btn {
    position: absolute;
    top: 32px;
    left: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    z-index: 10;
}

/* Search & Filters */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 24px;
}

.search-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    display: flex;
    align-items: center;
    padding: 8px 24px;
    width: 320px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.search-input {
    background: transparent;
    border: none;
    color: var(--text);
    width: 100%;
    padding: 8px 0;
    outline: none;
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.category-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 100px;
    /* Pill shape */
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    /* Dark Red */
    border-color: var(--primary);
    color: white;
}

/* Cheat Cards */
.cheats-list {
    display: grid;
    gap: 16px;
}

.cheat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: var(--transition);
}

.cheat-card:hover {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.cheat-info {
    flex: 1;
}

.cheat-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text);
}

.cheat-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(124, 58, 237, 0.15);
    /* Purple tint */
    color: #A78BFA;
    /* Light Purple */
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
}

.cheat-code-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #000;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    min-width: 300px;
    justify-content: space-between;
}

.cheat-code-wrapper code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    /* Red code */
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.copy-btn:hover {
    color: var(--text);
}

/* Free Cheats */
.free-cheats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.free-cheat-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
}

.free-cheat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
    /* Purple hover */
}

.cheat-status {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cheat-status.undetected {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.free-cheat-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-list {
    margin: 24px 0;
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: "✓";
    color: var(--secondary);
    /* Purple checks */
    font-weight: bold;
}

.download-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.download-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 0;
    margin-top: 80px;
    text-align: center;
}

.footer .copyright {
    color: var(--text);
    font-weight: 500;
}

.footer .disclaimer {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        padding: 12px 20px;
    }

    .nav {
        display: none;
    }

    /* Hide nav for basic mobile (expand later if needed) */
    .hero-title {
        font-size: 3rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
        border-radius: 24px;
    }

    .cheat-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .cheat-code-wrapper {
        width: 100%;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }
}

/* Page Hero (Free Cheats) */
.page-hero {
    padding-top: 180px;
    padding-bottom: 60px;
    text-align: center;
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.page-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 32px;
}

.warning-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 100px;
    color: #EF4444;
    font-weight: 500;
    font-size: 0.9rem;
}

/* GxLoader Styles */
.loader-showcase {
    max-width: 800px;
    margin: 60px auto 0;
}

.loader-box {
    background: #111;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.loader-header {
    background: #1a1a1a;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.loader-content {
    padding: 60px 20px;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse 2s infinite;
}

.loader-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    text-align: left;
}

.feature-item {
    background: var(--bg-surface);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    flex: 1;
    min-width: 200px;
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.feature-item .icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-item h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mega-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.mega-download-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.btn-subtitle {
    opacity: 0.8;
    font-size: 0.9rem;
}

.requirements {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}