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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--color-tyrian-purple-100);
    background: var(--color-papaya-whip-900);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.recipe-detail-hero .container {
    padding: 0;
    max-width: 100%;
}

.header {
    background: rgba(92, 0, 41, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 20px rgba(92, 0, 41, 0.25);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    margin-right: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    padding: 6px;
}

.nav-links {
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    display: none;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--color-persian-pink-400);
}

.nav-link.active {
    color: #ffffff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cta-button-light {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.cta-button-light:hover,
.cta-button-light:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.mobile-login-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
}

.mobile-login-btn .tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.mobile-login-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mobile-login-btn:hover .tooltip {
    opacity: 1;
}

.mobile-toggle {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-toggle:hover,
.mobile-toggle:focus {
    background: rgba(255, 255, 255, 0.25);
}

main {
    flex: 1;
}

.recipes-hero {
    padding: 130px 0 80px;
    background: var(--gradient-background-hero);
    position: relative;
    overflow: hidden;
}

.recipes-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -120px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(248, 150, 216, 0.4), transparent 70%);
    filter: blur(15px);
}

.recipes-hero::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(92, 0, 41, 0.6), transparent 70%);
    filter: blur(20px);
}

.recipes-hero-content {
    position: relative;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    background: rgba(18, 0, 8, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 3rem 2rem;
}

.recipes-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    color: #ffffff;
}

.recipes-hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.recipes-gallery {
    padding: 80px 0 120px;
    background: linear-gradient(135deg, var(--color-papaya-whip-900) 0%, #ffffff 100%);
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #1a1a1a;
}

.section-subheading {
    font-size: 1.2rem;
    color: #4a4a4a;
    max-width: 700px;
    margin: 0 auto 4rem;
    text-align: center;
    line-height: 1.6;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
    gap: 3rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.recipe-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid rgba(92, 0, 41, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1;
}

.recipe-card:hover,
.recipe-card:focus {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(92, 0, 41, 0.2);
    border-color: var(--color-tyrian-purple-600);
}

.recipe-thumbnail {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(248, 150, 216, 0.6), rgba(92, 0, 41, 0.75));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2.5rem;
}

.recipe-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recipe-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.recipe-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    flex-shrink: 0;
}

.recipe-time .material-icons {
    font-size: 16px;
}

.recipe-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-align: right;
    flex: 1;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

footer {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-tyrian-purple-400);
    border-top: 1px solid rgba(92, 0, 41, 0.1);
    background: var(--color-papaya-whip-900);
}

footer a {
    color: var(--color-primary);
    text-decoration: underline;
}

.recipe-detail-hero {
    padding: 70px 0 0;
    background: var(--color-primary);
    position: relative;
    overflow: visible;
}

.recipe-detail-hero-content {
    position: relative;
    max-width: 100%;
    margin: 0;
    display: block;
}

.back-link {
    position: absolute;
    top: -62px;
    left: 1rem;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.back-link:hover,
.back-link:focus {
    color: rgba(255, 255, 255, 1);
}

.recipe-title {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 800px;
    width: calc(100% - 2rem);
    z-index: 10;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    padding: 0 1rem;
    line-height: 1.2;
}

.recipe-tagline {
    display: none;
}

.recipe-tags {
    display: none;
}

.recipe-tag {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.85rem;
    border: none;
}


.recipe-detail-hero-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    height: 200px;
    width: 100vw;
    max-width: 100vw;
    margin: 0 calc(-50vw + 50%);
}

.recipe-detail-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recipe-detail-hero-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    pointer-events: none;
}

.recipe-detail-hero-image figcaption {
    display: none;
}

.recipe-meta {
    padding: 0;
    background: var(--color-papaya-whip-900);
}

.meta-grid {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    margin: 1rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.meta-card {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
    padding: 0;
    border: none;
    background: transparent;
}

.meta-card:not(:last-child) {
    border-right: 1px solid rgba(92, 0, 41, 0.1);
}

.meta-card .material-icons {
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--color-tyrian-purple-400);
    order: 2;
}

.meta-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-tyrian-purple-100);
    order: 1;
}

.recipe-main {
    padding: 0 1rem 2rem;
    background: var(--color-papaya-whip-900);
}

.recipe-header {
    padding: 1rem 0 1.5rem;
}

.recipe-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-tyrian-purple-100);
    margin-bottom: 0.5rem;
}

.recipe-header p {
    font-size: 1rem;
    color: var(--color-tyrian-purple-400);
    line-height: 1.4;
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recipe-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.recipe-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-tyrian-purple-100);
}

.recipe-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.75rem 0 0.375rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(92, 0, 41, 0.1);
    color: var(--color-tyrian-purple-100);
}

.recipe-section h3:first-of-type {
    border-top: none;
    padding-top: 0;
}

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

.ingredient-list li {
    margin-bottom: 0.25rem;
    padding: 0.25rem 0;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
    color: var(--color-tyrian-purple-100);
}

.ingredient-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
    margin-right: 0.75rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.instruction-list {
    list-style: none;
    padding-left: 0;
    counter-reset: instruction-counter;
}

.instruction-list li {
    margin-bottom: 0.625rem;
    display: flex;
    align-items: flex-start;
    counter-increment: instruction-counter;
    line-height: 1.4;
    color: var(--color-tyrian-purple-100);
}

.instruction-list li::before {
    content: counter(instruction-counter);
    width: 28px;
    height: 28px;
    background-color: var(--color-primary);
    border-radius: 50%;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.recipe-tags-section {
    padding: 0 1rem 1rem;
}

.recipe-tags-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-tyrian-purple-100);
    margin-bottom: 1rem;
}

.recipe-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.note {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: var(--color-papaya-whip-700);
    border: 1px solid var(--color-tyrian-purple-300);
    color: var(--color-tyrian-purple-100);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        margin-right: 8px;
    }

    .nav {
        padding: 0.75rem 0;
    }

    .cta-button-light {
        display: none;
    }

    .mobile-login-btn {
        display: flex;
    }

    .nav-actions {
        gap: 0.75rem;
    }

    .recipes-hero {
        padding: 110px 0 70px;
    }

    .recipe-detail-hero {
        padding: 70px 0 0;
    }

    .back-link {
        top: -62px;
    }
}

@media (min-width: 769px) {
    .nav-links {
        display: flex;
    }

    .mobile-toggle {
        display: none;
    }

    .mobile-login-btn {
        display: none;
    }
}

@media (min-width: 768px) {
    .recipe-main {
        max-width: 800px;
        margin: 0 auto;
    }

    .meta-grid {
        max-width: 768px;
        margin: 1rem auto;
    }
}
