/**
 * GameWorld - Main Stylesheet
 * Default theme with space/gaming aesthetic
 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0e27;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(88, 166, 255, 0.1) 0%, transparent 50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    background: rgba(15, 20, 45, 0.95);
    padding: 1rem 0;
    border-bottom: 2px solid #1e3a8a;
    position: sticky;
    top: 0;
    z-index: 1000;
   /* backdrop-filter: blur(10px); */
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    text-decoration: none;
    color: #60a5fa;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
    transition: all 0.3s ease;
}

.logo a:hover {
    color: #93c5fd;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.8);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: #d1d5db;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

.cart-link,
.wishlist-link {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid #3b82f6;
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.theme-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    color: #60a5fa;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.theme-btn:hover,
.theme-btn.active {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #0a0e27 100%);
    background-image: 
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(96,165,250,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>'),
        linear-gradient(135deg, #1e3a8a 0%, #0a0e27 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-overlay {
    position: relative;
    z-index: 1;
}

.banner-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.8);
    animation: fadeInUp 1s ease;
}

.banner-subtitle {
    font-size: 1.5rem;
    color: #93c5fd;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
    animation: fadeInUp 1.4s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #0a0e27 100%);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.8);
}

.page-header p {
    font-size: 1.2rem;
    color: #93c5fd;
}

/* ============================================
   SECTIONS
   ============================================ */
.section-title,
.page-title {
    font-size: 2.5rem;
    color: #60a5fa;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

.popular-games,
.categories-section,
.products-section,
.category-section,
.about-page,
.contact-page,
.checkout-page,
.download-page {
    padding: 60px 0;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.3);
    border-color: rgba(96, 165, 250, 0.5);
}

.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #0f172a;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.wishlist-form {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.wishlist-btn {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    padding: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.2);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.25rem;
    color: #f3f4f6;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-price {
    font-size: 1.5rem;
    color: #34d399;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.btn-add-cart {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* ============================================
   CATEGORIES GRID
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    border: 2px solid rgba(96, 165, 250, 0.3);
}

.category-card:hover {
    transform: scale(1.05);
}

.category-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
}

.category-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(10, 14, 39, 0.9) 100%);
    transition: background 0.3s ease;
}

.category-card:hover .category-content {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(30, 58, 138, 0.9) 100%);
}

.category-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Specific category colors */
.category-card.playstation .category-content {
    background: linear-gradient(135deg, rgba(0, 55, 145, 0.9) 0%, rgba(0, 35, 95, 0.9) 100%);
}

.category-card.xbox .category-content {
    background: linear-gradient(135deg, rgba(16, 124, 16, 0.9) 0%, rgba(8, 80, 8, 0.9) 100%);
}

.category-card.pc .category-content {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.9) 0%, rgba(200, 80, 0, 0.9) 100%);
}

/* ============================================
   FORMS
   ============================================ */
.contact-form-container,
.verification-form {
    max-width: 600px;
    margin: 2rem auto;
    background: rgba(30, 41, 59, 0.8);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #93c5fd;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 6px;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.form-buttons {
    display: flex;
    gap: 1rem;
}

