/* CSS Variables - Warm cooking theme */
:root {
    --primary-color: #c44d2d;
    --primary-dark: #a33d20;
    --primary-light: #e86a4a;
    --secondary-color: #2d3748;
    --accent-color: #f6ad55;
    --background-color: #fffbf7;
    --card-background: #ffffff;
    --text-color: #2d3748;
    --text-light: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --max-width: 1200px;
    --header-height: 70px;
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--secondary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Header */
.site-header {
    background: var(--card-background);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

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

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.logo .tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.2s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

/* Quick Reference Section */
.quick-reference {
    padding: 4rem 0;
    background: var(--card-background);
}

.quick-reference h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.quick-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.quick-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.quick-card .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.quick-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.quick-card .temp {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.quick-card .time {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Temperature Guides Section */
.temperature-guides {
    padding: 4rem 0;
}

.temperature-guides h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.food-category {
    background: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.food-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.category-intro {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Temperature Tables */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.temp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.temp-table th,
.temp-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.temp-table th {
    background: var(--background-color);
    font-weight: 600;
    color: var(--secondary-color);
    white-space: nowrap;
}

.temp-table tr:hover {
    background: var(--background-color);
}

.temp-table td:nth-child(3) {
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

/* Pro Tips */
.pro-tip {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.pro-tip strong {
    color: var(--primary-dark);
}

/* Section Intro */
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Equipment Section */
.equipment {
    padding: 4rem 0;
    background: var(--card-background);
}

.equipment h2 {
    text-align: center;
    margin-bottom: 1rem;
}

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

.equipment-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.equipment-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.equipment-card h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.equipment-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.affiliate-link {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: background 0.2s ease;
}

.affiliate-link:hover {
    background: var(--primary-dark);
    color: white;
}

/* Techniques Section */
.techniques {
    padding: 4rem 0;
}

.techniques h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.technique-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.technique-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.technique-steps {
    padding-left: 1.5rem;
}

.technique-steps li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.technique-tips {
    list-style: none;
    padding-left: 0;
}

.technique-tips li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
}

.technique-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.technique-card .note {
    background: var(--background-color);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Safety Section */
.safety {
    padding: 4rem 0;
    background: var(--card-background);
}

.safety h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.safety-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.safety-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.safety-card ul {
    padding-left: 1.25rem;
}

.safety-card li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.safety-table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
}

.safety-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.safety-table th,
.safety-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.safety-table th {
    background: var(--card-background);
    font-weight: 600;
}

.safety-callout {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.safety-callout h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.safety-callout p {
    margin-bottom: 0;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-item {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #a0aec0;
    font-size: 0.95rem;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #a0aec0;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid #4a5568;
    text-align: center;
}

.footer-bottom p {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.affiliate-disclosure {
    font-size: 0.85rem;
    color: #718096;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--card-background);
        box-shadow: var(--shadow-md);
        padding: 1rem;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav a {
        display: block;
        padding: 1rem 0;
    }

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

    .hero {
        padding: 3rem 0;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .quick-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .food-category {
        padding: 1.5rem 1rem;
    }

    .temp-table {
        font-size: 0.85rem;
    }

    .temp-table th,
    .temp-table td {
        padding: 0.5rem;
    }

    .equipment-grid,
    .safety-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .quick-cards {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    .temp-table th,
    .temp-table td {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .hero,
    .site-footer,
    .affiliate-link,
    .cta-button {
        display: none;
    }

    .food-category {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    body {
        font-size: 12pt;
        background: white;
    }

    a {
        color: black;
        text-decoration: none;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
