/* Color variables */
:root {
    --red: #c03e25;
    --black: #2d2017;
    --white: #ffffff;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--white);
    color: #484848;
    overflow-x: hidden;
}

/* Navigation */
nav {
    background: var(--white);
    background-blend-mode: multiply;
    padding: 0 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-image {
    width: 45px;
    height: 45px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--red);
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #484848;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--red);
}

/* Hero Banner */
.hero-banner {
    /* background: linear-gradient(135deg, #C25439 0%, #E67E52 100%); */
    background-image: url("static/images/melancholyHill2.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.35);
    background-blend-mode: multiply;
    color: var(--white);
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* background-image: url("static/gifs/starius_miniPlay2.gif"); */
    /* background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(255,255,255,0.05) 40px,
        rgba(255,255,255,0.05) 80px
    ); */
    /* animation: slide 20s linear infinite; */
}

@keyframes slide {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--white);
    color: var(--red);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Featured Game Section */
.featured-game {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
}

.featured-card {
    background: #f7f7f7;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.featured-image {
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    border-radius: 15px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    position: relative;
    overflow: hidden;
}
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-image::after {
    content: 'FEATURED';
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    color: #C25439;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.featured-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-card h2 {
    font-size: 36px;
    color: #484848;
    font-weight: 700;
}

.featured-info h2 {
    font-size: 42px;
    color: #484848;
    margin-bottom: 15px;
    font-weight: 700;
}

.featured-info p {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.platform-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.badge {
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.game-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    padding: 15px 35px;
    background: #C25439;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background: #A04530;
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 15px 35px;
    background: #fff;
    color: #C25439;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid #C25439;
    transition: all 0.2s;
    display: inline-block;
}

.btn-secondary:hover {
    background: #C25439;
    color: #fff;
}
/* News Section */
.game-news {
    background: #f7f7f7;
    padding: 80px 40px;
    margin-top: 60px;
}

.news-grid {
    margin: 0 0 8px 0;
    padding: 8px;
    gap: 30px;
    padding: 16px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* .news-cards {
    max-width: 1400px;
    margin: 0 auto;
    margin: 0 0 8px 0;
    display: grid;
} */

.news-card {
    margin: 0 0 8px 0;
    padding: 16px;
    background: #fff;
    border-radius: 7.5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.news-thumbnail {
    width: auto;
    height: 80px;
    background: linear-gradient(135deg, #C25439 0%, #8B4513 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.news-thumbnail img {
    object-fit: cover;
    width: inherit;
    height: inherit;
    display: inline;
}

/* .news-details {
    padding: 20px;
}
.news-details h3 {
    font-size: 20px;
    color: #484848;
    margin-bottom: 8px;
    font-weight: 700;
} */

.news-date {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
}

/* All Games Section */
.all-games {
    background: #f7f7f7;
    padding: 80px 40px;
}

.section-header {
    max-width: 1400px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 36px;
    color: #484848;
    font-weight: 700;
}

.filter-buttons {
    display: flex;
    gap: 15px;
}

.filter-btn {
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    background: #C25439;
    color: #fff;
    border-color: #C25439;
}

.games-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.game-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #C25439 0%, #8B4513 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.game-card:nth-child(2) .game-thumbnail {
    background: linear-gradient(135deg, #D2691E 0%, #A0522D 100%);
}

.game-card:nth-child(3) .game-thumbnail {
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
}

.game-card:nth-child(4) .game-thumbnail {
    background: linear-gradient(135deg, #CD853F 0%, #8B6914 100%);
}

.game-card:nth-child(5) .game-thumbnail {
    background: linear-gradient(135deg, #BC8F8F 0%, #8B7355 100%);
}

.game-card:nth-child(6) .game-thumbnail {
    background: linear-gradient(135deg, #A0522D 0%, #654321 100%);
}

.game-details {
    padding: 20px;
}

.game-details h3 {
    font-size: 20px;
    color: #484848;
    margin-bottom: 8px;
    font-weight: 700;
}

.game-details p {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 15px;
}

.game-meta {
    display: flex;
    gap: 10px;
}

.meta-tag {
    padding: 5px 12px;
    background: #f0f0f0;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, #C25439 0%, #8B4513 100%);
    color: var(--white);
    padding: 80px 40px;
    text-align: center;
}

.newsletter h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.newsletter p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    outline: none;
}

.newsletter-button {
    padding: 15px 35px;
    background: var(--white);
    color: var(--red);
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    /* transition: transform 0.2s; */
}

.newsletter-button:hover {
    /* transform: translateY(-2px); */
    background: #d64f34;
    color: var(--white);
}

/* Footer */
footer {
    background: #484848;
    color: var(--white);
    padding: 60px 40px 30px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--red);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: background 0.2s;
}

.social-icon img {
    width: 20px;
    height: 20px;
}   

.social-icon:hover {
    background: var(--red);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid #666;
    text-align: center;
    color: #999;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .featured-info h2 {
        font-size: 28px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}