
/* =========================================
   1. CSS Reset & Variables
   ========================================= */
:root {
    /* Color Palette - Dark Gaming Theme */
    --bg-body: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface-hover: #334155;
    
    --primary-color: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --accent-color: #10b981; /* Success/Green */
    --accent-glow: rgba(16, 185, 129, 0.4);
    
    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    --text-link: #818cf8;
    
    --border-color: #334155;
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-base: 1rem;
    --line-height: 1.6;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    /* Effects */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: var(--line-height);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* =========================================
   2. Typography
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-top: var(--spacing-xl);
    border-left: 4px solid var(--primary-color);
    padding-left: var(--spacing-md);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--primary-color);
}

/* =========================================
   3. Layout & Containers
   ========================================= */
section {
    padding: var(--spacing-lg) var(--spacing-md);
    max-width: var(--container-width);
    margin: 0 auto;
}

/* =========================================
   4. Header & Navigation
   ========================================= */
header {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 5%;
}

header img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.5));
}

.menu {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
}

.menu li a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
}

.menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary-gradient);
    transition: var(--transition);
}

.menu li a:hover::after {
    width: 100%;
}

/* =========================================
   5. Intro / Hero Section
   ========================================= */
.intro {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.intro p {
    max-width: 700px;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
}

/* CTA Button Styles */
.intro a[href*="go.php"], 
a[href*="download"],
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    transform: translateY(0);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.intro a[href*="go.php"]:hover,
button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.6);
    color: white;
}

.intro a[href*="go.php"]:active,
button:active {
    transform: translateY(-1px);
}

/* =========================================
   6. Content Styling
   ========================================= */
.content ul, .content ol {
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-lg);
}

.content li {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Styled Lists for Features/Games */
.content ul li strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.1em;
}

/* Card-like styling for game rules or detailed lists */
.content > ul > li:has(p), 
.content > ul > li:has(strong) {
    background: var(--bg-surface);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    list-style: none;
    margin-bottom: var(--spacing-md);
    transition: var(--transition);
}

.content > ul > li:has(p):hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: var(--spacing-lg) 0;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

th {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--text-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: var(--bg-surface-hover);
}

/* Images in content */
.content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin: var(--spacing-md) 0;
}

/* =========================================
   7. Form Elements (Generic)
   ========================================= */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    transition: var(--transition);
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* =========================================
   8. Footer
   ========================================= */
footer {
    background-color: #0b1120;
    padding: var(--spacing-xl) var(--spacing-md);
    margin-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

footer ul.menu {
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

footer .menu li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

footer .menu li a:hover {
    color: var(--text-main);
}

/* =========================================
   9. Animations
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 0.8s ease-out forwards;
}

/* =========================================
   10. Responsiveness
   ========================================= */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }
    
    .menu li a {
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-sm);
        display: block;
    }

    .intro a[href*="go.php"] {
        width: 100%;
        max-width: 300px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
        border-left-width: 3px;
    }
}

/* Specific styling for the 'Pros/Cons' table to look good */
table th:nth-child(1) { color: var(--accent-color); }
table th:nth-child(2) { color: #ef4444; }

/* Blockquote or Highlight */
blockquote, 
p strong {
    color: var(--text-main);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-surface-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
