/* ===== BoldStream Game Portal - Main Styles ===== */
/* ===== CSS Variables ===== */
:root {
    /* Brand Colors */
    --primary-blue: #1a73e8;
    --primary-blue-dark: #1557b0;
    --primary-blue-light: #4a90e2;
    --accent-orange: #ff6d00;
    --accent-orange-dark: #e65100;
    --accent-orange-light: #ff9e40;

    /* Neutral Colors */
    --bg-primary: #0f1923;
    --bg-secondary: #162133;
    --bg-card: #1c2a3e;
    --bg-card-hover: #243447;
    --bg-overlay: rgba(15, 25, 35, 0.85);
    --text-primary: #ffffff;
    --text-secondary: #a0b4c8;
    --text-muted: #6b8299;
    --border-color: #2a3f57;
    --border-light: #1e3250;

    /* Semantic Colors */
    --success: #00c853;
    --warning: #ffc107;
    --danger: #ff3d00;
    --info: #00b0ff;

    /* Tags */
    --tag-new: #00c853;
    --tag-hot: #ff3d00;
    --tag-top: #ffc107;
    --tag-featured: #7c4dff;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Typography */
    --font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-glow-blue: 0 0 20px rgba(26,115,232,0.3);
    --shadow-glow-orange: 0 0 20px rgba(255,109,0,0.3);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Container */
    --container-max: 1280px;
    --nav-height: 64px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-orange);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    outline: none;
    transition: border-color var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-blue);
}

ul, ol {
    list-style: none;
}

/* ===== Utility Classes ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.grid {
    display: grid;
}

.text-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ===== Tags & Badges ===== */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-new {
    background: var(--tag-new);
    color: #000;
}

.tag-hot {
    background: var(--tag-hot);
    color: #fff;
}

.tag-top {
    background: var(--tag-top);
    color: #000;
}

.tag-featured {
    background: var(--tag-featured);
    color: #fff;
}

.tag-category {
    background: rgba(26,115,232,0.15);
    color: var(--primary-blue-light);
    border: 1px solid rgba(26,115,232,0.3);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-blue-light), var(--primary-blue));
    box-shadow: var(--shadow-glow-blue);
    transform: translateY(-1px);
    color: #fff;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-orange-light), var(--accent-orange));
    box-shadow: var(--shadow-glow-orange);
    transform: translateY(-1px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue-light);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: #fff;
}

.btn-ghost {
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.btn-sm {
    padding: 6px 14px;
    font-size: var(--font-size-xs);
}

.btn-lg {
    padding: 14px 32px;
    font-size: var(--font-size-lg);
}

/* ===== Section ===== */
.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.section-title .icon {
    color: var(--accent-orange);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-top: var(--space-xs);
}

/* ===== Rating Stars ===== */
.stars {
    display: inline-flex;
    gap: 2px;
    color: var(--warning);
    font-size: var(--font-size-sm);
}

.stars .empty {
    color: var(--text-muted);
}

/* ===== Loading Animation ===== */
.loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== Page Transition ===== */
.page-enter {
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Responsive Breakpoints (used as reference) ===== */
/* Mobile: < 576px */
/* Tablet: 576px - 992px */
/* Desktop: > 992px */
