/* ============================================
   RESET & BASE
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #fafafa;
    color: #222;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.2s ease;
}

/* ============================================
   CONTAINER
============================================ */
.container {
    width: min(1200px, 90%);
    margin: auto;
}

/* ============================================
   HEADER
============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo {
    font-size: 1.7rem;
    font-weight: 700;
    color: #ff6b35;
    letter-spacing: -0.3px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #ff6b35;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.search-btn,
.menu-btn {
    border: none;
    background: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.search-btn:hover,
.menu-btn:hover {
    color: #ff6b35;
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
    height: 80vh;
    min-height: 500px;
    position: relative;
    background: url("../assets/images/hero-bg.jpg.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    color: white;
    max-width: 700px;
    padding: 20px;
}

.badge {
    display: inline-block;
    background: #ff6b35;
    padding: 8px 15px;
    border-radius: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.hero-btn {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
    font-weight: bold;
}

.hero-btn:hover {
    transform: translateY(-3px);
    background: #e55a2b;
}

/* ============================================
   SECTION TITLE
============================================ */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
}

/* ============================================
   CATEGORIES
============================================ */
.categories {
    padding: 80px 20px;
}

.category-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    background: #fff5f0;
}

/* ============================================
   RECIPES
============================================ */
.recipes {
    padding: 80px 20px;
}

.recipe-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.recipe-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.recipe-card:hover {
    transform: translateY(-8px);
}

