/* ============================================
   Lastea - Main Stylesheet
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f2f2f2;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   Header - Desktop
   ============================================ */
.site-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 85px;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Desktop Logo */
.desktop-logo {
    display: flex;
    align-items: flex-end;
}

.desktop-logo img {
    height: auto;
    width: auto;
}

/* Navigation */
.main-nav {
    flex: 1;
}

/* Default: Hide Mobile Elements */
.mobile-header,
.mobile-menu-btn,
.logo,
.mobile-search {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #2c3e40;
    text-decoration: none;
    font-weight: 600;
    font-size: 22px;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.7;
}

/* Desktop Search */
.search-container {
    position: relative;
}

.search-form {
    display: flex;
}

.search-form input {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    color: #333;
    width: 140px;
    outline: none;
    font-size: 0.85rem;
}

.search-form input::placeholder {
    color: #999;
}

.search-form input:focus {
    border-color: #3a5a40;
}

.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: none;
    z-index: 1001;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f5f5f5;
}

.search-result-item h4 {
    color: #2d5016;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.search-result-item p {
    color: #666;
    font-size: 0.8rem;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-no-results {
    padding: 1rem;
    text-align: center;
    color: #666;
}

/* ============================================
   Main Layout (Index Page)
   ============================================ */
.main-layout {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.content-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

body.page-404 .main-layout {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

body.page-404 .sidebar-area {
    display: none;
}

body.page-404 .content-area {
    width: 100%;
    height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
}

body.page-404 .not-found-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

body.page-contact .content-area {
    height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
}

body.page-contact .article-full {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Sticky Sidebar for Desktop */
@media (min-width: 769px) {
    .sidebar-area {
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}

/* ============================================
   Sidebar Widgets
   ============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1rem;
    color: #2c3e40;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* About Widget - Desmond name */
.about-widget .widget-title {
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e40;
    margin: 0 0 0.75rem 0;
}

.about-widget .widget-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
}

.about-widget .widget-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-widget .about-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    text-align: center;
}

/* Newsletter Widget */
.newsletter-widget .newsletter-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.newsletter-widget .mailpoet_form_iframe {
    border: none !important;
    border-radius: 0;
    min-height: 150px;
    height: 150px;
}

/* Follow Widget */
.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1877F2;
    color: white;
}

.social-icon.x-twitter {
    background: #000;
}

.social-icon.pinterest {
    background: #E60023;
}

.social-icon.rss {
    background: #f26522;
}

.social-icon.reddit {
    background: #ff4500;
}

/* ============================================
   Post Card (Horizontal Layout)
   ============================================ */
.post-card {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
    margin-bottom: 2rem;
    height: 300px;
    max-width: 800px;
}

.post-card-link {
    display: flex;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.post-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.post-thumbnail {
    width: 45%;
    height: 100%;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-title {
    font-size: 1.5rem;
    color: #8B4513;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

.post-title a:hover {
    opacity: 0.8;
}

.post-summary {
    color: #333;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.read-more {
    color: #8B4513;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s;
}

.read-more:hover {
    opacity: 0.7;
}

/* No Featured Image */
.post-card.no-image .post-thumbnail {
    display: none;
}

.post-card.no-image .post-content {
    width: 100%;
}

/* ============================================
   Article Page
   ============================================ */
.article-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .article-page {
        grid-template-columns: 1fr;
    }
}

.article-full {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.article-featured-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.article-header {
    padding: 2rem 2rem 0;
}

.article-breadcrumb {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.article-breadcrumb a {
    color: #8B4513;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

.article-breadcrumb span {
    margin: 0 0.5rem;
    color: #999;
}

.article-header .article-title {
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 1rem;
    line-height: 1.3;
    padding-top: 20px;
    padding-bottom: 20px;
}

.article-header .article-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ddd;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.article-author {
    color: #8B4513;
    text-decoration: none;
    font-weight: 500;
}

.article-author:hover {
    text-decoration: underline;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
    align-items: center;
}

.category-tag {
    background: #8B4513;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.3s;
}

.category-tag:hover {
    background: #6d3610;
    color: white;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
}

.tag-link {
    background: #f0f0f0;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.3s;
}

.tag-link:hover {
    background: #e0e0e0;
    color: #333;
}

.share-label {
    font-weight: 700;
    color: #333;
}

.share-btn {
    background: #8B4513;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.share-btn:hover {
    background: #6d3610;
    color: white;
}

.share-icons {
    display: flex;
    gap: 0.75rem;
}

.share-icons .social-icon {
    width: 36px;
    height: 36px;
}

.article-content {
    padding: 1.5rem 2rem 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #8B4513;
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.25rem;
}

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

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

.article-content a {
    color: #8B4513;
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

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

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid #8B4513;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #666;
    font-style: italic;
}

/* WordPress Block Images - Centered */
.article-content .wp-block-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0;
}

.article-content .wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.article-content .wp-block-image figcaption {
    text-align: center;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* Gutenberg Media & Text block */
.article-content .wp-block-media-text {
    display: grid;
    grid-template-columns: 50% 1fr;
    grid-template-rows: auto;
    direction: ltr;
}
.article-content .wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr 50%; }
.article-content .wp-block-media-text.is-vertically-aligned-top > .wp-block-media-text__content,
.article-content .wp-block-media-text.is-vertically-aligned-top > .wp-block-media-text__media { align-self: start; }
.article-content .wp-block-media-text.is-vertically-aligned-center > .wp-block-media-text__content,
.article-content .wp-block-media-text.is-vertically-aligned-center > .wp-block-media-text__media,
.article-content .wp-block-media-text > .wp-block-media-text__content,
.article-content .wp-block-media-text > .wp-block-media-text__media { align-self: center; }
.article-content .wp-block-media-text.is-vertically-aligned-bottom > .wp-block-media-text__content,
.article-content .wp-block-media-text.is-vertically-aligned-bottom > .wp-block-media-text__media { align-self: end; }
.article-content .wp-block-media-text > .wp-block-media-text__media { grid-column: 1; grid-row: 1; margin: 0; }
.article-content .wp-block-media-text > .wp-block-media-text__content { grid-column: 2; grid-row: 1; padding: 0 8%; word-break: break-word; direction: ltr; }
.article-content .wp-block-media-text.has-media-on-the-right > .wp-block-media-text__media { grid-column: 2; grid-row: 1; }
.article-content .wp-block-media-text.has-media-on-the-right > .wp-block-media-text__content { grid-column: 1; grid-row: 1; }
.article-content .wp-block-media-text__media a { display: block; }
.article-content .wp-block-media-text__media img,
.article-content .wp-block-media-text__media video { height: auto; max-width: unset; vertical-align: middle; width: 100%; }
@media (max-width: 600px) {
  .article-content .wp-block-media-text.is-stacked-on-mobile { grid-template-columns: 100% !important; }
  .article-content .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__media { grid-column: 1; grid-row: 1; }
  .article-content .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__content { grid-column: 1; grid-row: 2; }
}

/* ============================================
   Comments Section
   ============================================ */
.comments-section {
    margin-top: 2rem;
    padding: 2rem;
    border-top: 2px solid #ddd;
}

.comment-form-wrapper {
    background: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.comment-form-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #2c3e40;
    margin-bottom: 0.5rem;
}

.comment-note {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

#comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-group .required {
    color: #c33;
}

.form-group input,
.form-group textarea {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B4513;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-btn {
    background-color: #8B4513;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #6d3610;
}

.comments-list {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 20px;
    margin-bottom: 20px;
}

.comments-title {
    font-size: 1.1rem;
    color: #2c3e40;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.comment {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
}

.comment-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: #2c3e40;
}

.comment-date {
    color: #999;
    font-size: 0.85rem;
}

.comment-content {
    color: #444;
    line-height: 1.6;
}

.comment-content p {
    margin: 0;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}

.pagination-btn {
    color: #8B4513;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #8B4513;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background: #8B4513;
    color: white;
}

.page-info {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   Loading & Error States
   ============================================ */
.loading {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #8B4513;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    text-align: center;
    padding: 2rem;
    background: #ffe6e6;
    color: #c33;
    border-radius: 8px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    align-items: center;
}

.footer-nav a {
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: white;
}

/* ============================================
   Mobile Styles (<= 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Header Mobile */
    .header-container {
        justify-content: space-between;
    }
    
    /* Mobile Header Container */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        box-shadow: 0 1px 3px rgba(0,0,0,0.15);
        border-radius: 2px;
    }
    
    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #2c3e40;
        border-radius: 1px;
    }
    
    /* Mobile Logo */
    .logo {
        display: flex;
    }
    
    .logo img {
        max-width: 100px;
        height: auto;
    }
    
    /* Desktop Logo - Hidden on Mobile */
    .desktop-logo {
        display: none;
    }
    
    /* Mobile Navigation */
    .main-nav {
        display: none;
        position: absolute;
        top: 85px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #ddd;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu li {
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 18px;
    }
    
    /* Hide Desktop Search on Mobile */
    .search-container {
        display: none;
    }
    
    /* Mobile Search */
    .mobile-search {
        display: block;
        padding: 1rem 0;
        position: relative;
    }

    .mobile-search .search-form {
        justify-content: center;
    }

    .mobile-search input {
        width: 100%;
        max-width: 280px;
    }

    .mobile-search .search-results {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 300px;
        overflow-y: auto;
        background: white;
        border-radius: 4px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        display: none;
        z-index: 1001;
    }

    .mobile-search .search-results.active {
        display: block;
    }
    
    /* Main Layout - Mobile */
    .main-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    
    /* Post Card - Mobile */
    .post-card {
        flex-direction: column;
        height: auto;
        max-width: 100%;
    }

    .post-card-link {
        flex-direction: column;
        width: 100%;
    }

    .post-thumbnail {
        width: 100%;
        height: 200px;
    }

    .post-content {
        padding: 1.5rem;
    }

    .post-title {
        font-size: 1.25rem;
    }
    
    /* Footer - Mobile */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }
}

/* ========== Cookie Consent ========== */
.cli-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1a1a2e;
  padding: 1rem 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cli-bar-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cli-bar-message {
  flex: 1 1 400px;
  min-width: 280px;
  color: #e0e0e0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.cli-bar-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #a8d8b9;
  margin-top: 2px;
}
.cli-bar-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cli-bar-text > span { color: #ccc; }
.cli-bar-text strong { color: #fff; }
.cli-bar-text a { color: #a8d8b9; text-decoration: none; }
.cli-bar-text a:hover { text-decoration: underline; }
.wt-cli-ccpa-element { margin: 0; }
.cli-ccpa-opt-out {
  color: #aaa !important;
  font-size: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.cli-ccpa-opt-out:hover { color: #fff !important; }
.cli-bar-btn_container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.cli-plugin-button {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}
.cli-settings-btn {
  background: transparent;
  color: #ccc;
  border: 1px solid #444;
}
.cli-settings-btn:hover { background: rgba(255,255,255,0.05); color: #fff; border-color: #666; }
.cli-decline-btn {
  background: transparent;
  color: #ccc;
  border: 1px solid #444;
}
.cli-decline-btn:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: #666; }
.cli-accept-btn {
  background: #2e7d32;
  color: #fff;
  box-shadow: 0 2px 8px rgba(46,125,50,0.3);
}
.cli-accept-btn:hover { background: #1b5e20; box-shadow: 0 4px 12px rgba(46,125,50,0.4); }

.cli-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
.cli-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99999;
  backdrop-filter: blur(2px);
}
.cli-modal-dialog {
  background: #fff;
  border-radius: 12px;
  max-width: 560px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 100001;
  position: relative;
}
.cli-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  border-radius: 12px 12px 0 0;
  z-index: 1;
}
.cli-modal-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a2e;
}
.cli-modal-close {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}
.cli-modal-close:hover { color: #333; }
.cli-modal-content { padding: 0; }
.cli-modal-body { padding: 1.25rem 1.5rem; }
.cli-privacy-overview { margin-bottom: 1rem; }
.cli-privacy-content-text {
  font-size: 13px;
  color: #666;
  line-height: 1.65;
  margin: 0;
}
.cli-necessary-caption {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}
.cli-tab-content { margin-top: 0.5rem; }
.cli-tab-section {
  padding: 0.9rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.cli-tab-section:last-child { border-bottom: none; }
.cli-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.cli-category-info {
  display: flex;
  align-items: center;
  gap: 0;
}
.cli-category-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
}
.cli-category-desc {
  font-size: 12.5px;
  color: #888;
  line-height: 1.55;
}
.cli-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.cli-switch input { opacity: 0; width: 0; height: 0; }
.cli-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}
.cli-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
input:checked + .cli-slider { background-color: #2e7d32; }
input:checked + .cli-slider:before { transform: translateX(18px); }
input:disabled + .cli-slider { opacity: 0.6; cursor: not-allowed; }

.cli-modal-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}
#cli_save_and_exit {
  background: #1a1a2e;
  color: #fff;
  padding: 10px 24px;
  font-size: 14px;
  border-radius: 6px;
}
#cli_save_and_exit:hover { background: #2a2a40; }

@media (max-width: 600px) {
  .cli-bar { padding: 1rem 1rem; }
  .cli-bar-container { flex-direction: column; align-items: stretch; gap: 1rem; }
  .cli-bar-message { flex: none; min-width: 100%; }
  .cli-bar-btn_container {
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }
  .cli-bar-btn_container .cli-plugin-button {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    padding: 10px 12px;
  }
  .cli-modal-dialog { width: 95%; max-height: 90vh; }
  .cli-modal-header { padding: 1rem 1.25rem; }
  .cli-modal-body { padding: 1rem 1.25rem; }
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
}
.pagination-btn {
  padding: 0.5rem 1rem;
  background: var(--color-background, #f5f5f5);
  color: var(--color-text, #333);
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s;
}
.pagination-btn:hover:not(.disabled) {
  opacity: 0.8;
}
.pagination-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}
.page-info {
  color: var(--color-text-light, #666);
  font-size: 0.95rem;
}

/* ========== Recipe Card ========== */
.recipe-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.recipe-image {
  margin-bottom: 1rem;
}
.recipe-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 6px;
}
.recipe-header {
  margin-bottom: 1rem;
}
.recipe-name {
  font-size: 1.4rem;
  color: #2c3e40;
  margin: 0;
}
.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem;
  background: #f8f8f8;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}
.meta-item {
  display: flex;
  flex-direction: column;
}
.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #666;
  font-weight: 600;
}
.meta-value {
  font-size: 1rem;
  color: #2c3e40;
  font-weight: 500;
}
.recipe-ingredients {
  margin-bottom: 1.5rem;
}
.recipe-ingredients h4,
.recipe-instructions h4 {
  font-size: 1.1rem;
  color: #8B4513;
  border-bottom: 2px solid #8B4513;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.recipe-ingredients ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.recipe-ingredients li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 0.5rem;
}
.recipe-ingredients li:last-child {
  border-bottom: none;
}
.ing-amount {
  font-weight: 600;
  color: #8B4513;
  min-width: 80px;
}
.ing-name {
  flex: 1;
}
.ing-notes {
  color: #666;
  font-style: italic;
}
.recipe-instructions ol {
  padding-left: 1.5rem;
  margin: 0;
}
.recipe-instructions li {
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
}
.recipe-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.recipe-tag {
  background: #f0f0f0;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #666;
}

    /* Taxonomy Page */
    .taxonomy-header {
        background: white;
        border-radius: 8px;
        padding: 1.5rem 2rem;
        margin-bottom: 1.5rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .taxonomy-title {
        font-size: 1.75rem;
        color: #8B4513;
        margin: 0;
    }


/* Article content tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.article-content thead {
    background: #f5f5f5;
}
.article-content th {
    font-weight: bold;
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    text-align: inherit;
}
.article-content td {
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    text-align: inherit;
    vertical-align: top;
}
.article-content figcaption.wp-element-caption {
    font-style: italic;
    text-align: center;
    color: #666;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    caption-side: bottom;
}
.wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .article-content th,
    .article-content td {
        padding: 0.4rem 0.5rem;
    }
    .article-content table {
        font-size: 0.9rem;
    }
}