/* ============================================
   BLOG STÍLUSOK - blog.css
   Osztályok blog_ prefixszel
   ============================================ */

/* --- Blog Hero --- */
.blog_hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* --- Breadcrumb --- */
.blog_breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.blog_breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog_breadcrumb a:hover {
    color: #1f6040;
}

.blog_breadcrumb .material-symbols-outlined {
    font-size: 0.75rem;
    color: #cbd5e1;
}

/* --- Featured Card --- */
.blog_featured_card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog_featured_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.blog_featured_image {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog_featured_card:hover .blog_featured_image {
    transform: scale(1.05);
}

/* --- Blog Cards --- */
.blog_card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.blog_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1f6040, #e67e22);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 10;
}

.blog_card:hover::before {
    transform: scaleX(1);
}

.blog_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog_card_image {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog_card:hover .blog_card_image {
    transform: scale(1.08);
}

/* Line clamp for excerpts */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- CTA Box --- */
.blog_cta_box {
    position: relative;
    overflow: hidden;
}

.blog_cta_box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* --- Service Links --- */
.blog_service_link {
    transition: all 0.3s ease;
}

.blog_service_link:hover {
    transform: translateX(5px);
    background-color: #f0fdf4;
}

.blog_service_link:hover .material-symbols-outlined {
    transform: scale(1.1);
}

/* --- Article Content (for blog posts) --- */
.blog_article_content {
    max-width: 800px;
    margin: 0 auto;
}

.blog_article_content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #1e293b;
    scroll-margin-top: 100px;
}

.blog_article_content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #334155;
    scroll-margin-top: 100px;
}

.blog_article_content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #475569;
}

.blog_article_content ul,
.blog_article_content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog_article_content ul {
    list-style-type: disc;
}

.blog_article_content ol {
    list-style-type: decimal;
}

.blog_article_content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #475569;
}

.blog_article_content img {
    width: 100%;
    border-radius: 1rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog_article_content a {
    color: #1f6040;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.blog_article_content a:hover {
    color: #e67e22;
}

.blog_article_content blockquote {
    background: #f0fdf4;
    border-left: 4px solid #1f6040;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: #166534;
}

.blog_article_content strong {
    color: #1e293b;
    font-weight: 600;
}

/* --- Table of Contents --- */
.blog_toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.blog_toc h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f6040;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog_toc ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.blog_toc li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    margin: 0 !important;
}

.blog_toc li:last-child {
    border-bottom: none;
}

.blog_toc a {
    color: #475569 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: block;
}

.blog_toc a:hover {
    color: #1f6040 !important;
    padding-left: 0.5rem;
}

/* --- Info Boxes --- */
.blog_info_box {
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.blog_info_box.blog_info_blue {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
}

.blog_info_box.blog_info_yellow {
    background: #fefce8;
    border: 1px solid #fde047;
}

.blog_info_box.blog_info_green {
    background: #f0fdf4;
    border: 1px solid #86efac;
}

.blog_info_box.blog_info_red {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.blog_info_box h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog_info_box p {
    margin: 0 !important;
    color: #475569;
}

/* --- Comparison Table --- */
.blog_comparison_table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog_comparison_table th,
.blog_comparison_table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.blog_comparison_table th {
    background: #f8fafc;
    font-weight: 700;
    color: #1e293b;
}

.blog_comparison_table .blog_table_highlight {
    background: rgba(31, 96, 64, 0.1);
}

.blog_comparison_table tbody tr {
    transition: all 0.3s ease;
}

.blog_comparison_table tbody tr:hover {
    background-color: rgba(31, 96, 64, 0.05);
}

/* --- Author Box --- */
.blog_author_box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 1rem;
    margin: 2rem 0;
}

.blog_author_avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(31, 96, 64, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f6040;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.blog_author_info h4 {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.blog_author_info p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0 !important;
}

/* --- Related Posts --- */
.blog_related_posts {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.blog_related_posts h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

/* --- Reading Progress Bar --- */
.blog_progress_bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #1f6040, #e67e22);
    z-index: 100;
    width: 0%;
    transition: width 0.1s ease;
}

/* --- Share Buttons --- */
.blog_share_buttons {
    display: flex;
    gap: 0.75rem;
    margin: 2rem 0;
}

.blog_share_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.3s ease;
}

.blog_share_btn:hover {
    background: #1f6040;
    color: white;
    transform: translateY(-3px);
}

/* --- FAQ Section --- */
.blog_faq_item {
    background: #f8fafc;
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog_faq_item summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.blog_faq_item summary:hover {
    color: #1f6040;
    background-color: #f0fdf4;
}

.blog_faq_item summary::-webkit-details-marker {
    display: none;
}

.blog_faq_item summary .material-symbols-outlined {
    transition: transform 0.3s ease;
}

.blog_faq_item[open] summary .material-symbols-outlined {
    transform: rotate(180deg);
}

.blog_faq_item > div {
    padding: 0 1.5rem 1.5rem;
}

.blog_faq_item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* --- Price Highlight --- */
.blog_price_highlight {
    background: linear-gradient(135deg, #1f6040 0%, #174832 100%);
    color: white;
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 15px 40px rgba(31, 96, 64, 0.3);
}

.blog_price_highlight .blog_price_value {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.blog_price_highlight .blog_price_unit {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .blog_featured_card .grid {
        grid-template-columns: 1fr;
    }
    
    .blog_card:hover {
        transform: translateY(-4px);
    }
    
    .blog_article_content h2 {
        font-size: 1.5rem;
    }
    
    .blog_article_content h3 {
        font-size: 1.125rem;
    }
    
    .blog_author_box {
        flex-direction: column;
        text-align: center;
    }
    
    .blog_price_highlight .blog_price_value {
        font-size: 2.5rem;
    }
}

/* --- Print Styles --- */
@media print {
    .blog_hero,
    .blog_cta_box,
    .blog_share_buttons,
    .blog_progress_bar,
    .blog_related_posts,
    header,
    footer {
        display: none !important;
    }
    
    .blog_article_content {
        max-width: 100%;
    }
}

/* ============================================
   FIX: Blog article content visibility
   (scripts.js opacity:0 animáció felülírása)
   ============================================ */
.blog_article_content,
.blog_article_content > h2,
.blog_article_content > h3,
.blog_article_content > p,
.blog_article_content > ul,
.blog_article_content > ol,
.blog_article_content > li,
.blog_article_content > img,
.blog_article_content > blockquote,
.blog_article_content > table {
    opacity: 1 !important;
    transform: none !important;
}

.blog_related_posts,
.blog_toc,
.blog_author_box,
.blog_cta_box,
.blog_info_box,
.blog_faq_item,
.blog_price_highlight,
.blog_comparison_table,
.blog_share_buttons {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Article wrapper fix */
article:has(.blog_article_content) {
    opacity: 1 !important;
    transform: none !important;
}

/* Sidebar fix */
aside:has(.blog_toc) {
    opacity: 1 !important;
    transform: none !important;
}

/* Teljes blog article section fix */
article.py-12,
article[class*="py-12"] {
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================
   FIX: CTA Box szövegek és gombok
   ============================================ */
.blog_cta_box h3,
.blog_cta_box p {
    color: white !important;
}

.blog_cta_box p {
    opacity: 0.9 !important;
}

/* CTA Box gombok - nincs aláhúzás */
.blog_cta_box a {
    text-decoration: none !important;
}