/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #121212;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 70px;
    padding: 0.5rem 0;
}

/* Site Title */
.site-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Desktop Navigation */
.primary-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    margin: 0;
}

.primary-menu a {
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
}

.primary-menu a:hover {
    color: #4CAF50;
}

/* Header Search */
.header-search {
    display: none;
    flex: 1;
    max-width: 300px;
}

.header-search input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background 0.3s ease;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.header-search input:focus {
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    background: none;
    border: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Navigation */
.mobile-navigation {
    display: none;
    background: #121212;
    padding: 0.5rem 0;
}

.mobile-navigation.active {
    display: block;
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    color: #fff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: #4CAF50;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    padding: 3rem 0;
}

.hero-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: #E8F5E9;
    color: #2E7D32;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #2E7D32;
    color: #fff;
}

.btn-primary:hover {
    background: #1B5E20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-outline {
    background: transparent;
    color: #2E7D32;
    border: 2px solid #2E7D32;
}

.btn-outline:hover {
    background: #2E7D32;
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   SECTIONS & CARDS
   ============================================ */
.section {
    padding: 3rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.section-heading p {
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Cards */
.category-card {
    padding: 2rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    background: #fff;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Recipe Grid */
.recipe-grid {
    display: grid;
    gap: 1.5rem;
}

.recipe-card {
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.recipe-thumbnail img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
}

.recipe-card-body {
    padding: 1.5rem;
}

.recipe-card-body h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.recipe-card-body p {
    opacity: 0.7;
    margin-bottom: 0;
}

/* About Card */
.about-card {
    padding: 2rem;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ============================================
   BLOG & ARCHIVE
   ============================================ */
.blog-hero {
    padding: 3rem 0;
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: #fff;
    text-align: center;
}

.blog-hero h1 {
    margin: 0.5rem 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.blog-hero p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Post */
.featured-post {
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.featured-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.featured-content {
    padding: 1.5rem;
}

.featured-content h2 {
    margin: 0.5rem 0;
}

.post-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.entry-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    line-height: 1.3;
}

.entry-title a {
    color: #121212;
}

.entry-title a:hover {
    color: #2E7D32;
}

.entry-excerpt {
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 3rem;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 0.2rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    background: #E8F5E9;
}

.pagination .current {
    background: #2E7D32;
    color: #fff;
}

.pagination .current:hover {
    background: #2E7D32;
}

.no-posts {
    padding: 3rem;
    text-align: center;
    background: #fff;
    border-radius: 20px;
}

/* ============================================
   SINGLE POST
   ============================================ */
.post-hero {
    padding: 3rem 0 2rem;
    text-align: center;
}

.breadcrumbs {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.7;
}

.breadcrumbs span {
    margin-inline: 0.5rem;
}

.post-categories {
    margin-bottom: 1rem;
}

.post-categories a {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #E8F5E9;
    border-radius: 999px;
    color: #2E7D32;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.post-categories a:hover {
    background: #2E7D32;
    color: #fff;
}

.featured-image {
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.hero-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.single-layout {
    display: grid;
    gap: 2rem;
}

.article-content {
    min-width: 0;
}

.article-content img {
    border-radius: 20px;
    margin: 1.5rem 0;
}

.article-content h2,
.article-content h3 {
    margin-top: 2rem;
    color: #121212;
}

.article-content p {
    margin-bottom: 1rem;
}

.post-tags {
    margin-top: 2rem;
}

.post-tags a {
    display: inline-block;
    margin: 0.3rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: #E8F5E9;
    transform: translateY(-2px);
}

.author-box {
    margin-top: 2rem;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.author-box img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.author-box .author-info h4 {
    margin: 0 0 0.3rem 0;
}

.author-box .author-info p {
    margin: 0;
    opacity: 0.7;
    font-size: 0.95rem;
}

/* Sidebar */
.sidebar {
    min-width: 0;
}

.sidebar-widget {
    background: #fff;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

/* ============================================
   ARCHIVE
   ============================================ */
.archive-hero {
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: #fff;
}

.archive-title {
    margin: 0.5rem 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.archive-description {
    max-width: 700px;
    margin: auto;
    opacity: 0.9;
}

/* ============================================
   PAGE
   ============================================ */
.page-hero {
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: #fff;
}

.page-title {
    margin: 0.5rem 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

.page-description {
    max-width: 700px;
    margin: auto;
    opacity: 0.9;
}

.page-content {
    padding: 2rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-content > *:first-child {
    margin-top: 0;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 1.5rem 0;
}

.page-content h2,
.page-content h3 {
    margin-top: 2rem;
    color: #121212;
}

.page-content ul,
.page-content ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.page-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid #2E7D32;
    background: #F8FAF8;
    border-radius: 12px;
}

.page-links {
    margin-top: 2rem;
}

.page-links a {
    display: inline-block;
    margin: 0.3rem;
    padding: 0.6rem 1rem;
    background: #2E7D32;
    color: #fff;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background: #1B5E20;
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    margin-top: 3rem;
    background: #121212;
    color: #fff;
}

.footer-newsletter {
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-newsletter h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.footer-newsletter p {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    opacity: 0.8;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.newsletter-form input {
    width: min(100%, 350px);
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 999px;
    background: #2E7D32;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #1B5E20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.footer-main {
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

.footer-column h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: #fff;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: #4CAF50;
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    /* Header */
    .header-inner {
        min-height: 80px;
    }
    
    /* Recipe Grid */
    .recipe-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Footer Grid */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Single Post Layout */
    .single-layout {
        grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    }
    
    /* Featured Post */
    .featured-post {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .featured-image img {
        aspect-ratio: 4/3;
    }
    
    /* Section Padding */
    .section {
        padding: 4rem 0;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
    /* Header */
    .primary-menu {
        display: flex;
        gap: 2rem;
    }
    
    .header-search {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-navigation {
        display: none !important;
    }
    
    /* Hero Grid */
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 3rem;
    }
    
    /* Footer Grid */
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Single Post Layout */
    .single-layout {
        grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
        gap: 3rem;
    }
    
    /* Section Padding */
    .section {
        padding: 5rem 0;
    }
    
    .hero-section {
        padding: 5rem 0;
    }
    
    .post-hero {
        padding: 5rem 0 3rem;
    }
    
    .blog-hero {
        padding: 5rem 0;
    }
    
    .archive-hero {
        padding: 5rem 0;
    }
    
    .page-hero {
        padding: 5rem 0;
    }
    
    .page-content {
        padding: 3rem;
    }
    
    .footer-newsletter {
        padding: 4rem 0;
    }
    
    .footer-main {
        padding: 4rem 0;
    }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
    
    .recipe-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }
}

/* Mobile Adjustments (below 768px) */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .featured-post {
        border-radius: 16px;
    }
    
    .featured-content {
        padding: 1rem;
    }
    
    .recipe-card-body {
        padding: 1rem;
    }
    
    .page-content {
        padding: 1.5rem;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input {
        width: 100%;
        max-width: 400px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .section-heading h2 {
        font-size: 1.8rem;
    }
    
    .post-meta {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .entry-title {
        font-size: 1.1rem;
    }
}

/* Small Mobile (below 480px) */
@media (max-width: 480px) {
    .site-title {
        font-size: 1.2rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .recipe-grid {
        grid-template-columns: 1fr;
    }
    
    .single-layout {
        grid-template-columns: 1fr;
    }
    
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-image img {
        aspect-ratio: 16/9;
    }
    
    .pagination .page-numbers {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}