:root {
    --color-background: #12121e;
    --color-surface: #1a1a2e;
    --color-primary: #007BFF;
    --color-text: #E0E0E0;
    --color-text-secondary: #a0a0b0;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: linear-gradient(rgba(18, 18, 30, 0.9), rgba(18, 18, 30, 0.95));
    color: var(--color-text);
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

header {
    text-align: center;
    margin-bottom: 4rem;
}

header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-secondary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--color-surface);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.card img {
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.card-content p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tags span {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
}

.button {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
}

.button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.button-group {
    display: flex;
    gap: 1rem;
}

.play-button {
    background-color: #28a745;
}

.play-button:hover {
    background-color: #1e7e34;
}

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 5rem;
    border-top: 1px solid var(--color-surface);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

a[aria-label="GitHub"] {
    color: white;
    font-size: 2rem;
    text-decoration: none;
}


/* === RESPONSIVE === */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    header h1 {
        font-size: 2rem;
    }
}
