/*
Theme Name: Kadence Child - Krabičkovka
Template: kadence
Version: 1.0
Description: Professional design for Krabičkovka.cz
*/

/* ============================================
   GLOBAL PROFESSIONAL STYLING
   ============================================ */

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3b82f6;
}

/* ============================================
   PROVIDER SINGLE PAGE
   ============================================ */

.provider-rating {
    font-size: 32px !important;
    margin: 20px 0 !important;
}

.provider-quick-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    padding: 35px !important;
    border-radius: 20px !important;
    margin: 35px 0 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    border: 3px solid #93c5fd !important;
}

.provider-quick-info .info-box {
    background: white;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s;
}

.provider-quick-info .info-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.special-offer {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%) !important;
    border-left: 6px solid #f59e0b !important;
    padding: 25px 30px !important;
    margin: 30px 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    font-size: 17px !important;
}

.provider-contact {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%) !important;
    padding: 35px !important;
    border-radius: 20px !important;
    margin: 35px 0 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
    border: 3px solid #60a5fa !important;
}


/* ============================================
   ARCHIVE PAGES
   ============================================ */

.archive-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 70px 40px !important;
    text-align: center !important;
    margin-bottom: 60px !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    position: relative;
    overflow: hidden;
}

.archive-header h1 {
    font-size: 48px !important;
    font-weight: 900 !important;
    margin-bottom: 18px !important;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.archive-header p {
    font-size: 22px !important;
    opacity: 0.95;
}

.stat-box {
    padding: 35px !important;
    border-radius: 18px !important;
    text-align: center !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.stat-box:hover {
    transform: translateY(-10px) scale(1.03) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.stat-box > div:first-child {
    font-size: 48px !important;
    font-weight: 900 !important;
    margin-bottom: 10px !important;
}



.lead-form-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    padding: 60px 40px !important;
    border-radius: 24px !important;
    margin: 60px 0 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.lead-form-section h2 {
    font-size: 36px !important;
    font-weight: 800 !important;
    margin-bottom: 22px !important;
}


/* ============================================
   COMPARISON PAGE ENHANCEMENTS
   ============================================ */

/* Page Header */
.page-id-5 .entry-hero,
.page-id-5 .entry-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 60px 40px !important;
    border-radius: 20px !important;
    margin-bottom: 40px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

.page-id-5 .entry-header .entry-title,
.page-id-5 .entry-title {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    margin-bottom: 15px !important;
}

/* Quick Links Section */
.page-id-5 .entry-content > div[style*="background: #e7f3ff"] {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    padding: 35px !important;
    border-radius: 18px !important;
    border: 3px solid #93c5fd !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s !important;
}

.page-id-5 .entry-content > div[style*="background: #e7f3ff"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15) !important;
}

.page-id-5 .entry-content > div[style*="background: #e7f3ff"] h3 {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    color: #1e40af !important;
}

.page-id-5 .entry-content > div[style*="background: #e7f3ff"] ul {
    margin: 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.page-id-5 .entry-content > div[style*="background: #e7f3ff"] li {
    margin: 12px 0 !important;
    font-size: 16px !important;
}

.page-id-5 .entry-content > div[style*="background: #e7f3ff"] a {
    color: #667eea !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
}

.page-id-5 .entry-content > div[style*="background: #e7f3ff"] a:hover {
    color: #764ba2 !important;
    text-decoration: underline !important;
}

/* Form Section Enhancement */
.page-id-5 #poptavka {
    background: white !important;
    padding: 35px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07) !important;
}

/* FAQ Section */
.page-id-5 .entry-content > div[style*="background: #f8f9fa"] {
    background: white !important;
    padding: 28px !important;
    margin: 24px 0 !important;
    border-radius: 16px !important;
    border-left: 6px solid #667eea !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07) !important;
    transition: all 0.3s !important;
}

.page-id-5 .entry-content > div[style*="background: #f8f9fa"]:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15) !important;
    border-left-color: #764ba2 !important;
}

