/* Blog Page Styles */

/* Article content typography */
.blog-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.blog-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #cbd5e1;
}

.blog-content h2:first-child {
    margin-top: 0;
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 2rem 0 0.75rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #374151;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.75rem;
}

.blog-content ul {
    list-style-type: disc;
}

.blog-content ol {
    list-style-type: decimal;
}

.blog-content li {
    margin-bottom: 0.625rem;
    line-height: 1.8;
    color: #374151;
}

.blog-content a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-color: #93c5fd;
    text-underline-offset: 2px;
    transition: color 0.15s, text-decoration-color 0.15s;
}

.blog-content a:hover {
    color: #1d4ed8;
    text-decoration-color: #2563eb;
}

.blog-content blockquote {
    border-left: 4px solid #2563eb;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #eff6ff;
    border-radius: 0 0.5rem 0.5rem 0;
    color: #1e40af;
    font-style: italic;
}

.blog-content strong {
    font-weight: 600;
    color: #111827;
}

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

/* Blog post card */
.blog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.15), 0 4px 8px -2px rgba(0, 0, 0, 0.08);
    border-color: #bfdbfe;
}

.blog-card:focus-within {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Blog card image - fixed height for consistent listing cards */
.blog-card img {
    object-fit: cover;
    width: 100%;
    height: 12rem;
}

/* Category badge */
.blog-category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-category-tipy {
    background: #dbeafe;
    color: #1e40af;
}

.blog-category-destinace {
    background: #d1fae5;
    color: #065f46;
}

.blog-category-slevy {
    background: #fee2e2;
    color: #991b1b;
}

.blog-category-rady {
    background: #fef3c7;
    color: #92400e;
}

.blog-category-novinky {
    background: #e0e7ff;
    color: #3730a3;
}

/* FAQ section styling */
.blog-faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem 0;
    transition: background-color 0.15s;
}

.blog-faq-item:hover {
    background-color: #f3f4f6;
}

.blog-faq-item:last-child {
    border-bottom: none;
}

.blog-faq-question {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.blog-faq-answer {
    color: #4b5563;
    line-height: 1.8;
}

/* Breadcrumbs */
.blog-breadcrumbs {
    padding: 0.75rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.blog-breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s;
}

.blog-breadcrumbs a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Sidebar widget for blog */
.blog-sidebar-widget {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.blog-sidebar-widget h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2563eb;
}

/* Newsletter CTA sidebar widget */
.blog-sidebar-newsletter {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 1.5rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.blog-sidebar-newsletter h4 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.blog-sidebar-newsletter p {
    color: rgba(255, 255, 255, 0.9);
}

.blog-sidebar-newsletter a {
    display: block;
    text-align: center;
    background: white;
    color: #1e40af;
    border: 2px solid white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.blog-sidebar-newsletter a:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hotel deal card within blog */
.blog-deal-card {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

.blog-deal-card:hover {
    background: #dbeafe;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.blog-deal-card:focus-within {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Affiliate disclosure */
.blog-affiliate-disclosure {
    font-size: 0.875rem;
    color: #5b6370;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 2rem;
    line-height: 1.6;
}

/* Line clamp utility (not in compiled Tailwind) */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   TABLE STYLING
   ============================================ */

/* Base table */
.blog-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    font-size: 0.9375rem;
}

/* Table caption */
.blog-content table caption {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    text-align: left;
    padding: 0.875rem 1rem;
    background: #f9fafb;
    border-bottom: 2px solid #cbd5e1;
    caption-side: top;
}

/* Table header */
.blog-content thead {
    background: linear-gradient(180deg, #1e40af 0%, #2563eb 100%);
}

.blog-content thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: white;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-content thead th:last-child {
    border-right: none;
}

/* Table body cells */
.blog-content tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    line-height: 1.5;
}

/* Zebra striping */
.blog-content tbody tr:nth-child(even) {
    background: #f9fafb;
}

/* Row hover */
.blog-content tbody tr {
    transition: background-color 0.15s ease;
}

.blog-content tbody tr:hover {
    background-color: #eff6ff;
}

/* Last row */
.blog-content tbody tr:last-child td {
    border-bottom: none;
}

/* Bold text in cells */
.blog-content td strong {
    font-weight: 600;
    color: #1f2937;
}

/* Links within tables */
.blog-content td a {
    text-decoration-color: #93c5fd;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .blog-content {
        font-size: 1rem;
    }

    .blog-content h2 {
        font-size: 1.35rem;
        margin: 2rem 0 0.75rem;
    }

    .blog-content h3 {
        font-size: 1.15rem;
        margin: 1.5rem 0 0.625rem;
    }

    .blog-content p {
        margin-bottom: 1.25rem;
    }

    .blog-sidebar-widget {
        margin-bottom: 1rem;
    }

    /* Table mobile: horizontal scroll */
    .blog-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 0;
        margin: 1.5rem 0;
    }

    .blog-content table caption {
        font-size: 0.875rem;
        padding: 0.75rem 0.875rem;
    }

    .blog-content thead th {
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .blog-content tbody td {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
        min-width: 80px;
    }
}
