/* ═══════════════════════════════════════════════════════════════
   Дикая Кулинария — Premium Design System
   Ken Burns · Flame Glow · Embers · Immersive
   ═══════════════════════════════════════════════════════════════ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --flame: #f97316;
    --flame-glow: rgba(249,115,22,0.4);
    --flame-50: #fff7ed;
    --flame-100: #ffedd5;
    --flame-200: #fed7aa;
    --flame-300: #fdba74;
    --flame-400: #fb923c;
    --flame-500: #f97316;
    --flame-600: #ea580c;
    --flame-700: #c2410c;
    --flame-800: #9a3412;
    --flame-900: #7c2d12;
    --flame-950: #431407;
    --ember-400: #ef4444;
    --ember-500: #dc2626;
    --ember-600: #b91c1c;
    --bg-deep: #0a0a0b;
    --bg-card: #0f0f12;
    --bg-elevated: #16161a;
    --border-subtle: rgba(255,255,255,0.06);
    --border-medium: rgba(255,255,255,0.1);
    --text-primary: #f0efe9;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
}

/* ── Noise Texture Overlay ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-deep);
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
    cursor: auto;
}

/* ── Ken Burns Slow Pan ── */
@keyframes kenBurns {
    0%   { transform: scale(1) translate(0, 0); }
    50%  { transform: scale(1.06) translate(-0.5%, -0.5%); }
    100% { transform: scale(1) translate(0, 0); }
}
.ken-burns {
    animation: kenBurns 30s ease-in-out infinite;
}

/* ── Flame Glow Border Pulse ── */
@keyframes flameGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(249,115,22,0.15), 0 0 40px rgba(249,115,22,0.05); }
    50%      { box-shadow: 0 0 30px rgba(249,115,22,0.25), 0 0 60px rgba(249,115,22,0.1); }
}
.flame-glow {
    animation: flameGlow 3s ease-in-out infinite;
}

/* ── Glass Morphism ── */
.glass {
    background: rgba(15, 15, 18, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Scroll-Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Gradient Text ── */
.text-gradient {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 50%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Button Glow Effect ── */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #f97316, #ef4444, #f97316);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-glow:hover::after {
    opacity: 1;
}

/* ── Card Premium ── */
.card-premium {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-premium:hover {
    transform: translateY(-6px);
    box-shadow:
        0 24px 80px -16px rgba(249,115,22,0.2),
        0 0 120px -30px rgba(249,115,22,0.1),
        0 0 0 1px rgba(249,115,22,0.15);
}

/* ── Image Zoom ── */
.img-zoom {
    overflow: hidden;
}
.img-zoom img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.img-zoom:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* ── Badge Live Pulse ── */
@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}
.badge-live {
    animation: badgePulse 2s ease-in-out infinite;
}

/* ── Shimmer Loading ── */
@keyframes shimmerEnhanced {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shimmer-bg {
    background: linear-gradient(
        90deg,
        rgba(26,26,46,0.4) 0%,
        rgba(37,37,64,0.6) 25%,
        rgba(249,115,22,0.08) 50%,
        rgba(37,37,64,0.6) 75%,
        rgba(26,26,46,0.4) 100%
    );
    background-size: 200% 100%;
    animation: shimmerEnhanced 2s linear infinite;
}

/* ── Hero Background —— */
.feed-hero {
    background: linear-gradient(135deg,
        rgba(67,20,7,0.5) 0%,
        rgba(15,15,18,0.95) 30%,
        rgba(15,15,18,0.95) 70%,
        rgba(67,20,7,0.4) 100%
    );
    min-height: 360px;
}

/* ── Hero Orbs ── */
.hero-bg-glow {
    position: absolute;
    inset: -20%;
    z-index: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 30%, rgba(249,115,22,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 500px 350px at 80% 70%, rgba(239,68,68,0.05) 0%, transparent 70%);
    animation: heroBgShift 8s ease-in-out infinite alternate;
}
@keyframes heroBgShift {
    0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    100% { transform: translate(20px, -10px) scale(1.05); opacity: 1; }
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}
.hero-orb-1 {
    width: 280px; height: 280px;
    top: -80px; right: -60px;
    background: rgba(249,115,22,0.15);
    animation: orbFloat1 6s ease-in-out infinite alternate;
}
.hero-orb-2 {
    width: 200px; height: 200px;
    bottom: -40px; left: 10%;
    background: rgba(239,68,68,0.1);
    animation: orbFloat2 7s ease-in-out infinite alternate;
}
.hero-orb-3 {
    width: 160px; height: 160px;
    top: 40%; right: 30%;
    background: rgba(249,115,22,0.08);
    animation: orbFloat3 5s ease-in-out infinite alternate;
}
@keyframes orbFloat1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, 30px) scale(1.2); }
}
@keyframes orbFloat2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.15); }
}
@keyframes orbFloat3 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-20px, -30px) scale(1.1); }
}

