/* styles.css */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f0f23;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a1a3e, #2d2d6b);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 45px;
    width: 45px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: #ddd;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd93d;
}

nav a.active {
    color: #ffd93d;
    border-bottom: 2px solid #ffd93d;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
    background: none;
    border: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    padding: 5rem 0;
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
}

.hero .btn-primary {
    display: inline-block;
    background: #ff6b6b;
    color: #fff;
    padding: 14px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.hero .btn-primary:hover {
    background: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.6);
}

/* Cards Section */
.card-section {
    padding: 4rem 0;
}

.card-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #ffd93d;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: #1e1e42;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #3a3a6b;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #2a2a52;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #fff;
    font-weight: 700;
}

.card-text {
    color: #b0b0d0;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.rating {
    color: #ffd93d;
    margin-bottom: 1rem;
    font-weight: 600;
}

.btn-secondary {
    background: #3a3a6b;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #50509e;
}

/* Features Section */
.features {
    background: #1a1a3e;
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffd93d;
}

.feature-item p {
    color: #b0b0d0;
}

/* Categories */
.categories {
    padding: 4rem 0;
}

.categories h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #ff6b6b;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.category-tag {
    background: #2d2d6b;
    padding: 8px 20px;
    border-radius: 30px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #50509e;
}

.category-tag:hover,
.category-tag.active {
    background: #ff6b6b;
    border-color: #ff6b6b;
}

/* Testimonials */
.testimonials {
    background: #1e1e42;
    padding: 4rem 0;
}

.testimonials h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: #ffd93d;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-item {
    background: #2a2a52;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #ff6b6b;
}

.testimonial-item p {
    font-style: italic;
    opacity: 0.9;
}

.testimonial-author {
    font-weight: 700;
    color: #ffd93d;
    margin-top: 1rem;
}

/* Newsletter */
.newsletter {
    padding: 4rem 0;
    text-align: center;
}

.newsletter h2 {
    color: #ff6b6b;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px;
    border-radius: 50px;
    border: none;
    background: #1e1e42;
    color: #fff;
    border: 1px solid #50509e;
    outline: none;
}

.newsletter-form button {
    background: #ff6b6b;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: #ff5252;
}

/* Footer */
footer {
    background: #13132b;
    padding: 2.5rem 0;
    margin-top: auto;
    border-top: 1px solid #3a3a6b;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: #ffd93d;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section a {
    color: #a0a0d0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ffd93d;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #3a3a6b;
    color: #888;
    font-size: 0.85rem;
}

/* Content Page Styles */
.page-content {
    padding: 4rem 0;
}

.page-content h1 {
    color: #ffd93d;
    margin-bottom: 1.5rem;
}

.page-content h2 {
    color: #ff6b6b;
    margin: 2rem 0 1rem;
}

.page-content p {
    margin-bottom: 1rem;
}

.game-details {
    display: flex;
    gap: 3rem;
    margin: 2rem 0;
}

.game-details img {
    max-width: 350px;
    border-radius: 15px;
}

.rating-details {
    background: #1e1e42;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.review-score {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffd93d;
}

/* Calculator / Interactive */
.calculator-section {
    background: #1e1e42;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.calculator-section input,
.calculator-section select {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    background: #2a2a52;
    border: 1px solid #50509e;
    border-radius: 8px;
    color: #fff;
    outline: none;
}

.calculator-section label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffd93d;
    font-weight: 600;
}

.result-display {
    background: #2d2d6b;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd93d;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.team-member {
    background: #1e1e42;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    color: #ffd93d;
    margin-bottom: 0.3rem;
}

.team-info .position {
    color: #ff6b6b;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* Rating System */
.ratio-bar {
    background: #2a2a52;
    border-radius: 10px;
    height: 20px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.ratio-fill {
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
    height: 100%;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    nav {
        width: 100%;
        display: none;
        order: 3;
        background: #1a1a3e;
        padding: 1rem 0;
    }

    nav.show {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .newsletter-form {
        flex-direction: column;
        max-width: 90%;
    }

    .game-details {
        flex-direction: column;
        align-items: center;
    }

    .game-details img {
        max-width: 100%;
    }

    .card-grid,
    .testimonial-grid,
    .features-grid {
        gap: 1.2rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .card-section,
    .features,
    .categories,
    .testimonials,
    .newsletter {
        padding: 3rem 0;
    }
}

/* Accessibility & Animations */
a:focus,
button:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-4 { margin-bottom: 4rem; }