:root {
    --primary-color: #ff4757;
    --secondary-color: #2f3542;
    --accent-color: #ffa502;
    --text-color: #ffffff;
    --bg-color: #1e272e;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

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

/* Navbar */
.navbar {
    background-color: var(--secondary-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.logo-image {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    position: relative;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.language-switcher {
    position: relative;
}

.language-switcher > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--secondary-color);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 120px;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.language-dropdown li {
    padding: 8px 15px;
}

.language-dropdown a {
    color: var(--text-color);
    white-space: nowrap;
}

.language-dropdown a:hover {
    color: var(--accent-color);
}

.language-switcher.active .language-dropdown {
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
}

.banner-container {
    width: 100%;
    height: 60vh;
    max-height: 400px;
    min-height: 250px;
    overflow: hidden;
    position: relative;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero .container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 90%;
    padding: 20px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(28px, 6vw, 48px);
    margin-bottom: 15px;
    animation: fadeInDown 1s ease;
    line-height: 1.2;
    padding: 0 20px;
    word-wrap: break-word;
}

.hero p {
    font-size: clamp(16px, 3vw, 20px);
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
    line-height: 1.4;
    padding: 0 20px;
}

@media (max-width: 480px) {
    .banner-container {
        height: 50vh;
    }
    
    .hero .container {
        width: 95%;
        padding: 10px;
    }
    
    .hero h1 {
        margin-bottom: 10px;
        font-size: clamp(24px, 5vw, 32px);
        line-height: 1.1;
    }
    
    .hero p {
        font-size: clamp(14px, 2.5vw, 18px);
        line-height: 1.3;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: clamp(20px, 4.5vw, 28px);
    }
    
    .hero p {
        font-size: clamp(12px, 2vw, 16px);
    }
}

/* Game Section */
.game-section {
    margin: 50px 0;
}

.game-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.game-container {
    position: relative;
    width: 100%;
    height: 600px;
    border: 2px solid #333;
    border-radius: 10px;
    overflow: hidden;
}

.fullscreen-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.fullscreen-btn svg {
    fill: #fff;
    width: 24px;
    height: 24px;
}

/* Game List Styles */
.game-list {
    padding: 40px 0;
    background: #1a1a1a;
}

.game-list h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #fff;
}

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

.game-card {
    background: #2d2d2d;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
}

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

.game-card h3 {
    padding: 15px;
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
}

.game-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Game List */
.game-list {
    margin: 80px 0;
}

.game-list h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--accent-color);
}

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

/* Footer */
.footer {
    background-color: var(--secondary-color);
    padding: 40px 0;
    margin-top: 80px;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Blog Styles */
.blog-list {
    margin: 40px 0;
}

.blog-post {
    background: #2d2d2d;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.blog-post h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.blog-post p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.blog-post ol {
    padding-left: 30px;
    margin-bottom: 20px;
}

.blog-post ol li {
    margin-bottom: 10px;
}

/* New Blog Components */
.game-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    background: #3a3a3a;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
}

.stat-label {
    color: #aaa;
    font-size: 0.9rem;
}

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

.feature-card {
    background: #3a3a3a;
    padding: 20px;
    border-radius: 8px;
}

.comparison-table {
    overflow-x: auto;
    margin: 30px 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #444;
}

.comparison-table th {
    background: #3a3a3a;
    color: var(--accent-color);
}

.expert-reviews {
    margin: 40px 0;
}

.review-card {
    background: #3a3a3a;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.review-card blockquote {
    margin: 0;
    font-style: italic;
    color: #ddd;
}

.review-card footer {
    margin-top: 10px;
    text-align: right;
    color: #aaa;
    font-size: 0.9rem;
}

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

.tip-card {
    background: #3a3a3a;
    padding: 20px;
    border-radius: 8px;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.requirement-card {
    background: #3a3a3a;
    padding: 20px;
    border-radius: 8px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin: 30px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.video-caption {
    text-align: center;
    color: #aaa;
    margin-top: 10px;
    font-size: 0.9rem;
}

.back-link {
    margin-top: 30px;
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .blog-post {
        padding: 20px;
    }
    
    .video-container {
        margin: 20px 0;
    }
}

/* Game Loading Progress */
.game-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: var(--accent-color);
    transition: width 0.2s ease;
}

/* Lazy Loading Styles */
img.lazyload {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazyloaded {
    opacity: 1;
}

/* Loading Placeholder */
.loading-placeholder {
    background: #2d2d2d;
    position: relative;
    overflow: hidden;
}

.loading-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}