/* ── Smoke Wisps ── */
.hero-smoke {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
}
.hero-smoke-1 {
    width: 350px; height: 120px;
    bottom: 10%; left: -5%;
    background: radial-gradient(ellipse, rgba(180,180,190,0.04) 0%, transparent 70%);
    animation: smokeWisp 12s ease-in-out infinite;
}
.hero-smoke-2 {
    width: 250px; height: 80px;
    top: 20%; right: -3%;
    background: radial-gradient(ellipse, rgba(180,180,190,0.03) 0%, transparent 70%);
    animation: smokeWisp 10s ease-in-out infinite 3s;
}
@keyframes smokeWisp {
    0%, 100% { transform: translateX(0) scale(1); opacity: 0.4; }
    25%      { transform: translateX(30px) scale(1.3); opacity: 0.7; }
    50%      { transform: translateX(-10px) scale(1.1); opacity: 0.5; }
    75%      { transform: translateX(20px) scale(1.4); opacity: 0.3; }
}

/* ── Sticky Mini Video Player ── */
.video-mini {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 300px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 0 40px rgba(249,115,22,0.2), 0 8px 32px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.video-mini:hover {
    box-shadow: 0 0 60px rgba(249,115,22,0.4), 0 12px 40px rgba(0,0,0,0.6);
    transform: scale(1.03);
}

/* ── Lightbox Gallery ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox.open {
    opacity: 1;
    pointer-events: all;
}
.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 16px;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.lightbox.open img {
    transform: scale(1);
}

/* ── Parallax Layer ── */
.parallax-layer { will-change: transform; }

/* ── Steps Timeline ── */
.step-item {
    transition: all 0.3s ease;
}
.step-item:hover .step-number {
    background: rgba(249,115,22,0.3);
    box-shadow: 0 0 20px rgba(249,115,22,0.3);
}

/* ── Ingredient Card ── */
.ingredient-item {
    transition: all 0.2s ease;
}
.ingredient-item:hover {
    background: rgba(249,115,22,0.05);
    transform: translateX(4px);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* ── Selection ── */
::selection {
    background: rgba(249,115,22,0.3);
    color: #fff;
}

/* ── Logo Flame Animation ── */
.logo-flame {
    animation: logoFlame 2s ease-in-out infinite alternate;
}
@keyframes logoFlame {
    0% { filter: drop-shadow(0 0 4px rgba(249,115,22,0.6)); }
    100% { filter: drop-shadow(0 0 12px rgba(249,115,22,0.9)); }
}

/* ── Sizzle Text Effect ── */
@keyframes sizzle {
    0%, 100% { text-shadow: 0 0 4px rgba(249,115,22,0.4); }
    50%      { text-shadow: 0 0 12px rgba(249,115,22,0.8), 0 0 24px rgba(239,68,68,0.4); }
}
.text-sizzle { animation: sizzle 2s ease-in-out infinite; }

/* ── Hero Video Background ── */
.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10,10,11,0.3) 0%,
        rgba(10,10,11,0.6) 50%,
        rgba(10,10,11,0.95) 100%
    );
    z-index: 1;
}

/* ── Tagline reveal ── */
@keyframes badgeReveal {
    0% { opacity: 0; transform: translateY(-10px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.feed-hero .badge-live {
    animation: badgeReveal 0.6s ease-out 0.2s both, badgePulse 2s ease-in-out 1s infinite;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .feed-hero { min-height: 280px; padding: 1.5rem; }
    .hero-orb-1 { width: 140px; height: 140px; }
    .hero-orb-2 { width: 100px; height: 100px; }
    .hero-orb-3 { display: none; }
    .hero-video-bg { object-position: center 30%; }
}

/* ── Tablet ── */
@media (min-width: 769px) and (max-width: 1024px) {
    .feed-hero { min-height: 360px; }
    .hero-video-bg { object-position: center 25%; }
}
