/*
Theme Name: Hot Sauce Blog
Theme URI: https://hotsauceblog.com
Author: Nick Lindauer
Author URI: https://hotsauceblog.com
Description: The internet's original hot sauce blog since 2004. A custom WordPress block theme featuring the classic flame design, hot sauce reviews, recipes, and pepper culture.
Version: 1.3.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hotsauceblog
Tags: blog, food-and-drink, custom-colors, block-patterns, block-styles, editor-style, wide-blocks, full-site-editing
*/

/* ============================================
   FLAME IMAGERY & TEXTURE SYSTEM
   ============================================ */

/* Body: tiled red texture background */
body {
    background-color: #c41400;
    background-image: url('assets/images/bg.jpg');
    background-repeat: repeat;
}

/* Flame border strip - used above/below content areas */
.flame-border-top,
.flame-border-bottom {
    display: block;
    width: 100%;
    height: 180px;
    background-image: url('assets/images/flames.jpg');
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: auto 100%;
    position: relative;
    z-index: 2;
}

.flame-border-bottom {
    background-position: bottom center;
}

/* Main flames (parchment background version) */
.main-flames {
    display: block;
    width: 100%;
    height: 200px;
    background-image: url('assets/images/mainflames.jpg');
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: auto 100%;
}

/* Parchment frame texture (sidebar, content backgrounds) */
.parchment-frame {
    background-image: url('assets/images/framebg.jpg');
    background-repeat: repeat;
    background-position: left top;
}

/* ============================================
   HEADER STYLES
   ============================================ */

/* Kill any gaps WordPress adds between header blocks */
header.wp-block-template-part {
    display: flex;
    flex-direction: column;
    gap: 0 !important;
}

header.wp-block-template-part > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Header wrapper — transparent so body red texture shows on sides */
.site-header-wrapper {
    background-color: transparent;
    border-bottom: none;
    position: relative;
    overflow: visible;
}

/* Banner image — centered, scales down on mobile */
.site-banner-image {
    margin: 0 auto !important;
    max-width: 100% !important;
}

.site-banner-image img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 913px;
    margin: 0 auto;
}

/* Header flame strip below nav — flames point UP */
.site-header-flames {
    display: block;
    width: 100%;
    height: 180px;
    background-image: url('assets/images/flames.jpg');
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: auto 100%;
    margin-bottom: -1px;
}

/* Navigation bar */
.site-nav-bar {
    background-color: #c41400;
    background-image: url('assets/images/bg.jpg');
    background-repeat: repeat;
    border-top: 3px solid #990000;
    border-bottom: 3px solid #990000;
    padding: 0.25rem 0;
}

.site-nav-bar .wp-block-navigation {
    justify-content: center;
    gap: 0.5rem;
}

.site-nav-bar .wp-block-navigation a,
.site-nav-bar .wp-block-navigation .wp-block-navigation-item__content {
    color: #fff9e9 !important;
    padding: 0.6rem 1.25rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    font-family: 'Teko', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    text-decoration: none !important;
    border-radius: 2px;
}

.site-nav-bar .wp-block-navigation a:hover,
.site-nav-bar .wp-block-navigation .wp-block-navigation-item__content:hover {
    color: #fff9e9 !important;
    background-color: rgba(250, 134, 9, 0.3) !important;
}

/* Mobile nav overlay */
.site-nav-bar .wp-block-navigation__responsive-container.is-menu-open {
    background-color: #c41400 !important;
}

.site-nav-bar .wp-block-navigation__responsive-container.is-menu-open a {
    color: #fff9e9 !important;
    font-family: 'Teko', sans-serif !important;
    font-size: 1.5rem !important;
    text-transform: uppercase !important;
}

/* Navigation hamburger/toggle button */
.site-nav-bar .wp-block-navigation__responsive-container-open,
.site-nav-bar .wp-block-navigation__responsive-container-close {
    color: #fff9e9 !important;
}

/* ============================================
   CONTENT AREA
   ============================================ */

