/* css/style.css */

/* 1. Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #FFFDE7; /* Pastel Kuning Sangat Terang */
    color: #5D4037; /* Coklat Tua untuk kontras */
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 2. Color Palette Variables (Pastel Kuning Theme) */
:root {
    --primary-yellow: #FFF176; /* Kuning Pastel */
    --secondary-yellow: #FFEE58; /* Kuning Sedikit Terang */
    --accent-color: #FFD54F; /* Kuning Emas Muda */
    --text-dark: #4E342E; /* Coklat Gelap */
    --text-light: #795548; /* Coklat Medium */
    --white: #FFFFFF;
    --bg-light: #FFF9C4; /* Kuning Pucat */
    --hover-effect: #FFCA28; /* Kuning Hover */
}

/* 3. Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 4. Header & Navigation */
header {
    background-color: var(--primary-yellow);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-dark);
}

.logo span {
    color: #E65100; /* Aksen Oranye */
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
}

.nav-links a:hover, .nav-links a.active {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

/* 5. Hero Section (Homepage Only) */
.hero {
    background: linear-gradient(135deg, var(--secondary-yellow), var(--accent-color));
    padding: 60px 0;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.btn-main {
    display: inline-block;
    background-color: var(--text-dark);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
}

.btn-main:hover {
    background-color: #3E2723;
    transform: translateY(-2px);
}

/* 6. Sections & Cards */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
    color: var(--text-dark);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.game-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-img {
    height: 180px;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.btn-read {
    display: inline-block;
    margin-top: 10px;
    color: #E65100;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 7. Page Header (Untuk Sub Pages) */
.page-header {
    background-color: var(--bg-light);
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--primary-yellow);
}

.breadcrumb {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: #E65100;
}

/* 8. Article List Style (For Guides/News) */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    display: flex;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    gap: 20px;
    border: 1px solid #F0F0F0;
}

.article-img {
    flex: 0 0 150px;
    height: 100px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.article-body h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* 9. Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 40px 0;
    margin-top: 50px;
    text-align: center;
}

.footer-links a {
    margin: 0 10px;
    color: var(--primary-yellow);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .article-item {
        flex-direction: column;
    }
    .article-img {
        flex: 0 0 auto;
        width: 100%;
        height: 150px;
    }
}