/* AllKitchen Global Stylesheet */

* {
    box-sizing: border-box;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
}

body {
    margin: 0;
    padding: 0;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #2c3e50;
}

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

p {
    margin: 1rem 0;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: white;
}

header p {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

header nav a {
    color: white;
    margin-right: 1.5rem;
    text-decoration: none;
}

header nav a:hover {
    opacity: 0.8;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

footer a {
    color: #aaa;
    text-decoration: none;
}

footer a:hover {
    color: white;
}

/* Main Content */
main {
    min-height: 600px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    text-align: center;
}

.hero h2 {
    margin-top: 0;
    font-size: 2.5rem;
    color: white;
}

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

/* Featured Sections */
.featured {
    margin-bottom: 3rem;
}

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

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Cards */
.card, .recipe-card, .listing-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover, .recipe-card:hover, .listing-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card h3, .recipe-card h3, .listing-item h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.card h3 a, .recipe-card h3 a, .listing-item h3 a {
    color: #2c3e50;
}

.card p, .recipe-card p, .listing-item p {
    margin: 0.5rem 0;
}

.meta {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.9rem;
    color: #666;
    margin: 1.5rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.breadcrumbs a {
    color: #0066cc;
}

.breadcrumbs span {
    color: #333;
    font-weight: 600;
}

/* Listing */
.listing {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.listing-item {
    background: white;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
}

.listing-item h3 {
    margin-top: 0;
}

/* Recipe Details */
.recipe {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recipe h1 {
    margin-top: 0;
    text-align: center;
    color: #2c3e50;
}

.recipe-origin {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Recipe Info Box */
.recipe-info-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.recipe-stat {
    text-align: center;
}

.recipe-stat .label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.recipe-stat .value {
    display: block;
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: 700;
}

/* Recipe Meta */
.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.recipe-meta span {
    background: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

/* Ingredients & Instructions */
.ingredients, .instructions {
    margin-bottom: 2rem;
}

.ingredient-list, .instruction-list {
    padding-left: 1.5rem;
}

.ingredient-list li {
    margin-bottom: 0.5rem;
}

.instruction-list li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Buttons */
.btn, .btn-small {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn:hover, .btn-small:hover {
    background: #5568d3;
    text-decoration: none;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn {
    display: block;
    text-align: center;
    margin: 2rem auto;
}

/* Ad Containers */
.ad-container {
    background: #f5f5f5;
    border: 2px dashed #ccc;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Recipes Grid */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.recipe-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.recipe-card h3 {
    margin-top: 0;
}

.recipe-card h3 a {
    color: #2c3e50;
}

.recipe-card .recipe-meta {
    flex-direction: column;
    gap: 0.5rem;
}

.recipe-card .recipe-meta span {
    display: block;
    background: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

/* Stats Section */
.stats {
    text-align: center;
    padding: 2rem;
    background: #f5f5f5;
    border-radius: 8px;
    margin: 2rem 0;
}

.stats h2 {
    margin-top: 0;
}

.stats ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 1.1rem;
}

.stats li {
    text-align: center;
}

.stats strong {
    display: block;
    font-size: 1.5rem;
    color: #667eea;
}

/* Intro Text */
.intro {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

/* Tips Section */
.tips {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    border-left: 4px solid #f39c12;
}

.tips h2 {
    margin-top: 0;
}

.tips ul {
    padding-left: 1.5rem;
}

.tips li {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .recipe-info-box {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recipes-grid {
        grid-template-columns: 1fr;
    }
    
    .stats ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    header nav a {
        display: block;
        margin: 0.5rem 0;
    }
}

/* Print Styles */
@media print {
    header, footer, .ad-container {
        display: none;
    }
    
    .recipe {
        box-shadow: none;
        border: none;
    }
}