/* Main content wrapper sits on parchment */
.site-content-area {
    background-color: #fff9e9;
    border-left: 3px solid #000;
    border-right: 3px solid #000;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* ============================================
   REVIEW CARD STYLES
   ============================================ */

.review-card {
    background-color: #fff9e9;
    border: 2px solid #eadb91;
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Heat meter bar */
.heat-meter {
    height: 8px;
    background: linear-gradient(90deg, #eadb91 0%, #fa8609 50%, #c41400 100%);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.heat-meter-fill {
    height: 100%;
    background: #c41400;
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Star rating display */
.star-rating {
    color: #fa8609;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

/* Review metadata (mono font) */
.review-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   BADGE / TAG STYLES
   ============================================ */

.heat-badge {
    display: inline-block;
    font-family: 'Teko', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.heat-badge--mild {
    background-color: #eadb91;
    color: #1a1a1a;
}

.heat-badge--medium {
    background-color: #fa8609;
    color: #fff9e9;
}

.heat-badge--hot {
    background-color: #da1400;
    color: #fff9e9;
}

.heat-badge--extreme {
    background-color: #c41400;
    color: #fff9e9;
    animation: pulse-heat 2s ease-in-out infinite;
}

@keyframes pulse-heat {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 20, 0, 0.4); }
    50% { box-shadow: 0 0 12px 4px rgba(196, 20, 0, 0.2); }
}

/* ============================================
   ESTABLISHED BADGE
   ============================================ */

.est-badge {
    display: inline-block;
    font-family: 'Teko', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #eadb91;
    background-color: #c41400;
    padding: 6px 16px;
    border-radius: 2px;
    font-size: 1rem;
}

/* ============================================
   NEWSLETTER SIGNUP
   ============================================ */

.newsletter-signup {
    border-top: 2px solid #eadb91;
    padding-top: 2rem;
}

.newsletter-signup input[type="email"] {
    font-family: 'Source Serif 4', serif;
    font-size: 1rem;
    padding: 12px 16px;
    border: 2px solid #eadb91;
    background-color: #fff9e9;
    color: #1a1a1a;
    border-radius: 2px;
    width: 100%;
    max-width: 400px;
}

.newsletter-signup input[type="email"]::placeholder {
    color: #da1400;
    opacity: 0.6;
}

.newsletter-signup input[type="email"]:focus {
    outline: none;
    border-color: #da1400;
    box-shadow: 0 0 0 3px rgba(218, 20, 0, 0.1);
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */

.sidebar-widget {
    background-color: #fff9e9;
    border: 1px solid #eadb91;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-widget h3,
.sidebar-widget .wp-block-heading {
    font-family: 'Teko', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #c41400;
    border-bottom: 2px solid #eadb91;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* ============================================
   BLOCKQUOTE (throwback dashed border)
   ============================================ */

blockquote,
.wp-block-quote {
    border: 1px dashed #990000 !important;
    background-color: #FFE4B5 !important;
    padding: 1.5rem !important;
    border-left: 4px solid #c41400 !important;
    font-style: italic;
}

/* ============================================
   BUTTON ENHANCEMENTS
   ============================================ */

.wp-block-button__link {
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.wp-block-button__link:active {
    transform: translateY(0);
}

/* Buy link buttons (affiliate) */
.buy-button .wp-block-button__link {
    background: linear-gradient(135deg, #da1400 0%, #fa8609 100%);
    font-family: 'Teko', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 32px;
}

/* ============================================
   CARD LAYOUT SYSTEM
   ============================================ */

.equal-cards > .wp-block-column {
    display: flex;
    flex-direction: column;
    flex-grow: 0;
}

.equal-cards > .wp-block-column > .wp-block-group {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.equal-cards .cta-bottom {
    margin-top: auto;
    justify-content: center;
}

/* ============================================
   ANIMATION SYSTEM
   ============================================ */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    animation: slideIn 0.7s ease forwards;
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideIn { to { opacity: 1; transform: translateX(0); } }

.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }

/* Scroll-triggered reveals */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover lift for cards */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.wp-site-blocks > footer {
    margin-block-start: 0;
}

.site-footer {
    background-color: #1a1a1a;
    color: #eadb91;
}

.site-footer a {
    color: #fa8609;
}

.site-footer a:hover {
    color: #fff9e9;
}

/* Footer flame strip — flames always point UP */
.footer-flames {
    display: block;
    width: 100%;
    height: 180px;
    background-image: url('assets/images/mainflames.jpg');
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: auto 100%;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .site-header-flames,
    .footer-flames {
        height: 100px;
    }

    .flame-border-top,
    .flame-border-bottom {
        height: 100px;
    }

    .site-nav-bar .wp-block-navigation a,
    .site-nav-bar .wp-block-navigation .wp-block-navigation-item__content {
        font-size: 0.95rem !important;
        padding: 0.5rem 0.75rem;
    }

    .review-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .site-header-flames,
    .footer-flames {
        height: 70px;
    }

    .flame-border-top,
    .flame-border-bottom {
        height: 70px;
    }
}
