/* assets/css/style.css */

/* --- CSS Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FFD700; /* Gold/Yellow */
    --secondary-color: #007BFF; /* Blue */
    --dark-bg: #1a1a1a;
    --light-text: #f0f0f0;
    --gray-text: #cccccc;
    --accent-red: #dc3545;
    --font-family: 'Arial', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--light-text);
    background-color: var(--dark-bg);
    scroll-behavior: smooth;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

p {
    margin-bottom: 15px;
}

/* Visually hide H1 but keep it for SEO */
.site-title-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- Header & Navigation --- */
header {
    background-color: #0d0d0d;
    padding: 15px 0;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    max-height: 50px;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 30px;
}

header nav ul li a {
    color: var(--light-text);
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Hero Section --- */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/banner-kds.jpg') no-repeat center center/cover; /* Placeholder image */
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

#hero h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin: auto;
    margin-bottom: 30px;
    color: var(--gray-text);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
    text-decoration: none;
}

/* --- General Section Styling --- */
section {
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

section:nth-of-type(even) {
    background-color: #222;
}

section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* --- Features Section --- */
#features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.feature-item {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    flex: 1 1 calc(33% - 40px); /* Approx 3 items per row */
    min-width: 280px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.feature-item h3 {
    color: var(--primary-color);
    font-size: 1.5em;
}

.feature-item p {
    color: var(--gray-text);
}

/* --- Games Section --- */
#games .game-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-category {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.game-category:hover {
    transform: translateY(-10px);
}

.game-category .game-thumbnail {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.game-category h4 {
    color: var(--primary-color);
    font-size: 1.3em;
}

.game-category p {
    color: var(--gray-text);
}

/* --- How-To Section --- */
#how-to ol {
    list-style: none;
    counter-reset: step-counter;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

#how-to ol li {
    background-color: #2a2a2a;
    padding: 25px;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    text-align: left;
    position: relative;
    padding-left: 70px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#how-to ol li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: var(--dark-bg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
}

#how-to ol li h5 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 5px;
}

#how-to ol li p {
    color: var(--gray-text);
    margin-bottom: 0;
}

/* --- FAQ Section --- */
#faq details {
    background-color: #2a2a2a;
    margin-bottom: 15px;
    border-radius: 8px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

#faq summary {
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
    position: relative;
}

#faq summary h6 {
    display: inline;
    margin: 0;
    color: inherit;
}

#faq summary::marker {
    content: ''; /* Hide default marker */
}

#faq summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

#faq details[open] summary::after {
    content: '-';
    transform: translateY(-50%) rotate(45deg);
}

#faq details p {
    padding: 0 20px 20px;
    color: var(--gray-text);
    margin-bottom: 0;
}

/* --- Footer --- */
footer {
    background-color: #0d0d0d;
    color: var(--gray-text);
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    border-top: 1px solid #333;
}

footer p {
    margin-bottom: 5px;
    font-size: 0.9em;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
    }

    header nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    header nav ul li {
        margin: 0 10px 10px;
    }

    #hero h2 {
        font-size: 2.2em;
    }

    #hero p {
        font-size: 1em;
    }

    section h2 {
        font-size: 2em;
    }

    #features {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        flex: 1 1 90%;
    }

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

    #how-to ol li {
        padding-left: 20px;
        text-align: center;
    }

    #how-to ol li::before {
        position: static;
        transform: none;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    #hero {
        padding: 80px 15px;
    }

    #hero h2 {
        font-size: 1.8em;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    section {
        padding: 40px 15px;
    }

    section h2 {
        font-size: 1.8em;
    }
}