.btn-submit,
.btn-verify,
.btn-checkout {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover,
.btn-verify:hover,
.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.btn-reset {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* ============================================
   LOGIN FORM
   ============================================ */
.login-container {
    max-width: 400px;
    margin: 4rem auto;
    background: rgba(30, 41, 59, 0.9);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #60a5fa;
    font-size: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.login-links {
    text-align: center;
    margin-top: 2rem;
}

.login-links p {
    margin: 0.5rem 0;
}

.login-links a {
    color: #60a5fa;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.error-message {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #ef4444;
    margin-bottom: 1rem;
    text-align: center;
}

/* Theme-specific login container styles */
body.theme-newvegas .login-container {
    background: rgba(26, 20, 16, 0.9);
    border: 1px solid rgba(204, 102, 0, 0.3);
}

body.theme-newvegas .login-container h2 {
    color: #ff8c00;
}

body.theme-newvegas .form-group label {
    color: #d4a574;
}

body.theme-newvegas .form-group input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(204, 102, 0, 0.3);
    color: #d4a574;
}

body.theme-newvegas .form-group input:focus {
    border-color: #ff8c00;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
}

body.theme-newvegas .login-btn {
    background: linear-gradient(135deg, #cc6600 0%, #a05000 100%);
}

body.theme-newvegas .login-btn:hover {
    box-shadow: 0 5px 15px rgba(204, 102, 0, 0.4);
}

body.theme-newvegas .login-links a {
    color: #ff8c00;
}

body.theme-starwars .login-container {
    background: rgba(10, 10, 20, 0.9);
    border: 1px solid rgba(138, 43, 226, 0.3);
}

body.theme-starwars .login-container h2 {
    color: #8a2be2;
}

body.theme-starwars .form-group label {
    color: #dda0dd;
}

body.theme-starwars .form-group input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: #dda0dd;
}

body.theme-starwars .form-group input:focus {
    border-color: #8a2be2;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

body.theme-starwars .login-btn {
    background: linear-gradient(135deg, #8a2be2 0%, #6a1b9a 100%);
}

body.theme-starwars .login-btn:hover {
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

body.theme-starwars .login-links a {
    color: #8a2be2;
}

/* ============================================
   SHOPPING CART
   ============================================ */
.cart-table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

.cart-table {
    width: 100%;
    background: rgba(30, 41, 59, 0.8);
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}

.cart-table th {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 1rem;
    text-align: left;
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
}

.quantity-input {
    width: 60px;
    padding: 0.5rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 4px;
    color: #e0e0e0;
}

.btn-remove {
    font-size: 1.2rem;
    text-decoration: none;
    cursor: pointer;
}

.cart-summary {
    max-width: 400px;
    margin: 2rem auto;
    background: rgba(30, 41, 59, 0.8);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.summary-row.total {
    font-size: 1.5rem;
    font-weight: bold;
    color: #34d399;
    margin-top: 1rem;
}

/* ============================================
   MESSAGES
   ============================================ */
.success-message {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #4ade80;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #f87171;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: rgba(15, 20, 45, 0.95);
    border-top: 2px solid #1e3a8a;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-info h3,
.footer-links h4,
.footer-categories h4 {
    color: #60a5fa;
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-categories ul {
    list-style: none;
}

.footer-links a,
.footer-categories a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-categories a:hover {
    color: #60a5fa;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-table {
        font-size: 0.875rem;
    }
}

/* ============================================
   WISHLIST PAGE STYLES
   ============================================ */
.wishlist-page {
    padding: 60px 0;
}

.empty-wishlist {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 600px;
}

.empty-wishlist h2 {
    color: #93c5fd;
    margin-bottom: 1rem;
}

.btn-continue-shopping {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-continue-shopping:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.wishlist-actions {
    text-align: center;
    margin: 2rem 0;
}

.btn-add-all {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

.wishlist-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(239, 68, 68, 0.8);
    border: none;
    padding: 0.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.wishlist-remove:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.2);
}

.wishlist-summary {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 8px;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */

.product-detail-page {
    padding: 2rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.product-detail-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    flex: 1;
}

.product-images-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    max-width: 600px;
}

.main-product-image {
    width: 100%;
    height: 400px;
    background: #0f172a;
    border: 2px solid #1e3a8a;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-product-image:hover {
    border-color: #60a5fa;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}

.main-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-product-image:hover img {
    transform: scale(1.05);
}

.image-thumbnails {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid #374151;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #0f172a;
}

.thumbnail:hover {
    border-color: #60a5fa;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.thumbnail.active {
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-section {
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid #1e3a8a;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    flex: 1;
    max-width: 500px;
}

/* Full screen image overlay */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: pointer;
}

.image-overlay.active {
    display: flex;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 3px solid #60a5fa;
    box-shadow: 0 0 50px rgba(96, 165, 250, 0.8);
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(59, 130, 246, 0.8);
    border: 2px solid #60a5fa;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-overlay:hover {
    background: rgba(96, 165, 250, 0.9);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.8);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .product-images-section,
    .product-info-section {
        max-width: 100%;
    }
    
    .product-detail-name {
        font-size: 2rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-add-cart-detail,
    .btn-wishlist-detail {
        width: 100%;
        text-align: center;
    }
    
    .fullscreen-image {
        max-width: 95%;
        max-height: 95%;
    }
}