/*
Theme Name: Coffee Lab
Theme URI: https://codeveloper.tech/coffee-lab/
Author: Humayun
Author URI: https://pph.me/heymi
Description: A responsive WordPress theme inspired by CoDeveloper, with a coffee-themed palette.
Version: 1.0
Text Domain: coffee-lab
*/

/* Custom Properties for Coffee Palette */
:root {
    --color-dark-roast: #2c1a11;  /* Very dark brown for backgrounds */
    --color-medium-roast: #5d3a24; /* Medium brown for accents and buttons */
    --color-latte: #c19a6b;      /* Light brown/tan for secondary text */
    --color-cream: #f5f5dc;       /* Off-white for main text and backgrounds */
    --color-accent: #a55a00;      /* A warm, burnt orange for highlights */
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-dark-roast);
    color: var(--color-cream);
    line-height: 1.6;
}

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

/* Header & Navigation */
.header {
    background-color: var(--color-dark-roast);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 40px;
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li a {
    color: var(--color-cream);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    transition: color 0.3s;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-cream);
    cursor: pointer;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: relative;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        flex-direction: column;
        width: 100%;
        background-color: var(--color-medium-roast);
        text-align: center;
        transform: translateY(-150%);
        transition: transform 0.5s ease-in-out;
    }

    .nav-list.active {
        transform: translateY(0);
    }

    .nav-list li {
        padding: 10px 0;
        border-bottom: 1px solid var(--color-dark-roast);
    }
}

/* Main Content Sections */
.hero-section {
    background-color: var(--color-medium-roast);
    text-align: center;
    padding: 100px 20px;
    background-image: url('coffee-beans-bg.jpg'); /* Optional: Add a background image */
    background-size: cover;
    background-position: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-cream);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-cream);
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #d1751d;
}

.content-section {
    padding: 80px 0;
}

.content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--color-latte);
}

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

.game-card {
    background-color: var(--color-medium-roast);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.game-card img {
    width: 100%;
    height: auto;
    display: block;
}

.game-card h3 {
    margin-top: 15px;
    color: var(--color-cream);
}

.about-section {
    background-color: var(--color-dark-roast);
}

/* Footer */
.footer {
    background-color: var(--color-medium-roast);
    color: var(--color-cream);
    padding: 40px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links a {
    color: var(--color-cream);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.social-icons {
    margin: 20px 0;
}

.social-icons img {
    height: 30px;
    margin: 0 10px;
    filter: invert(1); /* Makes the icons white/cream */
}

@media (max-width: 768px) {
    .footer .container {
        flex-direction: column;
    }
}
