/*
Theme Name: SpicySichuan
Theme URI: https://spicysichuan.com
Author: SpicySichuan
Author URI: https://spicysichuan.com
Description: Authentic Sichuan Food Guide - Recipes, Ingredients, Culture and Premium Cooking Courses
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spicysichuan
*/

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

:root {
    --primary-red: #C41E3A;
    --secondary-green: #228B22;
    --dark-bg: #1a1a1a;
    --light-bg: #faf8f5;
    --text-dark: #333;
    --text-light: #666;
    --accent-orange: #FF6B35;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: #fff;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-red);
    text-decoration: none;
}

.logo span {
    font-size: 32px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-red);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1f1f 50%, #1a1a1a 100%);
    padding: 80px 5% 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    color: #fff;
    margin-bottom: 15px;
}

.hero h1 span {
    color: var(--primary-red);
}

.hero-subtitle {
    font-size: 22px;
    color: #ccc;
    margin-bottom: 40px;
}

/* Pepper decoration */
.pepper-decoration {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.pepper {
    font-size: 40px;
    animation: shake 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Search Box */
.search-box {
    max-width: 600px;
    margin: 0 auto 30px;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    outline: none;
}

.search-box button {
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #a01830;
}

.cta-text {
    color: #aaa;
    font-size: 14px;
}

.cta-text a {
    color: var(--accent-orange);
    text-decoration: none;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-light);
}

/* Page Container */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Popular Recipes */
.popular-recipes {
    padding: 80px 5%;
    background: #fff;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.recipe-card {
    background: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.recipe-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-orange) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.recipe-content {
    padding: 20px;
}

.recipe-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.recipe-content .meta {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 10px;
}

.recipe-content .search-volume {
    background: #e8f5e9;
    color: var(--secondary-green);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.recipe-link {
    display: inline-block;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
}

/* Ingredients Section */
.ingredients {
    padding: 80px 5%;
    background: var(--dark-bg);
    color: #fff;
}

.ingredients .section-title h2 {
    color: #fff;
}

.ingredient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.ingredient-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: background 0.3s;
}

.ingredient-card:hover {
    background: rgba(255,255,255,0.15);
}

.ingredient-card .icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.ingredient-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.ingredient-card p {
    color: #aaa;
    font-size: 14px;
}

/* Culture Section */
.culture {
    padding: 80px 5%;
    background: linear-gradient(135deg, #f5e6d3 0%, #fff 100%);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.culture-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.culture-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.culture-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.culture-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* Categories */
.categories {
    padding: 80px 5%;
    background: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.category-btn {
    background: var(--light-bg);
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.category-btn:hover {
    background: var(--primary-red);
    color: #fff;
}

/* Free Ebook / Lead Magnet */
.free-ebook {
    padding: 80px 5%;
    background: linear-gradient(135deg, var(--primary-red) 0%, #8B0000 100%);
    color: #fff;
    text-align: center;
}

.free-ebook h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.free-ebook p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.ebook-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.ebook-form input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    outline: none;
}

.ebook-form button {
    background: #fff;
    color: var(--primary-red);
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s;
}

.ebook-form button:hover {
    transform: scale(1.05);
}

/* Premium Products Section */
.pricing-preview {
    padding: 80px 5%;
    background: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.product-card {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.product-card.featured {
    background: linear-gradient(135deg, var(--primary-red) 0%, #8B0000 100%);
    color: #fff;
}

.product-card .icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-card .price {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-card.featured .price {
    color: #fff;
}

.product-card:not(.featured) .price {
    color: var(--primary-red);
}

/* Blog Section */
.blog-section {
    padding: 80px 5%;
    background: var(--light-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.blog-image {
    height: 160px;
    background: linear-gradient(135deg, var(--secondary-green) 0%, #006400 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.blog-content {
    padding: 20px;
}

.blog-content h4 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-content .date {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 10px;
}

.blog-content p {
    color: var(--text-light);
    font-size: 14px;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: #fff;
    padding: 60px 5% 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-red);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
    .nav-links {
        display: none;
    }
    .search-box, .ebook-form {
        flex-direction: column;
    }
    .recipe-grid, .blog-grid, .product-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}
