/* airfryer.css — Custom styles beyond Tailwind */

/* Logo sizzle animation */
.logo-sizzle {
    display: inline-block;
    animation: sizzle 2s ease-in-out infinite;
}

@keyframes sizzle {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.05); }
}

/* FAQ accordion max-height animation */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-icon {
    transition: transform 0.2s ease;
}

/* Header scroll shadow */
.header.scrolled {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Nav toggle animation */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav open state */
.nav.active {
    right: 0 !important;
}

.nav-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Scroll-to-top visible state */
.scroll-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Intersection Observer initial states */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero gradient background */
.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(232, 93, 4, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Hero title underline accent */
.hero-accent {
    position: relative;
    color: #E85D04;
}

.hero-accent::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    right: 0;
    height: 0.15em;
    background: #FFBE0B;
    border-radius: 0.1em;
    z-index: -1;
}

/* Category card hover overlay */
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #E85D04 0%, #D35400 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover .category-content {
    color: white;
}

/* Benefits section background glow */
.benefits-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(232, 93, 4, 0.15) 0%, transparent 60%);
}

/* Recipe card image overlay */
.recipe-image-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
}

/* Print styles */
@media print {
    .header, .nav, .scroll-top, .nav-overlay {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    main {
        padding-top: 0 !important;
    }
}
