/* Premium Culinary Landing Page Stylesheet */

/* Root Variables */
:root {
    --bg-dark: #0a0b0d;
    --bg-card: rgba(18, 20, 24, 0.7);
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.35);
    --gold-dim: #a3842c;
    --text-white: #f3f4f6;
    --text-muted: #9ca3af;
    --border-gold: rgba(212, 175, 55, 0.15);
    --border-hover: rgba(212, 175, 55, 0.5);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: radial-gradient(circle at 50% 30%, #171a21 0%, var(--bg-dark) 70%);
    background-attachment: fixed;
}

/* Premium Vignette & Ambient Layer */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
    z-index: 2;
}

.smoke-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(rgba(212, 175, 55, 0.02) 10%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    animation: drift 20s ease-in-out infinite alternate;
}

@keyframes drift {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(2%, 3%); }
}

/* Custom Selection & Scrollbar */
::selection {
    background: var(--gold);
    color: #000;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Header & Typography styling */
.header {
    padding: 3rem 1.5rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.logo-container {
    display: inline-block;
    position: relative;
}

.logo-crest {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    animation: pulseGlow 3s ease-in-out infinite alternate;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #fff 0%, #e2c165 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.logo-tagline {
    font-size: 0.85rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 500;
}

@keyframes pulseGlow {
    0% { filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.4)); }
    100% { filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.9)); }
}

/* Hero Section */
.hero-section {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    padding: 0 1.5rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
}

/* Filter Navigation */
.filter-navigation {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.filter-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-gold);
    color: var(--text-white);
    padding: 0.7rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
}

.filter-btn:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}

.filter-btn.active {
    background: var(--gold);
    color: #0a0b0d;
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
    font-weight: 600;
}

/* Recipes Grid & Layout */
.recipe-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
    position: relative;
    z-index: 10;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    transition: var(--transition);
}

/* Recipe Card Design */
.recipe-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
}

.recipe-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--border-hover);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--gold-glow);
}

/* Image styling */
.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: #14161a;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(0.95) contrast(1.05);
}

.recipe-card:hover .card-img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.cuisine-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(10, 11, 13, 0.85);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
    z-index: 3;
}

/* Content inside Card */
.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.chef-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.recipe-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: #fff;
    min-height: 3.8rem;
}

.recipe-description {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Recipe Stats */
.recipe-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--gold-dim);
}

.stat-value {
    color: var(--text-white);
    font-weight: 500;
}

/* Card Button */
.view-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.view-btn:hover {
    background: var(--gold);
    color: #0a0b0d;
    box-shadow: 0 0 15px var(--gold-glow);
}

/* Footer Section */
.footer {
    text-align: center;
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 11, 13, 0.95);
    position: relative;
    z-index: 10;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.75rem !important;
    font-style: italic;
    color: var(--gold-dim) !important;
    max-width: 500px;
    margin: 0.5rem auto 0;
}

/* --- PREMIUM LOCK MODAL STYLING --- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: radial-gradient(ellipse at 50% 0%, #1e222b 0%, #0d0f12 80%);
    border: 1px solid var(--gold);
    border-radius: 16px;
    width: 90%;
    max-width: 550px;
    padding: 2.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px var(--gold-glow);
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: auto 0;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--gold);
}

/* Modal Lock Header */
.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-lock-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    position: relative;
    height: 50px;
}