.recipe-img {
    height: 220px;
    background: linear-gradient(145deg, #e2e2e2, #ccc);
    background-size: cover;
    background-position: center;
}

/* Recipe image placeholders */
.recipe-card:nth-child(1) .recipe-img { background-image: url('https://images.unsplash.com/photo-1604908176997-125f25cc6f3d?w=400&h=250&fit=crop'); }
.recipe-card:nth-child(2) .recipe-img { background-image: url('https://images.unsplash.com/photo-1578985545062-69928b1c958d?w=400&h=250&fit=crop'); }
.recipe-card:nth-child(3) .recipe-img { background-image: url('https://images.unsplash.com/photo-1551183053-bf91a1d81141?w=400&h=250&fit=crop'); }
.recipes:last-of-type .recipe-card:nth-child(1) .recipe-img { background-image: url('https://images.unsplash.com/photo-1551782450-17144efb9c50?w=400&h=250&fit=crop'); }
.recipes:last-of-type .recipe-card:nth-child(2) .recipe-img { background-image: url('https://images.unsplash.com/photo-1505252585461-04db1eb84625?w=400&h=250&fit=crop'); }
.recipes:last-of-type .recipe-card:nth-child(3) .recipe-img { background-image: url('https://images.unsplash.com/photo-1599487488170-d11ec9c172f0?w=400&h=250&fit=crop'); }

.recipe-content {
    padding: 20px;
}

.recipe-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* ============================================
   NEWSLETTER
============================================ */
.newsletter {
    background: #ff6b35;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.newsletter h2 {
    margin-bottom: 15px;
    font-size: 1.9rem;
}

.newsletter p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.newsletter form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.newsletter input {
    width: 320px;
    max-width: 90%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter button {
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    background: #222;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.newsletter button:hover {
    background: #000;
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background: #111;
    color: rgb(255, 255, 255);
    padding: 60px 20px 20px;
}

.footer-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer h3 {
    margin-bottom: 15px;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 8px;
}

.footer a {
    color: #ddd;
    text-decoration: none;
    transition: 0.2s;
}

.footer a:hover {
    color: #ff6b35;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   REVEAL ANIMATION
============================================ */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.6s;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   BACK TO TOP BUTTON
============================================ */
.top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #ff6b35;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.top-btn.active {
    opacity: 1;
    pointer-events: auto;
}

.top-btn:hover {
    background: #e55a2b;
    transform: scale(1.05);
}

/* ============================================
   SEARCH MODAL
============================================ */
.search-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.search-modal.active {
    display: flex;
}

.search-box {
    width: 100%;
    max-width: 500px;
    background: #fff;
    padding: 25px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: fadeSlideUp 0.25s ease;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-box h2 {
    margin-bottom: 18px;
    font-size: 1.6rem;
    color: #222;
}

.search-box input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 40px;
    margin-bottom: 18px;
    font-size: 1rem;
    transition: 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.search-submit {
    width: 100%;
    padding: 14px;
    border: none;
    background: #ff6b35;
    color: #fff;
    border-radius: 40px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.2s;
}

.search-submit:hover {
    background: #e55a2b;
}

.close-search {
    position: absolute;
    top: 16px;
    right: 20px;
    border: none;
    background: none;
    font-size: 32px;
    cursor: pointer;
    color: #888;
    transition: 0.2s;
}

.close-search:hover {
    color: #ff6b35;
}

/* ============================================
   DARK MODE TOGGLE BUTTON
============================================ */
.dark-toggle {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: #111;
    color: #fff;
    cursor: pointer;
    z-index: 1000;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: 0.2s;
}

.dark-toggle:hover {
    transform: scale(1.05);
}

/* ============================================
   DARK MODE THEME
============================================ */
body.dark {
    background: #121212;
    color: #f0f0f0;
}

body.dark .header,
body.dark .recipe-card,
body.dark .category-card,
body.dark .search-box {
    background: #1e1e1e;
    color: #f0f0f0;
}

body.dark .nav-links a {
    color: #f0f0f0;
}

body.dark .nav-links a:hover {
    color: #ff6b35;
}

body.dark .category-card {
    background: #2a2a2a;
    color: #fff;
}

body.dark .footer {
    background: #0a0a0a;
}

body.dark .search-box input {
    background: #2c2c2c;
    border-color: #444;
    color: white;
}

body.dark .search-box h2 {
    color: #ffd8cc;
}

body.dark .close-search {
    color: #bbb;
}

/* ============================================
   MOBILE RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-active {
        display: block !important;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
        padding: 20px;
        z-index: 999;
        border-radius: 0 0 20px 20px;
    }

    body.dark .mobile-active {
        background: #1e1e1e;
    }

    .mobile-active .nav-links {
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .header .container {
        height: 72px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .dark-toggle {
        width: 45px;
        height: 45px;
        font-size: 18px;
        left: 12px;
        bottom: 12px;
    }

    .top-btn {
        width: 45px;
        height: 45px;
        right: 12px;
        bottom: 12px;
    }
}

/* ============================================
   PAGE HERO / TITLE SECTION
============================================ */

.page-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1547592180-85f173990554?q=80&w=1600') center/cover;
    opacity: 0.1;
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Breadcrumbs */
.breadcrumbs-wrapper {
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumbs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumbs a {
    color: #ff6b35;
    text-decoration: none;
    transition: 0.3s;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 5px;
    color: #888;
}

/* ============================================
   PAGE CONTENT SECTION
============================================ */

.page-content-section {
    padding: 80px 0;
    background: #fafafa;
}

body.dark .page-content-section {
    background: #121212;
}

/* Page Layout (Sidebar + Main) */
.page-layout {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.page-main {
    flex: 3;
    min-width: 0;
}

.page-sidebar {
    flex: 1;
    min-width: 280px;
}

/* Page Article */
.page-article {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

body.dark .page-article {
    background: #1e1e1e;
}

/* Featured Image */
.page-featured-image {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.featured-img:hover {
    transform: scale(1.02);
}

/* Page Content */
.page-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

body.dark .page-content {
    color: #ddd;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    margin: 1.5em 0 0.5em;
    color: #222;
}

body.dark .page-content h1,
body.dark .page-content h2,
body.dark .page-content h3,
body.dark .page-content h4,
body.dark .page-content h5,
body.dark .page-content h6 {
    color: #fff;
}

.page-content h1 { font-size: 2rem; }
.page-content h2 { font-size: 1.75rem; }
.page-content h3 { font-size: 1.5rem; }
.page-content h4 { font-size: 1.25rem; }

.page-content p {
    margin-bottom: 1.5em;
}

.page-content ul,
.page-content ol {
    margin: 1em 0 1em 2em;
}

.page-content li {
    margin-bottom: 0.5em;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5em 0;
}

.page-content blockquote {
    margin: 1.5em 0;
    padding: 1em 2em;
    background: #f5f5f5;
    border-left: 4px solid #ff6b35;
    font-style: italic;
    border-radius: 0 10px 10px 0;
}

body.dark .page-content blockquote {
    background: #2a2a2a;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.page-content th,
.page-content td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

body.dark .page-content th,
body.dark .page-content td {
    border-color: #444;
}

.page-content th {
    background: #f5f5f5;
    font-weight: bold;
}

body.dark .page-content th {
    background: #2a2a2a;
}

/* Page Links (Pagination) */
.page-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

body.dark .page-links {
    border-top-color: #333;
}

.page-links-title {
    font-weight: bold;
    margin-right: 10px;
}

.page-links a,
.page-links span {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 3px;
    border-radius: 5px;
    background: #f0f0f0;
    text-decoration: none;
    color: #222;
    transition: 0.3s;
}

body.dark .page-links a,
body.dark .page-links span {
    background: #2a2a2a;
    color: #fff;
}

.page-links a:hover {
    background: #ff6b35;
    color: white;
}

/* Page Comments Section */
.page-comments {
    margin-top: 40px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

body.dark .page-comments {
    background: #1e1e1e;
}

/* ============================================
   BEAUTIFUL COMMENT SECTION STYLES
============================================ */

/* Comments Container */
.recipe-comments {
    margin-top: 50px;
}

.comments-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.comments-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ff6b35;
}

.comments-title i {
    color: #ff6b35;
    margin-right: 10px;
}

/* Comment List */
.comment-list {
    list-style: none;
    margin: 0 0 40px 0;
    padding: 0;
}

.comment {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

body.dark .comment {
    background: #1e1e1e;
}

.comment:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Comment Body */
.comment-body {
    display: flex;
    flex-direction: column;
}

/* Comment Author Section */
.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author .avatar {
    width: 55px !important;
    height: 55px !important;
    border-radius: 50%;
    border: 3px solid #ff6b35;
    padding: 2px;
}

.comment-info {
    display: flex;
    flex-direction: column;
}

.comment-author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
}

body.dark .comment-author-name {
    color: #fff;
}

.comment-date {
    font-size: 0.75rem;
    color: #888;
    margin-top: 3px;
}

.comment-date i {
    margin-right: 5px;
}

/* Comment Content */
.comment-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
    padding-left: 70px;
}

body.dark .comment-content {
    color: #bbb;
}

.comment-content p {
    margin-bottom: 10px;
}

/* Reply Button */
.comment-reply {
    margin-left: 70px;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff6b35;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.comment-reply-link:hover {
    background: #e55a2b;
    transform: translateX(5px);
    color: white;
}

.comment-reply-link i {
    font-size: 0.7rem;
}

/* Child Comments (Nested) */
.children {
    list-style: none;
    margin-left: 60px;
    margin-top: 20px;
    padding-left: 20px;
    border-left: 3px solid #ff6b35;
}

/* No Comments */
.nocomments {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 20px;
    color: #888;
}

body.dark .nocomments {
    background: #1e1e1e;
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    .comments-title {
        font-size: 1.4rem;
    }
    
    .comment {
        padding: 18px;
    }
    
    .comment-content {
        padding-left: 0;
        margin-top: 10px;
    }
    
    .comment-reply {
        margin-left: 0;
    }
    
    .children {
        margin-left: 15px;
        padding-left: 15px;
    }
    
    .comment-author {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .comment-author .avatar {
        width: 45px !important;
        height: 45px !important;
    }
    
    .comment-author-name {
        font-size: 1rem;
    }
}



/* No Content Found */
.no-content {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
}

body.dark .no-content {
    background: #1e1e1e;
}

.no-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ff6b35;
}

.no-content p {
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE PAGE
============================================ */

@media (max-width: 992px) {
    .page-layout {
        flex-direction: column;
    }
    
    .page-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-article {
        padding: 25px;
    }
    
    .page-content {
        font-size: 1rem;
    }
    
    .page-content h1 { font-size: 1.6rem; }
    .page-content h2 { font-size: 1.4rem; }
    .page-content h3 { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .page-article {
        padding: 20px;
    }
    
    .page-content ul,
    .page-content ol {
        margin-left: 1em;
    }
}

/* ============================================
   SINGLE POST HERO
============================================ */

.single-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: white;
}

.single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
}

.single-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.recipe-category-badge {
    margin-bottom: 20px;
}

.cat-badge {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 5px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    text-decoration: none;
}

.single-title {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.recipe-meta-header {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.recipe-quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;

    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);

    border-radius: 30px;
    padding: 20px;

    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.stat-item i {
    font-size: 20px;
    margin-bottom: 8px;
}

/* Tablet */

@media (max-width: 768px) {

    .recipe-quick-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;

        max-width: 420px;
        border-radius: 20px;
    }

}

/* Small Mobile */

@media (max-width: 480px) {

    .recipe-quick-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
    }

}

.stat-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
}

.stat-value {
    display: block;
    font-size: 1rem;
    font-weight: bold;
}

.difficulty-easy { color: #4caf50; }
.difficulty-medium { color: #ff9800; }
.difficulty-hard { color: #f44336; }

/* ============================================
   SINGLE CONTENT SECTION
============================================ */

.single-content-section {
    padding: 60px 0;
    background: #fafafa;
}

body.dark .single-content-section {
    background: #121212;
}

.single-layout {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.single-main {
    flex: 3;
    min-width: 0;
}

.single-sidebar {
    flex: 1;
    min-width: 280px;
}

/* Recipe Article */
.recipe-article {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

body.dark .recipe-article {
    background: #1e1e1e;
}

/* Recipe Two Columns */
.recipe-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.recipe-ingredients-box,
.recipe-instructions-box {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 15px;
}

body.dark .recipe-ingredients-box,
body.dark .recipe-instructions-box {
    background: #2a2a2a;
}

.ingredients-list ul,
.instructions-list ol {
    margin-left: 20px;
}

.ingredients-list li,
.instructions-list li {
    margin-bottom: 10px;
}

.print-shopping-list {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 15px;
}

/* Recipe Nutrition */
.recipe-nutrition {
    background: #f0f7ff;
    padding: 20px;
    border-radius: 15px;
    margin: 30px 0;
}

body.dark .recipe-nutrition {
    background: #1a2a3a;
}

.nutrition-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.nutrition-item {
    background: white;
    padding: 10px 20px;
    border-radius: 10px;
    min-width: 100px;
    text-align: center;
}

body.dark .nutrition-item {
    background: #2a2a2a;
}

/* Recipe Tags */
.recipe-tags {
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tag-link {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    font-size: 0.85rem;
}

body.dark .tag-link {
    background: #2a2a2a;
    color: #aaa;
}

.tag-link:hover {
    background: #ff6b35;
    color: white;
}

/* Share Buttons */
.recipe-share {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.pinterest { background: #bd081c; }
.share-btn.email { background: #666; }

.share-btn:hover {
    transform: translateY(-3px);
}

/* Author Bio Box */
.author-bio-box {
    display: flex;
    gap: 25px;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
}

body.dark .author-bio-box {
    background: #2a2a2a;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.author-link {
    display: inline-block;
    margin-top: 10px;
    color: #ff6b35;
    text-decoration: none;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.post-navigation a {
    text-decoration: none;
    color: #ff6b35;
    font-weight: 500;
}

/* Related Recipes */
.related-recipes {
    margin: 40px 0 30px;
}

.related-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-card {
    text-align: center;
}

.related-link {
    text-decoration: none;
    color: inherit;
}

.related-img {
    height: 150px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card h4 {
    font-size: 1rem;
}

/* Comments */
.recipe-comments {
    margin-top: 40px;
}

.comments-title {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .single-layout {
        flex-direction: column;
    }
    
    .recipe-two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .single-title {
        font-size: 2rem;
    }
    
    .recipe-quick-stats {
        flex-direction: column;
        gap: 15px;
        border-radius: 20px;
    }
    
    .recipe-article {
        padding: 25px;
    }
    
    .author-bio-box {
        flex-direction: column;
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .recipe-meta-header {
        gap: 15px;
    }
    
    .meta-item {
        font-size: 0.8rem;
    }
}

/* ============================================
   ARCHIVE HERO SECTION
============================================ */

.archive-hero {
    background: linear-gradient(135deg, #ff6b35 0%, #ff9359 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.archive-hero-content {
    position: relative;
    z-index: 1;
}

.archive-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.archive-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.archive-description {
    max-width: 600px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    opacity: 0.95;
}

.archive-stats {
    margin-top: 20px;
}

.stat-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
}

/* ============================================
   ARCHIVE CONTENT SECTION
============================================ */

.archive-content-section {
    padding: 60px 0;
    background: #fafafa;
}

body.dark .archive-content-section {
    background: #121212;
}

.archive-layout {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.archive-main {
    flex: 3;
    min-width: 0;
}

.archive-sidebar {
    flex: 1;
    min-width: 280px;
}

/* ============================================
   ARCHIVE GRID
============================================ */

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Archive Card */
.archive-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

body.dark .archive-card {
    background: #1e1e1e;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Card Image */
.archive-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.archive-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.archive-card:hover .archive-card-img img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e2e2, #ccc);
    font-size: 3rem;
    color: #999;
}

body.dark .no-image {
    background: #2a2a2a;
    color: #555;
}

/* Category Badge on Card */
.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff6b35;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* Card Content */
.archive-card-content {
    padding: 20px;
}

.archive-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.archive-card-title a {
    text-decoration: none;
    color: #222;
    transition: color 0.3s;
}

body.dark .archive-card-title a {
    color: #fff;
}

.archive-card-title a:hover {
    color: #ff6b35;
}

/* Card Meta */
.archive-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #888;
}

body.dark .archive-card-meta {
    color: #aaa;
}

.archive-card-meta i {
    margin-right: 5px;
    font-size: 0.75rem;
}

/* Card Excerpt */
.archive-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 15px;
}

body.dark .archive-card-excerpt {
    color: #bbb;
}

/* Card Stats */
.archive-card-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

body.dark .archive-card-stats {
    border-bottom-color: #333;
}

.archive-card-stats .stat {
    font-size: 0.8rem;
    color: #ff6b35;
}

.archive-card-stats .stat i {
    margin-right: 5px;
}

/* Read More Button */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s;
}

.read-more-btn:hover {
    gap: 12px;
    color: #e55a2b;
}

/* ============================================
   PAGINATION
============================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: all 0.3s;
}

body.dark .pagination a,
body.dark .pagination span {
    background: #1e1e1e;
    color: #fff;
}

.pagination a:hover {
    background: #ff6b35;
    color: white;
}

.pagination .current {
    background: #ff6b35;
    color: white;
}

.pagination .dots {
    background: none;
}

/* ============================================
   NO RESULTS SECTION
============================================ */

.no-results {
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
}

body.dark .no-results {
    background: #1e1e1e;
}

.no-results-icon {
    font-size: 4rem;
    color: #ff6b35;
    margin-bottom: 20px;
}

.no-results h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.no-results p {
    color: #666;
    margin-bottom: 30px;
}

body.dark .no-results p {
    color: #aaa;
}

/* No Results Search Form */
.no-results-search form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto 40px;
}

.no-results-search input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 40px;
    font-size: 1rem;
}

body.dark .no-results-search input {
    background: #2a2a2a;
    border-color: #444;
    color: white;
}

.no-results-search button {
    padding: 12px 25px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.3s;
}

.no-results-search button:hover {
    background: #e55a2b;
}

/* Popular Categories */
.popular-categories h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.category-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cat-link {
    display: inline-block;
    background: #f0f0f0;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    color: #222;
    font-size: 0.9rem;
    transition: all 0.3s;
}

body.dark .cat-link {
    background: #2a2a2a;
    color: #fff;
}

.cat-link:hover {
    background: #ff6b35;
    color: white;
}

.cat-link span {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ============================================
   RESPONSIVE ARCHIVE
============================================ */

@media (max-width: 992px) {
    .archive-layout {
        flex-direction: column;
    }
    
    .archive-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .archive-hero {
        padding: 40px 0;
    }
    
    .archive-title {
        font-size: 1.8rem;
    }
    
    .archive-icon {
        font-size: 2rem;
    }
    
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .archive-card-img {
        height: 200px;
    }
    
    .no-results {
        padding: 40px 20px;
    }
    
    .no-results h2 {
        font-size: 1.4rem;
    }
    
    .category-list {
        gap: 8px;
    }
    
    .cat-link {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .archive-card-meta {
        font-size: 0.7rem;
        gap: 10px;
    }
    
    .archive-card-stats {
        gap: 10px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}

/* ============================================
   CATEGORY HERO SECTION
============================================ */

.category-hero {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.category-hero-content {
    position: relative;
    z-index: 1;
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.category-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.category-description {
    max-width: 700px;
    margin: 0 auto 25px;
    font-size: 1.1rem;
    opacity: 0.95;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.category-stats .stat-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
}

.category-stats .stat-item i {
    margin-right: 8px;
}

/* Subcategories Navigation */
.subcategories-nav {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 12px 25px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.subcat-label {
    font-weight: 600;
}

.subcat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subcat-link {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-size: 0.85rem;
    transition: 0.3s;
}

.subcat-link:hover {
    background: #ff6b35;
}

.subcat-link span {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ============================================
   CATEGORY FILTER BAR
============================================ */

.category-filter-bar {
    background: white;
    border-radius: 60px;
    padding: 12px 25px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

body.dark .category-filter-bar {
    background: #1e1e1e;
}

.filter-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: #ff6b35;
}

.filter-options {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background: none;
    border: none;
    padding: 6px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
    color: #666;
}

body.dark .filter-btn {
    color: #aaa;
}

.filter-btn.active {
    background: #ff6b35;
    color: white;
}

.filter-btn:hover:not(.active) {
    background: #f0f0f0;
}

body.dark .filter-btn:hover:not(.active) {
    background: #2a2a2a;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    color: #999;
}

.view-btn.active {
    background: #ff6b35;
    color: white;
}

/* ============================================
   CATEGORY CONTENT SECTION
============================================ */

.category-content-section {
    padding: 60px 0;
    background: #fafafa;
}

body.dark .category-content-section {
    background: #121212;
}

.category-layout {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.category-main {
    flex: 3;
    min-width: 0;
}

.category-sidebar {
    flex: 1;
    min-width: 280px;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* List View */
.category-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-grid.list-view .category-card {
    display: flex;
    flex-direction: row;
}

.category-grid.list-view .card-img {
    width: 250px;
    height: auto;
    flex-shrink: 0;
}

.category-grid.list-view .card-content {
    flex: 1;
}

/* Category Card */
.category-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

body.dark .category-card {
    background: #1e1e1e;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Card Image */
.card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover .card-img img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e2e2, #ccc);
    font-size: 3rem;
    color: #999;
}

/* Quick View Button */
.quick-view {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    margin: auto;
    width: 80%;
    background: rgba(255, 107, 53, 0.95);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 30px;
    cursor: pointer;
    transition: bottom 0.3s;
    font-size: 0.85rem;
}

.card-img:hover .quick-view {
    bottom: 15px;
}

/* Card Content */
.card-content {
    padding: 20px;
}

.card-meta-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.75rem;
    color: #888;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-title a {
    text-decoration: none;
    color: #222;
    transition: color 0.3s;
}

body.dark .card-title a {
    color: #fff;
}

.card-title a:hover {
    color: #ff6b35;
}

.card-excerpt {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

body.dark .card-excerpt {
    color: #bbb;
}

/* Card Stats */
.card-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

body.dark .card-stats {
    border-bottom-color: #333;
}

.card-stats .stat {
    font-size: 0.75rem;
    color: #ff6b35;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Card Author */
.card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar-mini img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 0.8rem;
    color: #888;
}

/* ============================================
   QUICK VIEW MODAL
============================================ */

.quick-view-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.quick-view-modal.active {
    display: flex;
}

.quick-view-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

body.dark .quick-view-content {
    background: #1e1e1e;
}

.close-modal {
    position: sticky;
    top: 10px;
    right: 10px;
    float: right;
    background: #ff6b35;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 1;
    margin: 10px;
}

.quick-view-recipe {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
}

.quick-view-left {
    flex: 1;
    min-width: 200px;
}

.quick-view-left img {
    width: 100%;
    border-radius: 15px;
}

.quick-view-right {
    flex: 1.5;
    padding: 0 20px;
}

.quick-view-right h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.view-full-btn {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 20px;
}

/* ============================================
   NO RECIPES SECTION
============================================ */

.no-recipes {
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
}

body.dark .no-recipes {
    background: #1e1e1e;
}

.no-recipes-icon {
    font-size: 4rem;
    color: #ff6b35;
    margin-bottom: 20px;
}

.no-recipes h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* ============================================
   RESPONSIVE CATEGORY PAGE
============================================ */

@media (max-width: 992px) {
    .category-layout {
        flex-direction: column;
    }
    
    .category-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: 50px 0;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .category-icon {
        font-size: 3rem;
    }
    
    .category-stats {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .subcategories-nav {
        border-radius: 20px;
        flex-direction: column;
    }
    
    .category-filter-bar {
        border-radius: 20px;
        flex-direction: column;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid.list-view .category-card {
        flex-direction: column;
    }
    
    .category-grid.list-view .card-img {
        width: 100%;
        height: 200px;
    }
    
    .quick-view-recipe {
        flex-direction: column;
    }
    
    .quick-view-right {
        padding: 20px 0 0;
    }
}

@media (max-width: 480px) {
    .filter-options {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
}

/* ============================================
   SEARCH HERO SECTION
============================================ */

.search-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.search-hero-content {
    position: relative;
    z-index: 1;
}

.search-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.search-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.search-query {
    margin-bottom: 20px;
}

.query-label {
    font-size: 1rem;
    opacity: 0.9;
}

.query-term {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-left: 10px;
}

.search-stats {
    margin-bottom: 30px;
}

.search-stats .stat-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
}

/* Search Form Wrapper */
.search-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.search-form-inline {
    display: flex;
    gap: 10px;
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.search-form-inline input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: transparent;
}

.search-form-inline input:focus {
    outline: none;
}

.search-form-inline button {
    padding: 12px 25px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form-inline button:hover {
    background: #e55a2b;
}

/* ============================================
   SEARCH FILTER BAR
============================================ */

.search-filter-bar {
    background: white;
    border-radius: 60px;
    padding: 12px 25px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.dark .search-filter-bar {
    background: #1e1e1e;
}

/* ============================================
   SEARCH CONTENT SECTION
============================================ */

.search-content-section {
    padding: 60px 0;
    background: #fafafa;
}

body.dark .search-content-section {
    background: #121212;
}

.search-layout {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.search-main {
    flex: 3;
    min-width: 0;
}

.search-sidebar {
    flex: 1;
    min-width: 280px;
}

/* Search Grid */
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Search Card */
.search-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

body.dark .search-card {
    background: #1e1e1e;
}

.search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Card Image */
.card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.search-card:hover .card-img img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e2e2, #ccc);
    font-size: 3rem;
    color: #999;
}

/* Match Badge */
.match-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #4caf50;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 1;
}

.match-badge i {
    margin-right: 4px;
    font-size: 0.65rem;
}

/* Post Type Badge */
.post-type-badge {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Card Content */
.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-title a {
    text-decoration: none;
    color: #222;
    transition: color 0.3s;
}

body.dark .card-title a {
    color: #fff;
}

.card-title a:hover {
    color: #ff6b35;
}

/* Card Meta */
.card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.75rem;
    color: #888;
}

.card-meta i {
    margin-right: 5px;
}

/* Search Highlight */
.search-highlight {
    background: #ffeb3b;
    color: #333;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 600;
}

body.dark .search-highlight {
    background: #f39c12;
    color: #1a1a1a;
}

/* Card Excerpt */
.card-excerpt {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

body.dark .card-excerpt {
    color: #bbb;
}

/* Card Stats */
.card-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

body.dark .card-stats {
    border-bottom-color: #333;
}

.card-stats .stat {
    font-size: 0.75rem;
    color: #ff6b35;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   NO RESULTS SECTION (Search Specific)
============================================ */

.no-results {
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
}

body.dark .no-results {
    background: #1e1e1e;
}

.no-results-icon {
    font-size: 4rem;
    color: #ff6b35;
    margin-bottom: 20px;
}

.no-results h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.no-results > p {
    color: #666;
    margin-bottom: 30px;
}

body.dark .no-results > p {
    color: #aaa;
}

/* Search Suggestions */
.search-suggestions {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 15px;
}

body.dark .search-suggestions {
    background: #2a2a2a;
}

.search-suggestions h3 {
    margin-bottom: 15px;
    color: #ff6b35;
}

.search-suggestions ul {
    list-style: none;
}

.search-suggestions li {
    margin-bottom: 8px;
    color: #666;
}

body.dark .search-suggestions li {
    color: #bbb;
}

/* Popular Recipes */
.popular-recipes {
    margin-bottom: 40px;
}

.popular-recipes h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.popular-recipes h3 i {
    color: #ff6b35;
    margin-right: 8px;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.popular-card {
    background: #f9f9f9;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
}

body.dark .popular-card {
    background: #2a2a2a;
}

.popular-card:hover {
    transform: translateY(-3px);
}

.popular-card a {
    text-decoration: none;
}

.popular-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.popular-card h4 {
    padding: 12px;
    font-size: 0.9rem;
    text-align: center;
    color: #222;
}

body.dark .popular-card h4 {
    color: #fff;
}

/* Browse Categories */
.browse-categories h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.category-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cat-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f0f0;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    color: #222;
    font-size: 0.85rem;
    transition: all 0.3s;
}

body.dark .cat-link {
    background: #2a2a2a;
    color: #fff;
}

.cat-link:hover {
    background: #ff6b35;
    color: white;
}

.cat-link span {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ============================================
   LIST VIEW FOR SEARCH RESULTS
============================================ */

.search-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-grid.list-view .search-card {
    display: flex;
    flex-direction: row;
}

.search-grid.list-view .card-img {
    width: 250px;
    height: auto;
    flex-shrink: 0;
}

.search-grid.list-view .card-content {
    flex: 1;
}

@media (max-width: 768px) {
    .search-grid.list-view .search-card {
        flex-direction: column;
    }
    
    .search-grid.list-view .card-img {
        width: 100%;
        height: 200px;
    }
}

/* ============================================
   RESPONSIVE SEARCH PAGE
============================================ */

@media (max-width: 992px) {
    .search-layout {
        flex-direction: column;
    }
    
    .search-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .search-hero {
        padding: 40px 0;
    }
    
    .search-title {
        font-size: 1.8rem;
    }
    
    .search-icon {
        font-size: 2.5rem;
    }
    
    .query-term {
        display: block;
        margin: 10px 0 0;
    }
    
    .search-form-inline {
        flex-direction: column;
        border-radius: 20px;
        background: white;
    }
    
    .search-form-inline input {
        text-align: center;
    }
    
    .search-filter-bar {
        border-radius: 20px;
        flex-direction: column;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .popular-grid {
        grid-template-columns: 1fr;
    }
    
    .no-results {
        padding: 40px 20px;
    }
    
    .no-results h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .filter-options {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
}

/* ============================================
   SIDEBAR STYLES
============================================ */

.sidebar {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

body.dark .sidebar {
    background: #1e1e1e;
}

/* Sidebar Widget */
.sidebar-widget {
    margin-bottom: 35px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

/* Widget Title */
.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ff6b35;
    position: relative;
    color: #222;
}

body.dark .widget-title {
    color: #fff;
}

.widget-title i {
    color: #ff6b35;
    margin-right: 8px;
}

/* ============================================
   SEARCH WIDGET
============================================ */

.sidebar-search-form {
    display: flex;
    gap: 10px;
    background: #f5f5f5;
    border-radius: 50px;
    padding: 5px;
}

body.dark .sidebar-search-form {
    background: #2a2a2a;
}

.sidebar-search-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-size: 0.9rem;
}

body.dark .sidebar-search-form input {
    color: #fff;
}

.sidebar-search-form input:focus {
    outline: none;
}

.sidebar-search-form button {
    background: #ff6b35;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    transition: background 0.3s;
}

.sidebar-search-form button:hover {
    background: #e55a2b;
}

/* ============================================
   POPULAR POSTS WIDGET
============================================ */

.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

body.dark .popular-post-item {
    border-bottom-color: #333;
}

.popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
}

.popular-post-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.popular-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-img-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e2e2, #ccc);
    color: #999;
    font-size: 1.5rem;
}

.popular-post-info {
    flex: 1;
}

.popular-post-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #222;
    transition: color 0.3s;
}

body.dark .popular-post-info h4 {
    color: #fff;
}

.popular-post-link:hover .popular-post-info h4 {
    color: #ff6b35;
}

.popular-post-info .post-meta {
    font-size: 0.7rem;
    color: #888;
}

.popular-post-info .post-meta i {
    margin-right: 3px;
}

/* ============================================
   CATEGORIES WIDGET
============================================ */

.category-list-sidebar {
    list-style: none;
}

.category-list-sidebar li {
    margin-bottom: 10px;
}

.category-list-sidebar li:last-child {
    margin-bottom: 0;
}

.category-list-sidebar a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #555;
    padding: 8px 0;
    transition: all 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

body.dark .category-list-sidebar a {
    color: #bbb;
    border-bottom-color: #2a2a2a;
}

.category-list-sidebar a:hover {
    color: #ff6b35;
    padding-left: 5px;
}

.category-list-sidebar a i {
    color: #ff6b35;
    width: 20px;
}

.cat-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: #888;
}

/* ============================================
   RECENT COMMENTS WIDGET
============================================ */

.recent-comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    display: flex;
    gap: 12px;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    font-size: 0.85rem;
    color: #ff6b35;
}

.comment-on {
    font-size: 0.75rem;
    color: #888;
}

.comment-post {
    font-size: 0.85rem;
    color: #222;
    text-decoration: none;
}

body.dark .comment-post {
    color: #fff;
}

.comment-post:hover {
    color: #ff6b35;
}

.comment-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

body.dark .comment-text {
    color: #aaa;
}

/* ============================================
   TAGS CLOUD WIDGET
============================================ */

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 25px;
    font-size: 0.8rem;
    text-decoration: none;
    color: #555;
    transition: all 0.3s;
}

body.dark .tag-link {
    background: #2a2a2a;
    color: #bbb;
}

.tag-link:hover {
    background: #ff6b35;
    color: white;
}

.tag-link i {
    font-size: 0.7rem;
}

/* ============================================
   NEWSLETTER WIDGET
============================================ */

.widget-newsletter p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

body.dark .widget-newsletter p {
    color: #aaa;
}

.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-newsletter-form input {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

body.dark .sidebar-newsletter-form input {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

.sidebar-newsletter-form input:focus {
    outline: none;
    border-color: #ff6b35;
}

.sidebar-newsletter-form button {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.sidebar-newsletter-form button:hover {
    background: #e55a2b;
}

.newsletter-msg {
    margin-top: 10px;
    font-size: 0.8rem;
}

.newsletter-msg.success {
    color: #4caf50;
}

.newsletter-msg.error {
    color: #f44336;
}

/* ============================================
   SOCIAL MEDIA WIDGET
============================================ */

.social-links-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s, opacity 0.3s;
}

.social-link:hover {
    transform: translateX(5px);
    opacity: 0.9;
}

.social-link i {
    width: 22px;
    font-size: 1.1rem;
}

.social-link span {
    font-size: 0.9rem;
    font-weight: 500;
}

.social-link.facebook {
    background: #3b5998;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf);
}

.social-link.pinterest {
    background: #bd081c;
}

.social-link.youtube {
    background: #ff0000;
}

/* ============================================
   RESPONSIVE SIDEBAR
============================================ */

@media (max-width: 992px) {
    .sidebar {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        padding: 20px;
    }
    
    .widget-title {
        font-size: 1.1rem;
    }
    
    .popular-post-img {
        width: 50px;
        height: 50px;
    }
    
    .social-links-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .social-link {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .social-link:hover {
        transform: translateY(-3px);
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 15px;
    }
    
    .social-links-sidebar {
        flex-direction: column;
    }
    
    .social-link {
        justify-content: flex-start;
    }
}

/* ============================================
   404 ERROR PAGE STYLES
============================================ */

/* Error Hero Section */
.error-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1547592180-85f173990554?q=80&w=1600') center/cover;
    opacity: 0.08;
    pointer-events: none;
}

.error-hero-content {
    position: relative;
    z-index: 1;
}

/* Animated 404 Number */
.error-number {
    font-size: 8rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 0.6s ease;
}

.digit {
    display: inline-block;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: bounce 2s ease infinite;
}

.digit.zero {
    animation-delay: 0.2s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-title {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.error-description {
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Error Search Form */
.error-search {
    max-width: 500px;
    margin: 0 auto 30px;
}

.error-search-form {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 5px;
}

.error-search-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-size: 1rem;
    color: white;
}

.error-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.error-search-form input:focus {
    outline: none;
}

.error-search-form button {
    padding: 12px 25px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.error-search-form button:hover {
    background: #e55a2b;
}

/* Error Action Buttons */
.error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-home,
.btn-recipes {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-home {
    background: white;
    color: #ff6b35;
}

.btn-home:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-3px);
}

.btn-recipes {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-recipes:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* ============================================
   SUGGESTIONS SECTION
============================================ */

.error-suggestions {
    padding: 60px 0;
    background: #fafafa;
}

body.dark .error-suggestions {
    background: #121212;
}

.suggestions-block {
    margin-bottom: 50px;
}

.suggestions-block:last-child {
    margin-bottom: 0;
}

.suggestions-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-align: center;
    color: #222;
}

body.dark .suggestions-title {
    color: #fff;
}

.suggestions-title i {
    color: #ff6b35;
    margin-right: 10px;
}

.suggestions-grid {
    display: grid;
    gap: 20px;
}

/* Categories Grid */
.categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.category-card-404 {
    background: white;
    padding: 25px 15px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

body.dark .category-card-404 {
    background: #1e1e1e;
}

.category-card-404:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2rem;
    color: #ff6b35;
    margin-bottom: 10px;
}

.category-card-404 h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #222;
}

body.dark .category-card-404 h3 {
    color: #fff;
}

.card-count {
    font-size: 0.75rem;
    color: #888;
}

/* Recipes Grid */
.recipes-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.recipe-card-404 {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

body.dark .recipe-card-404 {
    background: #1e1e1e;
}

.recipe-card-404:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.recipe-img-404 {
    height: 180px;
    overflow: hidden;
}

.recipe-img-404 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.recipe-card-404:hover .recipe-img-404 img {
    transform: scale(1.05);
}

.no-img-404 {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e2e2, #ccc);
    font-size: 3rem;
    color: #999;
}

.recipe-info-404 {
    padding: 15px;
}

.recipe-info-404 h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #222;
}

body.dark .recipe-info-404 h3 {
    color: #fff;
}

.recipe-meta-404 {
    display: flex;
    gap: 15px;
    font-size: 0.7rem;
    color: #888;
}

.recipe-meta-404 i {
    margin-right: 3px;
}

/* Latest Grid */
.latest-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.latest-card-404 {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.dark .latest-card-404 {
    background: #1e1e1e;
}

.latest-card-404:hover {
    transform: translateX(5px);
    background: #fff5f0;
}

body.dark .latest-card-404:hover {
    background: #2a2a2a;
}

.latest-card-404 img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

.no-img-small {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e2e2, #ccc);
    border-radius: 10px;
    color: #999;
    font-size: 1.5rem;
}

.latest-info h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #222;
}

body.dark .latest-info h4 {
    color: #fff;
}

.latest-info span {
    font-size: 0.7rem;
    color: #888;
}

/* Helpful Links */
.helpful-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.helpful-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: white;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.dark .helpful-link {
    background: #1e1e1e;
}

.helpful-link:hover {
    background: #ff6b35;
    transform: translateY(-3px);
}

.helpful-link:hover i,
.helpful-link:hover span {
    color: white;
}

.helpful-link i {
    font-size: 1.1rem;
    color: #ff6b35;
}

.helpful-link span {
    font-size: 0.9rem;
    color: #222;
}

body.dark .helpful-link span {
    color: #fff;
}

/* ============================================
   FUN FACT SECTION
============================================ */

.error-funfact {
    background: #ff6b35;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.funfact-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.funfact-content i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.funfact-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0;
    font-style: italic;
}

/* ============================================
   RESPONSIVE 404 PAGE
============================================ */

@media (max-width: 768px) {
    .error-number {
        font-size: 5rem;
        gap: 10px;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-description {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .error-search-form {
        flex-direction: column;
        background: transparent;
        gap: 10px;
    }
    
    .error-search-form input {
        background: rgba(255, 255, 255, 0.15);
        text-align: center;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-home,
    .btn-recipes {
        width: 80%;
        justify-content: center;
    }
    
    .suggestions-title {
        font-size: 1.3rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    }
    
    .recipes-grid {
        grid-template-columns: 1fr;
    }
    
    .latest-grid {
        grid-template-columns: 1fr;
    }
    
    .helpful-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .helpful-link {
        width: 80%;
        justify-content: center;
    }
    
    .funfact-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }
    
    .funfact-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .error-number {
        font-size: 3.5rem;
    }
    
    .category-card-404 {
        padding: 15px 10px;
    }
    
    .card-icon {
        font-size: 1.5rem;
    }
}

/* ============================================
   INDEX PAGE STYLES
============================================ */

.index-hero {
    background: linear-gradient(135deg, #ff6b35 0%, #ff9359 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.index-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.index-description {
    font-size: 1.1rem;
    opacity: 0.95;
}

.index-content-section {
    padding: 60px 0;
    background: #fafafa;
}

body.dark .index-content-section {
    background: #121212;
}

.index-layout {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.index-main {
    flex: 3;
    min-width: 0;
}

.index-sidebar {
    flex: 1;
    min-width: 280px;
}

/* Index Grid */
.index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Index Card (same as archive card) */
.index-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

body.dark .index-card {
    background: #1e1e1e;
}

.index-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* No Posts */
.no-posts {
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
}

body.dark .no-posts {
    background: #1e1e1e;
}

.no-posts-icon {
    font-size: 4rem;
    color: #ff6b35;
    margin-bottom: 20px;
}

.no-posts h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.no-posts p {
    color: #666;
    margin-bottom: 25px;
}

body.dark .no-posts p {
    color: #aaa;
}

/* Responsive */
@media (max-width: 992px) {
    .index-layout {
        flex-direction: column;
    }
    
    .index-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .index-hero {
        padding: 40px 0;
    }
    
    .index-title {
        font-size: 1.8rem;
    }
    
    .index-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   COMMENT FORM - DIRECT STYLING
============================================ */

/* Comment Form Container */
#respond,
.comment-respond {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 35px !important;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
}

body.dark #respond,
body.dark .comment-respond {
    background: #1e1e1e !important;
}

/* Reply Title */
#reply-title,
.comment-reply-title {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    padding-bottom: 12px !important;
    position: relative !important;
    color: #222 !important;
}

#reply-title:before,
.comment-reply-title:before {
    content: '\f075' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    margin-right: 10px !important;
    color: #ff6b35 !important;
}

#reply-title:after,
.comment-reply-title:after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 60px !important;
    height: 3px !important;
    background: #ff6b35 !important;
    border-radius: 3px !important;
}

body.dark #reply-title,
body.dark .comment-reply-title {
    color: #fff !important;
}

/* Cancel Reply Link */
#cancel-comment-reply-link {
    font-size: 0.85rem !important;
    color: #ff6b35 !important;
    text-decoration: none !important;
    margin-left: 15px !important;
}

#cancel-comment-reply-link:hover {
    text-decoration: underline !important;
}

/* Comment Notes */
.comment-notes,
.logged-in-as {
    font-size: 0.85rem !important;
    color: #666 !important;
    margin-bottom: 25px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #eee !important;
}

body.dark .comment-notes,
body.dark .logged-in-as {
    color: #aaa !important;
    border-bottom-color: #333 !important;
}

.comment-notes i,
.logged-in-as i {
    color: #ff6b35 !important;
    margin-right: 5px !important;
}

/* Comment Form Fields Container */
.comment-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

/* Individual Field Groups */
.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
    margin-bottom: 0 !important;
}

/* Labels */
.comment-form-author label,
.comment-form-email label,
.comment-form-url label,
.comment-form-comment label {
    display: block !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    color: #333 !important;
    font-size: 0.9rem !important;
}

body.dark .comment-form-author label,
body.dark .comment-form-email label,
body.dark .comment-form-url label,
body.dark .comment-form-comment label {
    color: #ddd !important;
}

.required {
    color: #ff6b35 !important;
}

/* Input Fields */
.comment-form-author input,
.comment-form-email input,
.comment-form-url input,
.comment-form-comment textarea {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 2px solid #e8e8e8 !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    font-family: inherit !important;
    transition: all 0.3s ease !important;
    background: #fafafa !important;
}

body.dark .comment-form-author input,
body.dark .comment-form-email input,
body.dark .comment-form-url input,
body.dark .comment-form-comment textarea {
    background: #2a2a2a !important;
    border-color: #444 !important;
    color: #fff !important;
}

/* Focus Effect */
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus,
.comment-form-comment textarea:focus {
    outline: none !important;
    border-color: #ff6b35 !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15) !important;
    background: #fff !important;
}

body.dark .comment-form-author input:focus,
body.dark .comment-form-email input:focus,
body.dark .comment-form-url input:focus,
body.dark .comment-form-comment textarea:focus {
    background: #1e1e1e !important;
}

/* Textarea */
.comment-form-comment textarea {
    min-height: 160px !important;
    resize: vertical !important;
}

/* Submit Button Container */
.form-submit {
    text-align: center !important;
    margin-top: 15px !important;
}

/* Submit Button */
.submit,
#submit,
.comment-form input[type="submit"] {
    background: #ff6b35 !important;
    color: white !important;
    border: none !important;
    padding: 14px 40px !important;
    border-radius: 50px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.submit:before,
#submit:before {
    content: '\f1d8' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 0.9rem !important;
}

.submit:hover,
#submit:hover {
    background: #e55a2b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3) !important;
}

/* ============================================
   SITE NAME COLOR
============================================ */

.logo a,
.logo a:link,
.logo a:visited {
    color: #ff6b35 !important;
    text-decoration: none !important;
}

.logo a:hover,
.logo a:active {
    color: #ff6b35 !important;
}

/* ============================================
   HEADING STYLES FOR RECIPE POSTS ONLY
============================================ */

/* H2 Styling - Only inside recipe articles */
.recipe-article h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1.5em 0 0.5em;
    padding-bottom: 12px;
    position: relative;
    color: #222;
    border-bottom: 3px solid #ff6b35;
    display: inline-block;
}

/* H3 Styling - Only inside recipe articles */
.recipe-article h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.2em 0 0.5em;
    padding-left: 15px;
    position: relative;
    color: #222;
    border-left: 4px solid #ff6b35;
}

/* H4 Styling - Only inside recipe articles */
.recipe-article h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1em 0 0.5em;
    color: #ff6b35;
}

/* Dark mode for recipe headings */
body.dark .recipe-article h2 {
    color: #fff;
    border-bottom-color: #ff6b35;
}

body.dark .recipe-article h3 {
    color: #fff;
    border-left-color: #ff6b35;
}

body.dark .recipe-article h4 {
    color: #ff6b35;
}

/* Responsive recipe headings */
@media (max-width: 768px) {
    .recipe-article h2 {
        font-size: 1.5rem;
    }
    
    .recipe-article h3 {
        font-size: 1.3rem;
    }
    
    .recipe-article h4 {
        font-size: 1.1rem;
    }
}

/* ============================================
   HEADING STYLES FOR PAGES (About, Contact, etc.)
============================================ */

.page-article h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1.5em 0 0.5em;
    padding-bottom: 12px;
    border-bottom: 3px solid #ff6b35;
    display: inline-block;
}

.page-article h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.2em 0 0.5em;
    padding-left: 15px;
    border-left: 4px solid #ff6b35;
}

.page-article h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1em 0 0.5em;
    color: #ff6b35;
}

/* Dark mode for page headings */
body.dark .page-article h2 {
    color: #fff;
    border-bottom-color: #ff6b35;
}

body.dark .page-article h3 {
    color: #fff;
    border-left-color: #ff6b35;
}

body.dark .page-article h4 {
    color: #ff6b35;
}

/* Responsive page headings */
@media (max-width: 768px) {
    .page-article h2 {
        font-size: 1.5rem;
    }
    
    .page-article h3 {
        font-size: 1.3rem;
    }
    
    .page-article h4 {
        font-size: 1.1rem;
    }
}

/* ============================================
   RESPONSIVE COMMENT FORM (KEEP THIS ONLY ONCE)
============================================ */

@media (max-width: 768px) {
    #respond,
    .comment-respond {
        padding: 20px !important;
    }
    
    #reply-title,
    .comment-reply-title {
        font-size: 1.3rem !important;
    }
    
    .submit,
    #submit {
        width: 100% !important;
        justify-content: center !important;
    }
}