.page-id-5 .entry-content > div[style*="background: #f8f9fa"] h4 {
    color: #667eea !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}

.page-id-5 .entry-content > div[style*="background: #f8f9fa"] p {
    color: #4b5563 !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

/* ============================================
   BLOG ARCHIVE PAGE
   ============================================ */

/* Blog Page Header */
.blog .entry-hero,
.archive .entry-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 40px;
    text-align: center;
    margin-bottom: 60px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.blog .entry-hero .entry-hero-container-inner h1,
.archive .entry-hero .entry-hero-container-inner h1 {
    color: white !important;
    font-size: 48px !important;
    font-weight: 900 !important;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px !important;
}

.blog .entry-hero .entry-hero-container-inner .archive-description,
.archive .entry-hero .entry-hero-container-inner .archive-description {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Grid Layout */
.blog .content-wrap,
.archive .content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog .site-main,
.archive .site-main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* Blog Post Cards */
.blog article.entry,
.archive article.entry {
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog article.entry:hover,
.archive article.entry:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Featured Image */
.blog article.entry .post-thumbnail,
.archive article.entry .post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog article.entry .post-thumbnail img,
.archive article.entry .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.blog article.entry:hover .post-thumbnail img,
.archive article.entry:hover .post-thumbnail img {
    transform: scale(1.08);
}

/* No Featured Image Placeholder */
.blog article.entry:not(.entry-has-thumbnail) .post-thumbnail::before,
.archive article.entry:not(.entry-has-thumbnail) .post-thumbnail::before {
    content: "📝";
    font-size: 64px;
    opacity: 0.3;
}

/* Hide empty thumbnail containers */
.blog article.entry .post-thumbnail:empty,
.archive article.entry .post-thumbnail:empty {
    display: none;
}

/* Card Content */
.blog article.entry .entry-content-wrap,
.archive article.entry .entry-content-wrap {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog article.entry .entry-header,
.archive article.entry .entry-header {
    margin-bottom: 15px;
}

.blog article.entry .entry-title,
.archive article.entry .entry-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
}

.blog article.entry .entry-title a,
.archive article.entry .entry-title a {
    color: #1f2937 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.blog article.entry .entry-title a:hover,
.archive article.entry .entry-title a:hover {
    color: #667eea !important;
}

/* Entry Meta */
.blog article.entry .entry-meta,
.archive article.entry .entry-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
}

.blog article.entry .entry-meta .updated,
.archive article.entry .entry-meta .updated {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Entry Excerpt */
.blog article.entry .entry-content,
.archive article.entry .entry-content {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog article.entry .entry-content p,
.archive article.entry .entry-content p {
    margin-bottom: 15px;
}

/* Read More Link */
.blog article.entry .entry-content-wrap .entry-content a,
.archive article.entry .entry-content-wrap .entry-content a {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.blog article.entry .entry-content-wrap .entry-content a:hover,
.archive article.entry .entry-content-wrap .entry-content a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Pagination */
.blog .site-main + nav.pagination,
.archive .site-main + nav.pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px;
}

.blog nav.pagination .nav-links,
.archive nav.pagination .nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.blog nav.pagination a,
.archive nav.pagination a,
.blog nav.pagination span.current,
.archive nav.pagination span.current {
    padding: 12px 20px;
    background: white;
    border-radius: 10px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.blog nav.pagination a:hover,
.archive nav.pagination a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.blog nav.pagination span.current,
.archive nav.pagination span.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* ============================================
   BLOG SINGLE POST
   ============================================ */

.single-post .entry-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.single-post .entry-hero .entry-title {
    color: white !important;
    font-size: 42px !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    margin: 0 auto 20px !important;
}

.single-post .entry-hero .entry-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.single-post .entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-post .entry-content h2 {
    color: #667eea;
    font-size: 32px;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e5e7eb;
}

.single-post .entry-content h3 {
    color: #764ba2;
    font-size: 24px;
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 15px;
}

.single-post .entry-content p {
    color: #4b5563;
    line-height: 1.8;
    font-size: 17px;
    margin-bottom: 20px;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.single-post .entry-content li {
    color: #4b5563;
    line-height: 1.8;
    font-size: 17px;
    margin-bottom: 12px;
}

.single-post .entry-content strong {
    color: #1f2937;
    font-weight: 700;
}

/* ============================================
   HOMEPAGE SPACING OPTIMIZATION
   ============================================ */

/* Reduce excessive spacing on homepage - Very specific selectors with !important */
.home .entry-content > div {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

.home .entry-content > .hero-section,
.home .entry-content > div.hero-section {
    padding: 40px 30px !important;
    margin-top: 0 !important;
    margin-bottom: 30px !important;
}

.home .entry-content > h2 {
    margin-top: 30px !important;
    margin-bottom: 20px !important;
}

/* Target the call-to-action section specifically */
.home .entry-content > div[style*="padding: 60px"],
.home .entry-content > div[style*="background: linear-gradient(135deg, #10b981"] {
    padding: 35px 25px !important;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
}

/* Reduce first section top margin */
.home .entry-content > :first-child {
    margin-top: 0 !important;
}

/* Optimize wrapper padding */
.home .entry-content-wrap {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* Compact grid sections */
.home .entry-content > div > div[style*="display: grid"] {
    gap: 20px !important;
    margin: 15px 0 !important;
}

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

@media (max-width: 768px) {
    /* Archive Pages */
    .archive-header h1 {
        font-size: 34px !important;
    }

    .stat-box > div:first-child {
        font-size: 36px !important;
    }

    /* Comparison Page */
    .page-id-5 .entry-header {
        padding: 40px 25px;
    }

    .page-id-5 .entry-content > div[style*="background: #e7f3ff"] {
        padding: 25px !important;
    }

    /* Blog */
    .blog .entry-hero,
    .archive .entry-hero {
        padding: 50px 25px;
    }

    .blog .entry-hero .entry-hero-container-inner h1,
    .archive .entry-hero .entry-hero-container-inner h1 {
        font-size: 34px !important;
    }

    .blog .site-main,
    .archive .site-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog article.entry .post-thumbnail,
    .archive article.entry .post-thumbnail {
        height: 200px;
    }

    .blog article.entry .entry-content-wrap,
    .archive article.entry .entry-content-wrap {
        padding: 25px;
    }

    .blog article.entry .entry-title,
    .archive article.entry .entry-title {
        font-size: 22px !important;
    }

    /* Single Post */
    .single-post .entry-hero {
        padding: 40px 25px;
    }

    .single-post .entry-hero .entry-title {
        font-size: 32px !important;
    }

    .single-post .entry-content h2 {
        font-size: 26px;
    }

    .single-post .entry-content h3 {
        font-size: 20px;
    }
}

/* ============================================
   PROVIDER & TAXONOMY PAGES WIDTH FIX
   ============================================ */

/* Provider Single Page */
.single-provider .content-wrap,
.single-provider .entry-content-wrap {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
}

/* City Taxonomy Pages */
.tax-city .content-wrap {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
}

/* Diet Type Taxonomy Pages */
.tax-diet_type .content-wrap {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
}

/* Ensure inner content respects max-width */
.single-provider article,
.tax-city .site-main,
.tax-diet_type .site-main {
    max-width: 100% !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .single-provider .content-wrap,
    .single-provider .entry-content-wrap,
    .tax-city .content-wrap,
    .tax-diet_type .content-wrap {
        padding: 0 20px !important;
    }
}