.modal-lock-icon i {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Initial locked state animation styling */
.modal-lock-icon .unlocked-anim {
    opacity: 0;
    transform: translateX(-50%) rotate(-45deg) scale(0.5);
}

.modal-lock-icon .locked-anim {
    opacity: 1;
    animation: lockShake 1.5s ease-in-out infinite alternate;
}

@keyframes lockShake {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    20%, 60% { transform: translateX(-50%) rotate(-5deg); }
    40%, 80% { transform: translateX(-50%) rotate(5deg); }
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.modal-warning-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Tabs System inside Modal */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    padding: 0.75rem 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Tab Panels */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contract scroll styling */
.scroll-wrapper {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.contract-scroll {
    max-height: 160px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.scroll-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
    text-align: center;
}

.scroll-date {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1rem;
}

.scroll-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.scroll-text p {
    margin-bottom: 0.8rem;
}

.scroll-text ul {
    margin-left: 1.2rem;
    margin-bottom: 0.8rem;
}

/* Signature & Action Buttons */
.signature-area, .referral-box {
    text-align: center;
}

.action-btn {
    background: linear-gradient(135deg, var(--gold) 0%, #c5a059 100%);
    color: #0a0b0d;
    border: none;
    border-radius: 6px;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    width: 100%;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4), 0 0 10px var(--gold-glow);
}

.action-btn:active {
    transform: translateY(0);
}

.action-feedback {
    margin-top: 1rem;
    font-size: 0.85rem;
    min-height: 2.5rem;
    line-height: 1.5;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.action-feedback.error {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    animation: shake 0.4s ease;
}

.action-feedback.success {
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Referral Content */
.referral-instructions {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    margin-bottom: 1.25rem;
    padding: 0 1rem;
    transition: var(--transition);
}

.input-group:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.input-icon {
    color: var(--gold-dim);
    margin-right: 0.75rem;
}

.input-group input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.85rem 0;
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.input-group input:focus {
    outline: none;
}

/* Decline Link */
.decline-section {
    text-align: center;
    margin-top: 1.5rem;
}

.decline-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    transition: var(--transition);
}

.decline-link:hover {
    color: #fff;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Blood Dripping Cursor Effect */
.blood-cursor {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23ef4444'><path d='M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z'/></svg>") 8 8, auto !important;
}

/* Custom Tear Splash animations for Cry Button */
.tear-drop {
    position: fixed;
    width: 8px;
    height: 12px;
    background: rgba(59, 130, 246, 0.7);
    border-radius: 0 100% 100% 100%;
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 2000;
    animation: dropFall 1.2s cubic-bezier(0.5, 0, 1, 0.5) forwards;
}

@keyframes dropFall {
    0% { transform: translateY(0) rotate(45deg) scale(1); opacity: 1; }
    90% { transform: translateY(600px) rotate(45deg) scale(1); opacity: 0.8; }
    100% { transform: translateY(620px) rotate(45deg) scale(0.2); opacity: 0; }
}

/* Military / Tactical Borsch Image styling */
.military-borsch-img {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--gold);
    margin-top: 1rem;
    box-shadow: 0 0 10px var(--gold-glow);
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .logo-text {
        font-size: 2.2rem;
    }
    
    .logo-tagline {
        font-size: 0.75rem;
        letter-spacing: 3px;
    }
    
    .recipe-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* Mobile & iPhone Responsiveness */
@media (max-width: 576px) {
    /* Touch optimization */
    button, .filter-btn, .view-btn, .decline-link, .modal-close {
        -webkit-tap-highlight-color: transparent;
    }

    .header {
        padding: 2rem 1rem 1rem;
    }

    .logo-text {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .logo-tagline {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-desc {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Horizontal scrollable category navigation bar */
    .filter-navigation {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 1rem 0.5rem;
        margin-bottom: 2rem;
    }

    .filter-list {
        display: flex;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 0.5rem;
        width: max-content;
        padding: 0 0.5rem 0.5rem;
    }

    .filter-navigation::-webkit-scrollbar {
        display: none; /* Hide default webkit scrollbar for custom design */
    }

    .recipe-container {
        padding: 0 1rem 3rem;
    }

    /* Modal Mobile optimization */
    .modal-overlay {
        padding: 1rem 0.5rem;
    }

    .modal-content {
        padding: 1.25rem;
        border-radius: 12px;
        width: 100%;
    }

    .modal-header h3 {
        font-size: 1.5rem;
    }

    .modal-warning-text {
        font-size: 0.85rem;
    }

    .tab-btn {
        font-size: 0.8rem;
        padding: 0.6rem 0;
    }

    .scroll-wrapper {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .contract-scroll {
        max-height: 130px;
    }

    .action-btn {
        padding: 0.75rem 1.2rem;
        font-size: 0.85rem;
    }

    .action-feedback {
        font-size: 0.8rem;
        min-height: 2rem;
    }

    /* Keep the military image clean on small viewports */
    .military-borsch-img {
        max-height: 220px;
        margin-top: 0.75rem;
    }
}

/* Very Small Screen iPhones */
@media (max-width: 375px) {
    .logo-text {
        font-size: 1.6rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .tab-btn {
        font-size: 0.75rem;
    }
}
