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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #f8f9fa;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

h2 {
    font-size: 1.8rem;
    margin: 20px 0 10px;
    color: #1a1a2e;
}

h3 {
    font-size: 1.3rem;
    margin: 15px 0 8px;
    color: #16213e;
}

p {
    margin-bottom: 15px;
}

a {
    color: #0f3460;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #e94560;
    text-decoration: underline;
}

/* Font size toggle */
body.large-font {
    font-size: 19px;
}

body.large-font h1 {
    font-size: 2.8rem;
}

body.large-font h2 {
    font-size: 2.2rem;
}

body.large-font h3 {
    font-size: 1.6rem;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.brand-logo:hover {
    text-decoration: none;
    opacity: 0.9;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    border: 2px solid #e94560;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.main-nav a:hover {
    border-bottom: 2px solid #e94560;
    color: #e94560;
}

.font-size-toggle {
    background-color: #e94560;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s;
}

.font-size-toggle:hover {
    background-color: #c23152;
    transform: scale(1.05);
}

/* Main content */
.main-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #0f3460, #533483);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 40px;
}

.hero-index h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Games grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.game-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.game-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #ddd;
}

.game-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.game-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.game-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-description {
    flex: 1;
    margin-bottom: 15px;
}

.game-card-btn {
    background-color: #0f3460;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.game-card-btn:hover {
    background-color: #e94560;
    text-decoration: none;
}

/* Feature section */
.features-section {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 40px 0;
}

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

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #e94560;
}

.feature-item h3 {
    margin-bottom: 10px;
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, #e94560, #c23152);
    color: #fff;
    padding: 50px;
    text-align: center;
    border-radius: 10px;
    margin: 40px 0;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.cta-button {
    background-color: #fff;
    color: #e94560;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    text-decoration: none;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 30px;
}

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

/* Footer */
.site-footer {
    background: #1a1a2e;
    color: #bbb;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-col p {
    margin-bottom: 10px;
}

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #bbb;
    text-decoration: none;
}

.footer-col a:hover {
    color: #e94560;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .main-nav ul {
        justify-content: center;
        gap: 15px;
    }

    .hero-section {
        padding: 40px 15px;
    }

    .hero-index h1 {
        font-size: 2.2rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 30px 15px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}