/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #fff5e1 0%, #ffe8cc 100%);
    min-height: 100vh;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   HEADER SECTION
   ============================================ */
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e72 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    margin-bottom: 40px;
}

.header h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.3em;
    font-style: italic;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

/* ============================================
   HERO IMAGE SECTION
   ============================================ */
.hero-image {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* ============================================
   RECIPE INFO CARDS
   ============================================ */
.recipe-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #ff6b6b;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.info-card h3 {
    color: #ff6b6b;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
}

/* ============================================
   RECIPE SECTIONS
   ============================================ */
.recipe-section {
    background: white;
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.recipe-section h2 {
    color: #ff6b6b;
    font-size: 2em;
    margin-bottom: 25px;
    border-bottom: 3px solid #ffc93a;
    padding-bottom: 15px;
    position: relative;
}

.recipe-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ff6b6b;
}

/* ============================================
   INGREDIENTS SECTION
   ============================================ */
.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.ingredient-card {
    background: linear-gradient(135deg, #fff5e1 0%, #fff9f0 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #ffc93a;
    transition: transform 0.3s ease;
}

.ingredient-card:hover {
    transform: translateX(5px);
}

.ingredient-card h3 {
    color: #ff8e72;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.ingredient-card ul {
    list-style: none;
}

.ingredient-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.ingredient-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ffc93a;
    font-weight: bold;
    font-size: 1.2em;
}

/* ============================================
   INSTRUCTIONS SECTION
   ============================================ */
.instructions-list {
    list-style: none;
    counter-reset: step-counter;
}

.instructions-list li {
    counter-increment: step-counter;
    margin-bottom: 30px;
    padding-left: 80px;
    position: relative;
}

.instructions-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e72);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.instructions-list h3 {
    color: #ff6b6b;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.instructions-list p {
    color: #555;
    line-height: 1.8;
}

/* ============================================
   TIPS SECTION
   ============================================ */
.tips-section {
    background: linear-gradient(135deg, #fff5e1 0%, #ffe8cc 100%);
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tip {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #ffc93a;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.tip:hover {
    transform: translateY(-3px);
}

.tip strong {
    color: #ff6b6b;
    display: block;
    margin-bottom: 8px;
    font-size: 1.05em;
}

.tip {
    color: #555;
    line-height: 1.6;
}

/* ============================================
   FOOTER SECTION
   ============================================ */
.footer {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 0.95em;
    border-top: 2px solid #ffc93a;
    margin-top: 50px;
}

.footer p {
    margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET
   ============================================ */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }

    .tagline {
        font-size: 1.1em;
    }

    .recipe-section {
        padding: 25px;
    }

    .recipe-section h2 {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    .instructions-list li {
        padding-left: 70px;
    }

    .instructions-list li::before {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }

    .info-card {
        padding: 20px;
    }

    .info-card h3 {
        font-size: 1em;
    }

    .info-card p {
        font-size: 1.2em;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 25px 15px;
        border-radius: 15px;
        margin-bottom: 25px;
    }

    .header h1 {
        font-size: 1.6em;
        margin-bottom: 8px;
    }

    .tagline {
        font-size: 0.95em;
    }

    .recipe-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 25px;
    }

    .info-card {
        padding: 15px;
        border-left: 3px solid #ff6b6b;
    }

    .info-card h3 {
        font-size: 0.9em;
        margin-bottom: 8px;
    }

    .info-card p {
        font-size: 1.1em;
    }

    .recipe-section {
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .recipe-section h2 {
        font-size: 1.4em;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .ingredients-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ingredient-card {
        padding: 15px;
    }

    .ingredient-card h3 {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .ingredient-card li {
        padding: 6px 0;
        padding-left: 20px;
        font-size: 0.95em;
    }

    .ingredient-card li::before {
        font-size: 1em;
    }

    .instructions-list li {
        padding-left: 65px;
        margin-bottom: 20px;
    }

    .instructions-list li::before {
        width: 45px;
        height: 45px;
        font-size: 1em;
    }

    .instructions-list h3 {
        font-size: 1em;
        margin-bottom: 8px;
    }

    .instructions-list p {
        font-size: 0.95em;
    }

    .tips-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tip {
        padding: 15px;
    }

    .footer {
        padding: 20px;
        font-size: 0.9em;
    }

    .hero-image img {
        max-height: 300px;
    }
}

/* ============================================
   ACCESSIBILITY & PRINT STYLES
   ============================================ */
@media print {
    body {
        background: white;
    }

    .header {
        page-break-inside: avoid;
    }

    .recipe-section {
        page-break-inside: avoid;
    }

    .instructions-list li {
        page-break-inside: avoid;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus {
    outline: 3px solid #ff6b6b;
    outline-offset: 2px;
}
