/* Gaming Theme - Modern & Optimized */

:root {
    --primary: #155dfc;
    --primary-dark: #0d47a1;
    --secondary: #7f22fe;
    --accent: #ff6b35;
    --success: #00a63e;
    --dark-bg: #1a1a1a;
    --dark-card: #2a2a2a;
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --border: #3a3a3a;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 0 20px rgba(21, 93, 252, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(21, 93, 252, 0.5);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-light {
    background: white;
    color: var(--primary);
}

.btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.feature-item i {
    color: var(--primary);
    font-size: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Cards */
.card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(21, 93, 252, 0.15);
    transform: translateY(-4px);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Game Cards */
.game-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(21, 93, 252, 0.15);
    transform: translateY(-4px);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card-body {
    padding: 1.5rem;
}

.game-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.game-card-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.game-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.game-features li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-features li:before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}

/* Sections */
section {
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Navbar */
.navbar {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background: rgba(0, 0, 0, 0.98) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--primary);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--primary);
}

/* Forms */
.form-control {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-light);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--dark-card);
    border-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 0 0 3px rgba(21, 93, 252, 0.1);
}

.form-label {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Cart-specific readability improvements */
.in-shopping-cart {
    /* Slightly darker page background for contrast */
    background-color: #0f0f10;
}

.in-shopping-cart .primary-content {
    background: transparent;
    color: var(--text-light);
}

.in-shopping-cart .card,
.in-shopping-cart .cart-summary,
.in-shopping-cart .cart-items,
.in-shopping-cart .cart-total {
    background: #141414;
    border: 1px solid rgba(255,255,255,0.06);
    color: #fff;
}

.in-shopping-cart .card-title,
.in-shopping-cart h1,
.in-shopping-cart h2,
.in-shopping-cart .section-title {
    color: #ffffff;
}

.in-shopping-cart table {
    color: #e8e8e8;
}

.in-shopping-cart table thead th {
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.in-shopping-cart table tbody td {
    color: #d6d6d6;
    padding: 0.9rem 0.75rem;
}

.in-shopping-cart .form-control,
.in-shopping-cart .input-group .form-control {
    background: #0f0f10;
    border: 1px solid rgba(255,255,255,0.05);
    color: #fff;
}

.in-shopping-cart .btn-outline-light,
.in-shopping-cart .btn-outline-primary {
    border-color: rgba(255,255,255,0.12);
    color: #fff;
}

.in-shopping-cart .btn-primary {
    background: linear-gradient(135deg, #1e6bff, #8a3cff);
    color: #fff;
}

.in-shopping-cart .cart-empty {
    color: var(--text-muted);
    background: transparent;
}

/* Improve link contrast inside cart */
.in-shopping-cart a { color: #9ec1ff; }
.in-shopping-cart a:hover { color: #cfe4ff; }

/* Ensure navbar dropdowns appear above page content */
.navbar .dropdown-menu,
.navbar-nav .dropdown-menu {
    position: absolute !important;
    z-index: 99999 !important;
    left: auto;
}

/* When dropdown is shown, force visibility above stacked content */
.show > .dropdown-menu {
    display: block !important;
    z-index: 100000 !important;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-scrolled {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
