/* Mom's Recipes - Shared Styles */

:root {
    --saffron: #E07C24;
    --saffron-light: #F4A460;
    --turmeric: #E8B923;
    --terracotta: #C75B39;
    --cream: #FDF6E3;
    --cream-dark: #F5ECD7;
    --brown-dark: #4A3728;
    --brown-light: #6B4E3D;
    --green-herb: #5D7A5D;
    --gold: #D4A84B;
    --text: #3D3D3D;
    --text-light: #6B6B6B;
    --shrimp-coral: #E8734A;
    --pakora-gold: #D4A84B;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    font-size: 18px;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    color: var(--brown-dark);
}

a {
    color: var(--saffron);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--terracotta);
}

/* Site Header */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brown-dark);
}

.site-logo:hover {
    color: var(--saffron);
}

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

.site-nav a {
    color: var(--brown-dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--saffron);
    border-bottom-color: var(--saffron);
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A84B' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 0.5rem;
    color: var(--terracotta);
    letter-spacing: 0.02em;
}

.hero .subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--brown-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.hero .bengali-text {
    font-size: 1.5rem;
    color: var(--saffron);
    margin-bottom: 1.5rem;
}

.hero-image {
    width: min(350px, 70vw);
    height: min(350px, 70vw);
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    margin: 1.5rem 0;
}

/* Recipe Cards (Home Page) */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.recipe-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.recipe-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.recipe-card-content {
    padding: 1.5rem;
}

.recipe-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--brown-dark);
}

.recipe-card .bengali {
    color: var(--saffron);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.recipe-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.recipe-card .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--saffron);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.recipe-card .btn:hover {
    background: var(--terracotta);
    color: white;
}

/* Main Content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin: 3rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--saffron), var(--turmeric));
    margin: 1rem auto 0;
}

/* Story/About Section */
.story {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.story p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.story .quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--terracotta);
    border-left: 4px solid var(--saffron);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

/* Ingredients */
.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.ingredient-category {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.ingredient-category h3 {
    color: var(--saffron);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cream-dark);
    font-size: 1.2rem;
}

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

.ingredient-category li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--cream-dark);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.ingredient-category li:last-child {
    border-bottom: none;
}

.ingredient-name {
    font-weight: 500;
}

.ingredient-quantity {
    color: var(--text-light);
    font-size: 0.95rem;
    white-space: nowrap;
}

.ingredient-note {
    font-size: 0.85rem;
    color: var(--green-herb);
    display: block;
    margin-top: 0.25rem;
}

/* Recipe Steps */
.step {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--saffron), var(--terracotta));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(224, 124, 36, 0.3);
}

.step h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--brown-dark);
    font-size: 1.5rem;
}

.step p {
    margin-bottom: 1rem;
}

.step ol, .step ul {
    margin: 1rem 0 1rem 1.5rem;
}

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

/* Tip Box */
.tip {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3D4 100%);
    border-left: 4px solid var(--turmeric);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.tip strong {
    color: var(--terracotta);
}

/* Media Grid - Portrait videos (9:16) like biryani page */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem auto;
    max-width: 600px;
}

.media-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.media-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.media-item img,
.media-item video {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    display: block;
}

.media-item.video-type {
    position: relative;
}

.media-item.video-type::after {
    content: '▶';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    pointer-events: none;
    opacity: 0.9;
}

.media-item.video-type:hover::after {
    opacity: 1;
}

.media-label {
    padding: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
    background: var(--cream);
    text-align: center;
    line-height: 1.3;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bengali Terms Table */
.terms-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.terms-table th,
.terms-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--cream-dark);
}

.terms-table th {
    background: var(--cream-dark);
    font-weight: 600;
    color: var(--brown-dark);
}

.terms-table tr:last-child td {
    border-bottom: none;
}

.terms-table .bengali {
    font-size: 1.2rem;
    color: var(--saffron);
}

/* Tips Section */
.tips-list {
    list-style: none;
}

.tips-list li {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    padding-left: 3.5rem;
}

.tips-list li::before {
    content: counter(tip-counter);
    counter-increment: tip-counter;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--saffron);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.tips-list {
    counter-reset: tip-counter;
}

/* Footer */
.site-footer {
    background: var(--brown-dark);
    color: var(--cream);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.site-footer p {
    margin-bottom: 0.5rem;
}

.site-footer .credits {
    color: var(--saffron-light);
    font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--saffron);
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem 1rem;
    }
    
    .site-nav ul {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .site-nav a {
        font-size: 0.85rem;
        padding: 0.25rem 0;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .hero .bengali-text {
        font-size: 1.2rem;
    }
    
    .hero-image {
        width: min(280px, 70vw);
        height: min(280px, 70vw);
    }
    
    main {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .story {
        padding: 1.5rem;
    }
    
    .story .quote {
        font-size: 1.2rem;
    }
    
    .step {
        padding: 1.5rem;
        padding-top: 2.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        left: 1.5rem;
    }
    
    .step h3 {
        font-size: 1.3rem;
    }
    
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        max-width: 100%;
    }
    
    .media-label {
        font-size: 0.65rem;
        padding: 0.4rem;
        min-height: 2rem;
    }
    
    .media-item.video-type::after {
        font-size: 1.5rem;
    }
    
    .ingredients-grid {
        grid-template-columns: 1fr;
    }
    
    .recipe-card-image {
        height: 200px;
    }
    
    .terms-table th,
    .terms-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .tips-list li {
        padding: 1rem;
        padding-left: 3rem;
    }
    
    .tips-list li::before {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .breadcrumb {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .site-nav ul {
        gap: 0.5rem;
    }
    
    .site-nav a {
        font-size: 0.75rem;
    }
    
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recipes-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
}
