/* Mulch Calculator Website - Main Stylesheet */

:root {
    --primary-green: #2d5016;
    --secondary-green: #4a7c2c;
    --accent-brown: #8b5a2b;
    --light-cream: #f5f1e8;
    --dark-soil: #3d2817;
    --grass-green: #6b8e23;
    --bright-accent: #ff8c42;
    --white: #ffffff;
    --shadow: rgba(45, 80, 22, 0.15);
}

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

body {
    font-family: 'Georgia', 'Cambria', serif;
    background: linear-gradient(135deg, var(--light-cream) 0%, #e8dfc8 100%);
    color: var(--dark-soil);
    line-height: 1.7;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial Black', 'Impact', sans-serif;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

/* Navigation */
.top-nav {
    background: var(--dark-soil);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-menu a {
    color: var(--light-cream);
    text-decoration: none;
    padding: 1.5rem 1.2rem;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary-green);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Header */
header.page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--white);
    padding: 3rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
    position: relative;
    overflow: hidden;
}

header.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M50 10 L60 30 L80 30 L65 45 L70 65 L50 50 L30 65 L35 45 L20 30 L40 30 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 60px 60px;
    opacity: 0.3;
}

header.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-family: 'Georgia', serif;
    position: relative;
    z-index: 1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Content Box */
.content-box {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px var(--shadow);
    margin-bottom: 2rem;
}

/* Article Styles */
article {
    line-height: 1.8;
}

article h2 {
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

article h3 {
    color: var(--secondary-green);
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

article p {
    margin-bottom: 1.2rem;
}

article ul, article ol {
    margin-left: 2rem;
    margin-bottom: 1.2rem;
}

article li {
    margin-bottom: 0.5rem;
}

article img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
}

/* Info Box */
.info-box {
    background: #e8f5e9;
    border-left: 5px solid var(--grass-green);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.info-box h3 {
    color: var(--primary-green);
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.warning-box {
    background: #fff3e0;
    border-left: 5px solid var(--bright-accent);
}

/* Tip Cards */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tip-card {
    background: linear-gradient(135deg, var(--light-cream) 0%, #f0ead2 100%);
    padding: 1.8rem;
    border-radius: 15px;
    border: 2px solid var(--secondary-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.tip-card h3 {
    color: var(--accent-brown);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--grass-green) 0%, var(--secondary-green) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(107, 142, 35, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 142, 35, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* AdSense Placeholder */
.ad-container {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    border-radius: 10px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

/* Footer */
footer {
    background: var(--dark-soil);
    color: var(--light-cream);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--light-cream);
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--grass-green);
}

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

/* Breadcrumb */
.breadcrumb {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px var(--shadow);
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 64px; /* chiều cao thanh top-nav */
        left: 0;
        right: 0;
        background: var(--dark-soil);
        flex-direction: column;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        z-index: 1000;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .content-box {
        padding: 1.5rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}
