* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #4a0e6b; /* Dark purple fallback - same as main site */
    background-image: url('bg3.jpg'); /* Same background as main site */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 30px;
}

/* Logo - Same as main site */
.site-logo {
    display: block;
    max-width: 120px;
    height: auto;
    position: relative;
    margin: 24px 0 18px 0;
    z-index: 10;
}

@media (min-width: 769px) {
    .site-logo {
        position: absolute;
        top: 32px;
        left: 32px;
        margin: 0;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    font-size: 3.2rem; /* Slightly larger */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Add text shadow for depth */
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 15px;
    opacity: 0.85;
    line-height: 1.5;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.game-card {
    background-color: rgba(255, 255, 255, 0.1); /* Similar to LavaQuiz containers */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px; /* Same as main site containers */
    padding: 35px 25px; /* More generous padding */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 280px; /* Even more height for larger images */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px); /* Add glass effect */
}

.game-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Product image instead of icon */
.game-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: contain; /* Show full product without cropping */
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    background: rgba(255, 255, 255, 0.08); /* Slightly more visible background */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
}

.game-card:hover .game-image {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.game-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.game-description {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Read More Text Link */
.read-more-btn {
    background: none;
    color: #ff7e3e; /* LavaQuiz orange */
    border: none;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.read-more-btn:hover {
    color: #e66a2e; /* LavaQuiz hover color */
    text-decoration: underline;
}

/* Badges - Updated to match LavaQuiz orange theme */
.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff7e3e; /* LavaQuiz orange */
    color: white;
    padding: 8px 18px;
    border-radius: 50px; /* Fully rounded like LavaQuiz buttons */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.badge-favorite {
    background: linear-gradient(135deg, #ff6b6b, #ff4757); /* Red gradient for favorite */
    color: white;
    font-weight: 700;
}

.badge-best-2025 {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #333;
}

.badge-budget {
    background: linear-gradient(135deg, #ff7e3e, #e66a2e); /* Use LavaQuiz orange for consistency */
}

/* Modal - Updated to match LavaQuiz style */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #4a0e6b; /* Same as body background */
    background-image: url('bg3.jpg');
    background-size: cover;
    background-position: center center;
    margin: 5% auto;
    padding: 40px; /* Same as main container */
    border-radius: 15px; /* Same as main site */
    width: 90%;
    max-width: 600px;
    max-height: 90vh; /* Limit height to 90% of viewport */
    overflow-y: auto; /* Enable vertical scrolling */
    position: relative;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 25px;
    opacity: 0.8;
}

.close:hover {
    opacity: 1;
}

.modal-game-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.modal-game-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
    opacity: 0.9;
}

.modal-game-features {
    list-style: none;
    margin-bottom: 30px;
}

.modal-game-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}

.modal-game-features li:before {
    content: "✓ ";
    color: #ff7e3e; /* LavaQuiz orange for checkmarks */
    font-weight: bold;
    margin-right: 10px;
}

/* Affiliate Button - Styled like LavaQuiz buttons */
.affiliate-button {
    display: block;
    width: 100%;
    background-color: #ff7e3e; /* LavaQuiz orange */
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px; /* Fully rounded like LavaQuiz */
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.affiliate-button:hover {
    background-color: #e66a2e; /* LavaQuiz hover color */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 126, 62, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-logo {
        margin: 0 auto 20px auto;
        display: block;
        position: static;
        left: unset;
        right: unset;
    }
    
    .header {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .hero-title {
        font-size: 2.4rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .game-card {
        padding: 25px 20px;
        min-height: 200px;
    }
    
    .game-image {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }
    
    .game-title {
        font-size: 1.2rem;
    }
    
    .game-description {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }
    
    .read-more-btn {
        font-size: 0.85rem;
    }
    
    .container {
        padding: 15px;
    }
    
    /* Make pros/cons stack on tablet */
    .pros-cons-container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

@media (max-width: 600px) {
    .site-logo {
        margin: 0 auto 15px auto;
        max-width: 100px;
    }
    
    .header {
        margin-bottom: 15px;
    }
    
    /* Mobile Modal Layout */
    .modal-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .product-image-container {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .game-info {
        text-align: left;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .game-card {
        padding: 30px 20px;
        min-height: 200px;
    }
    
    .game-image {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }
    
    .game-title {
        font-size: 1.3rem;
    }
    
    .game-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .read-more-btn {
        font-size: 0.85rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
        max-height: 85vh; /* Slightly less on mobile for better UX */
    }
    
    body {
        padding: 15px;
    }
    
    /* Ensure pros/cons are stacked on mobile */
    .pros-cons-container {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

/* Modal Header with Product Image */
.modal-header {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.product-image-container {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.image-placeholder {
    text-align: center;
    opacity: 0.7;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.image-placeholder p {
    font-size: 0.9rem;
    margin: 0;
}

.game-info {
    flex: 1;
    min-width: 0; /* Allows text to wrap properly */
}

/* CTA Button */
.cta-button:hover {
    background-color: #e66a2e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 126, 62, 0.4);
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 126, 62, 0.6);
  border-radius: 3px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 126, 62, 0.8);
}

/* Firefox scrollbar styling */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 126, 62, 0.6) rgba(255, 255, 255, 0.1);
}

/* Global Styles */ 