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

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --text-color: #f1f1f1;
    --text-muted: #a0a0a0;
    --bg-color: #0f3460;
    --card-bg: #1a1a2e;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--accent-color);
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://picsum.photos/seed/gaming/1200/600') center/cover no-referrer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
}

/* Main Content Layout */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--accent-color);
    padding-left: 1rem;
}

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

.news-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.news-card:hover {
    transform: translateY(-10px);
}

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

.news-card-content {
    padding: 1.5rem;
}

.news-card-content h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.news-card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Sidebar & Articles */
.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-item {
    display: flex;
    gap: 1.5rem;
    background: var(--secondary-color);
    padding: 1rem;
    border-radius: 8px;
}

.article-item img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Slider Styles */
.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(233, 69, 96, 0.7);
    color: #fff;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.slider-btn:hover {
    background: var(--accent-color);
}

.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }

/* Form Validation Styles */
.form-group.error input, .form-group.error textarea {
    border-color: #ff4444;
}

.error-message {
    color: #ff4444;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.success-message {
    background: #44bb44;
    color: #fff;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: none;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

/* Interactive Map Placeholder */
.map-placeholder {
    width: 100%;
    height: 300px;
    background: var(--secondary-color);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    border: 1px solid #333;
}

.map-point {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

.map-point::after {
    content: attr(data-label);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    margin-bottom: 10px;
}

.map-point:hover::after {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(233, 69, 96, 0); }
    100% { box-shadow: 0 0 0 0 rgba(233, 69, 96, 0); }
}

/* Latest Games Section */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.game-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(233, 69, 96, 0.2);
}

.game-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: 0.5s;
}

.game-card:hover img {
    filter: brightness(0.7);
}

.game-info {
    padding: 1.5rem;
    background: linear-gradient(to top, var(--primary-color), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(20px);
    transition: 0.4s;
}

.game-card:hover .game-info {
    transform: translateY(0);
}

.game-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.game-info p {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
}

.game-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 5;
    text-transform: uppercase;
}

/* Forms */
.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--secondary-color);
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
}

.btn {
    background: var(--accent-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn:hover {
    opacity: 0.9;
}
