/* Cookin.org - Professional Cooking Website Template */

/* CSS Variables - Easy to Customize */
:root {
    /* Color Scheme */
    --primary-color: #d4702d;      /* Warm cooking orange - change this for new brand colors */
    --secondary-color: #2c3e50;    /* Dark blue-gray */
    --accent-color: #27ae60;       /* Fresh green */
    --light-bg: #f8f6f3;           /* Warm off-white */
    --text-color: #333;            /* Dark text for readability */
    --light-text: #666;            /* Lighter text for secondary content */
    --border-color: #e0d7d0;       /* Subtle borders */
    --white: #ffffff;              /* Pure white */
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-body: 16px;
    --font-size-small: 14px;
    --line-height: 1.6;
    
    /* Spacing */
    --padding-small: 8px;
    --padding-medium: 16px;
    --padding-large: 32px;
    --margin-medium: 24px;
    --margin-large: 40px;
    
    /* Responsive */
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-body);
    line-height: var(--line-height);
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-medium);
}

/* Header & Navigation */
.site-header {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: var(--padding-large) 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--margin-medium);
}

.logo-section {
    flex: 1;
    min-width: 250px;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.tagline {
    font-size: 14px;
    opacity: 0.9;
    font-style: italic;
}

.main-nav {
    display: flex;
    gap: var(--padding-large);
    flex-wrap: wrap;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

.nav-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c5591f 100%);
    color: var(--white);
    padding: var(--margin-large) 0;
    text-align: center;
    margin-bottom: var(--margin-large);
}

.hero h2 {
    font-size: 36px;
    margin-bottom: var(--padding-large);
    font-weight: 700;
}

.hero p {
    font-size: 16px;
    max-width: 800px;
    margin: var(--padding-medium) auto;
    opacity: 0.95;
    line-height: 1.8;
}

/* Main Content Sections */
.site-content {
    padding: var(--margin-large) 0;
}

.category-section {
    background-color: var(--white);
    padding: var(--margin-large);
    margin-bottom: var(--margin-large);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-section h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: var(--padding-medium);
    font-weight: 700;
}

.category-section > .container > p {
    color: var(--light-text);
    font-size: 16px;
    margin-bottom: var(--margin-medium);
    max-width: 900px;
}

/* Grid Layouts */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--margin-medium);
    margin-bottom: var(--margin-medium);
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--margin-medium);
    margin-bottom: var(--margin-medium);
}

/* Cards */
.category-card {
    background-color: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: var(--padding-large);
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(212, 112, 45, 0.1);
    transform: translateY(-2px);
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: var(--padding-medium);
    color: var(--secondary-color);
}

.category-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.category-card h3 a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.category-card p {
    color: var(--light-text);
    margin-bottom: var(--padding-large);
    line-height: 1.7;
}

.card-links {
    list-style: none;
    border-top: 1px solid var(--border-color);
    padding-top: var(--padding-medium);
}

.card-links li {
    margin-bottom: var(--padding-small);
}

.card-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding-left: var(--padding-small);
    display: block;
}

.card-links a:hover {
    color: var(--accent-color);
    padding-left: 16px;
}

/* Recipe Cards */
.recipe-card {
    background-color: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 6px;
    padding: var(--padding-large);
    transition: all 0.3s ease;
    text-align: center;
}

.recipe-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.15);
}

.recipe-card h3 {
    margin-bottom: var(--padding-medium);
    color: var(--secondary-color);
}

.recipe-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s;
}

.recipe-card h3 a:hover {
    color: var(--accent-color);
}

.recipe-card p {
    color: var(--light-text);
    line-height: 1.7;
}

/* Section Footer Links */
.section-footer {
    text-align: center;
    margin-top: var(--margin-large);
    padding-top: var(--padding-large);
    border-top: 2px solid var(--border-color);
}

.section-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

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

/* Info Section */
.info-section {
    background-color: var(--white);
    padding: var(--margin-large);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-section h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: var(--padding-large);
}

.info-section h3 {
    color: var(--secondary-color);
    font-size: 20px;
    margin-top: var(--margin-medium);
    margin-bottom: var(--padding-medium);
}

.info-section p {
    color: var(--light-text);
    margin-bottom: var(--padding-large);
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin-bottom: var(--margin-large);
}

.feature-list li {
    padding: var(--padding-medium);
    margin-bottom: var(--padding-medium);
    background-color: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    line-height: 1.7;
}

.feature-list strong {
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: var(--margin-large) 0;
    margin-top: var(--margin-large);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--margin-large);
    margin-bottom: var(--margin-large);
    padding-bottom: var(--margin-large);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-column h4 {
    margin-bottom: var(--padding-large);
    color: var(--primary-color);
    font-size: 16px;
}

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

.footer-column li {
    margin-bottom: var(--padding-medium);
}

.footer-column a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        gap: var(--padding-medium);
        width: 100%;
    }

    .hero h2 {
        font-size: 24px;
    }

    .category-grid,
    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .category-section {
        padding: var(--padding-large);
    }

    .category-section h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 24px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .hero p {
        font-size: 14px;
    }

    .nav-link {
        gap: var(--padding-medium);
    }

    .category-card,
    .recipe-card {
        padding: var(--padding-medium);
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .main-nav {
        display: none;
    }

    body {
        background-color: white;
    }

    .category-card,
    .recipe-card {
        page-break-inside: avoid;
        border: 1px solid #ccc;
    }
}

/* Accessibility */
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card,
.recipe-card {
    animation: fadeIn 0.5s ease-out;
}
/* Updated CSS */
