﻿/* ========================================
   🐝 VČELÁRSKA TÉMA – ZÁKLAD
======================================== */

/* Farby */
:root {
    --primary-color: #f4b400;
    --secondary-color: #5a3e1b;
    --light-bg: #fff8f0;
}

/* Body */
body {
    background-color: var(--light-bg);
    color: #333;
    font-family: 'Open Sans', sans-serif;
}

/* ========================================
   🔝 HEADER & MENU – CLEAN FIX
======================================== */

#sp-header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 10px 0;
    display: flex; /* 🔥 FIX: Vertikálne centrovanie celého headeru */
    align-items: center;
}

/* 🐝 LOGO – správne správanie */
.logo-image {
    display: flex;
    align-items: center;
}

.logo-image img {
    max-height: 50px;   /* prispôsobené reálnej výške headeru */
    width: auto;
    display: block;     /* 🔥 kľúčový fix (baseline bug) */
}

/* zarovnanie riadku – NEPREPISUJEME layout */
#sp-header .row {
    align-items: center;
    display: flex !important; /* 🔥 FIX: Aby logo a menu boli v jednej linke */
    justify-content: space-between; /* 🔥 FIX: Logo vľavo, Menu vpravo */
    width: 100%;
}

/* 🔥 MENU doprava – bezpečný spôsob */
.sp-megamenu-parent {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* MENU LINKY */
.sp-megamenu-parent > li > a {
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary-color);
    padding: 10px 15px;
    position: relative;
}

/* Hover */
.sp-megamenu-parent > li:hover > a {
    color: var(--primary-color);
}

/* Aktívne */
.sp-megamenu-parent > li.active > a {
    color: var(--primary-color);
}

/* underline efekt */
.sp-megamenu-parent > li > a::after {
    content: "";
    display: block;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sp-megamenu-parent > li:hover > a::after {
    transform: scaleX(1);
}

/* ========================================
   📱 MOBILNÝ FIX (Pridané k vášmu kódu)
======================================== */
@media (max-width: 991px) {
    /* Skryje textové menu na mobile, aby nezavadzalo hamburgeru */
    .sp-megamenu-parent {
        display: none !important;
    }
    
    /* Vynúti zobrazenie hamburgera vpravo */
    .offcanvas-toggler {
        display: flex !important;
        margin-left: auto;
    }
    
    .burger-icon span {
        background-color: var(--secondary-color) !important;
    }
}

/* ========================================
   🖼️ HERO
======================================== */

.sp-page-title {
    background: linear-gradient(
        rgba(0,0,0,0.4),
        rgba(0,0,0,0.4)
    ),
    url('../images/bee-bg.jpg') center/cover no-repeat;

    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.sp-page-title h2 {
    font-size: 36px;
    font-weight: 700;
}

/* ========================================
   🟡 BUTTONY
======================================== */

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 25px;
}

.btn-primary:hover {
    background-color: #d89c00;
    border-color: #d89c00;
}

/* ========================================
   📝 BLOG - FINÁLNA VERZIA
======================================== */

/* ========================================
   📝 BLOG - FINÁLNA KOMPLETNÁ VERZIA
======================================== */

/* 1. SKRYTIE ŠTÍTKU FEATURED */
span.badge.bg-danger.featured-article-badge { 
    display: none !important; 
}

/* 2. BLOG - KARTY */
.blog .article, .blog-featured .article, .view-category article {
    background: #ffffff !important;
    padding: 30px !important;
    padding-bottom: 80px !important; /* Vytvorí fixné miesto dole pre tlačidlo */
    margin-bottom: 40px !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    border: 1px solid #f0f0f0 !important;
    transition: all 0.3s ease-in-out !important;
    
    position: relative !important; /* Dôležité pre ukotvenie tlačidla */
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* 3. OBRÁZKY - JEDNOTNÁ VÝŠKA */
.article-image, .article-intro-image, .entry-image {
    margin: -30px -30px 25px -30px !important; 
    padding: 0 !important;
    height: 250px !important; 
    overflow: hidden !important;
    border-radius: 15px 15px 0 0 !important;
}

.article-image img, .article-intro-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 4. TLAČIDLO "ČÍTAŤ ĎALEJ" - Fixné zarovnanie na spodok */
.readmore-link, .readmore, .btn-readmore {
    position: absolute !important;
    bottom: 30px !important; /* Presne 30px od spodnej hrany karty */
    left: 30px !important;   /* Zarovnané s textom vľavo */
    margin: 0 !important;
}

.readmore-link a, .btn-readmore, .readmore a {
    display: inline-block !important;
    background-color: #8b4513 !important;
    color: #ffffff !important;
    padding: 10px 25px !important;
    border-radius: 50px !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    font-size: 0.8rem !important;
    text-decoration: none !important;
}

.readmore-link a:hover {
    background-color: #f4b400 !important;
}

/* 5. NADPISY */
.article-header h2 a {
    color: #8b4513 !important;
    font-weight: 700 !important;
    font-size: 1.4rem !important;
}

/* Definitívne skrytie sekcie súvisiacich článkov na stránke KONTAKT */
.itemid-113 .related-article-list-container {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Poistka pre nadpis, ak by bol mimo tohto kontajnera */
.itemid-113 h3.related-article-title {
    display: none !important;
}



/* ========================================
   🖼️ OBRÁZKY
======================================== */

img {
    border-radius: 10px;
}

/* ========================================
   📞 FOOTER
======================================== */

#sp-footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 40px 0;
}

#sp-footer a {
    color: var(--primary-color);
}

#sp-footer a:hover {
    color: #fff;
}

/* ========================================
   🐝 OFF-CANVAS (MOBILNÉ) MENU – FARBY
======================================== */

/* Pozadie celého vysúvacieho panela */
.offcanvas-menu {
    background-color: var(--light-bg) !important;
    color: var(--secondary-color) !important;
}

/* Hlavný kontajner off-canvas */
.offcanvas {
    background-color: var(--light-bg) !important;
}

/* Nadpis a texty v mobilnom menu */
.offcanvas-menu .offcanvas-inner .sp-module .sp-module-title,
.offcanvas-menu .offcanvas-inner .sp-module ul > li > a {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

/* Hover a Aktívna položka v mobilnom menu */
.offcanvas-menu .offcanvas-inner .sp-module ul > li.active > a,
.offcanvas-menu .offcanvas-inner .sp-module ul > li:hover > a {
    color: var(--primary-color) !important;
}

/* Tlačidlo na zavretie menu (X) */
.close-offcanvas {
    color: var(--secondary-color) !important;
}

/* Oddeľovacie čiary medzi položkami (voliteľné) */
.offcanvas-menu .offcanvas-inner .sp-module ul > li {
    border-bottom: 1px solid rgba(90, 62, 27, 0.1);
}

/* ========================================
   🐝 HERO – HLAVNÝ BANNER (Vylepšená verzia)
======================================== */
.hero-section {
    position: relative;
    background: linear-gradient(
        rgba(0,0,0,0.5), /* Mierne tmavší prechod pre lepšiu čitateľnosť textu */
        rgba(0,0,0,0.5)
    ),
    url('../images/bee-bg.jpg') center/cover no-repeat;

    min-height: 550px; /* Mierne navýšené pre lepší dojem na PC */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    
    /* 🍯 Vylepšenie: Spodná medová linka */
    border-bottom: 6px solid var(--primary-color);
}

.hero-content {
    max-width: 800px;
    color: #fff;
    /* 🍯 Vylepšenie: Tieň pod celým blokom textu pre čitateľnosť na fotke */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero-content h1 {
    font-size: 52px; /* Väčší a výraznejší nadpis */
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px; /* Vzdušnejší nadpis pôsobí luxusnejšie */
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 400;
}

/* 🍯 Vylepšenie: Tlačidlo v banneri s efektom */
.hero-content .btn-primary {
    font-size: 18px;
    padding: 15px 40px;
    border-radius: 50px; /* Oválne tlačidlo je teraz trendom */
    background-color: var(--primary-color);
    border: none;
    color: #000 !important;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 180, 0, 0.4);
}

.hero-content .btn-primary:hover {
    transform: translateY(-3px); /* Jemné nadvihnutie pri prejdení myšou */
    background-color: #e5a800;
    box-shadow: 0 8px 25px rgba(244, 180, 0, 0.6);
}

/* 📱 Optimalizácia pre mobilné zariadenia */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 17px;
        margin-bottom: 30px;
    }
    
    .hero-content .btn-primary {
        padding: 12px 30px;
        font-size: 16px;
    }
}



/* ============================================================
   🐝 FINÁLNA OPRAVA BLOGU A KARIET (Joomla 6 & Helix)
============================================================ */
/* ============================================================
   🐝 FINÁLNA OPRAVA BLOGU A KARIET (Joomla 6 & Helix)
============================================================ */

/* 1. SKRYTIE STARÝCH PRVKOV */
.helix-related-articles, h3.related-article-title, .related-article-list-container,
span.badge.bg-danger.featured-article-badge {
    display: none !important;
}

/* 2. HLAVNÝ BLOG (/blog) A MODUL POD ČLÁNKOM - JEDNOTNÝ VZHĽAD */
.blog .article, .view-category article, .mod-articles > li {
    background: #ffffff !important;
    padding: 30px !important;
    margin-bottom: 30px !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    border: 1px solid #f0f0f0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    list-style: none !important; /* Odstráni bodky v module */
}

/* Mriežka pre modul pod článkom */
.mod-articles {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
}

/* 3. OBRÁZKY - ROZTIAHNUTIE K OKRAJOM */
.blog .article-image, .mod-articles img {
    margin: -30px -30px 20px -30px !important;
    width: calc(100% + 60px) !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 15px 15px 0 0 !important;
    display: block !important;
}

/* 4. NADPISY A TEXTY (Oprava modrej na hnedú) */
.blog .article-header h2 a, 
.mod-articles .mod-articles-category-title, 
.mod-articles h4 a {
    color: #8b4513 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* 5. TLAČIDLÁ - OPRAVA POLOHY (Už nebudú v rohu!) */
.readmore, .readmore-link a, .btn-readmore {
    position: relative !important; /* Dôležité: Nesmie byť absolute */
    display: inline-block !important;
    background-color: #8b4513 !important;
    color: #ffffff !important;
    padding: 10px 25px !important;
    border-radius: 50px !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    font-size: 0.8rem !important;
    margin-top: auto !important; /* Odtlačí na spodok karty */
    width: fit-content !important;
    bottom: auto !important;
    left: auto !important;
}

/* Špecifický fix pre tlačidlo v detaile článku */
.view-article #sp-main-body .readmore,
.view-article #sp-main-body .readmore-link {
    position: static !important;
    margin-top: 20px !important;
}

/* 6. RESPONZIVITA */
@media (max-width: 768px) {
    .mod-articles { grid-template-columns: 1fr !important; }
}



/* =========================================
   🍯 ARTICLE + RELATED POSTS – CLEAN HONEY LAYER
   Helix Ultimate safe, bez duplicít a konfliktov
========================================= */

/* =========================================
   1) LINKY V DETAILE ČLÁNKU – MEDOVÉ FARBY
========================================= */

.view-article a,
.view-article a:visited {
    color: #8b4513 !important;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.view-article a:hover,
.view-article a:focus {
    color: #b8742a !important;
    text-decoration: underline;
}

/* Nadpisy odkazov v článku a v odporúčaných článkoch */
.view-article .article-header a,
.view-article .sp-module-content-bottom a,
.view-article .mod-articles-title a,
.view-article .mod-articles-title a:visited {
    color: #8b4513 !important;
    text-decoration: none !important;
}

.view-article .article-header a:hover,
.view-article .sp-module-content-bottom a:hover,
.view-article .mod-articles-title a:hover {
    color: #b8742a !important;
    text-decoration: underline !important;
}

/* =========================================
   2) DETAIL ČLÁNKU – ŠIRŠÍ A ČISTÝ CARD
========================================= */

/* rozšírenie článkovej oblasti iba na detaili článku */
.view-article #sp-main-body .container {
    max-width: 1320px !important;
    width: 100% !important;
}

/* hlavný article card wrapper */
.view-article #sp-component {
    width: 100% !important;
    max-width: 100% !important;
}

/* samotný vizuálny card blok článku */
.view-article .article-details {
    background: #ffffff;
    border: 1px solid rgba(184, 116, 42, 0.12);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.10);
    padding: 40px;
    width: 100%;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.view-article .article-details:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* text */
.view-article .article-details p {
    line-height: 1.8;
    font-size: 1.05rem;
}

/* nadpisy */
.view-article .article-details h1,
.view-article .article-details h2 {
    color: #5a3e1b;
    font-weight: 800;
    margin-bottom: 20px;
}

/* obrázky v článku */
.view-article .article-details img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

/* breadcrumb */
.view-article .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* mobil */
@media (max-width: 768px) {
    .view-article .article-details {
        padding: 22px;
        border-radius: 14px;
    }

    .view-article #sp-main-body .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* =========================================
   3) MOHLO BY VÁS ZAUJÍMAŤ – PREMIUM SECTION
========================================= */

.view-article .sp-module-content-bottom {
    margin-top: 70px;
    padding-top: 45px;
    border-top: 2px solid rgba(184, 116, 42, 0.15);
}

.view-article .sp-module-content-bottom .sp-module-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #5a3e1b;
    margin-bottom: 25px;
    position: relative;
    padding-left: 18px;
}

.view-article .sp-module-content-bottom .sp-module-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 5px;
    height: 70%;
    background: #b8742a;
    border-radius: 10px;
}

/* =========================================
   4) RELATED ARTICLES GRID – TVRDÝ FIX 3 STĹPCE
========================================= */

.view-article .sp-module-content-bottom .mod-articles-items {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;
    padding: 20px !important;
    margin: 0 !important;
    list-style: none !important;
    background: linear-gradient(to bottom, #fff 0%, #fcfaf7 100%);
    border-radius: 18px;
}

/* Joomla LI reset */
.view-article .sp-module-content-bottom .mod-articles-items > li {
    display: flex !important;
    width: auto !important;
    float: none !important;
    list-style: none !important;
}

/* karta */
.view-article .sp-module-content-bottom .mod-articles-item {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
    border: 1px solid rgba(184, 116, 42, 0.12);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.view-article .sp-module-content-bottom .mod-articles-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    border-color: rgba(184, 116, 42, 0.25);
}

/* obrázok */
.view-article .sp-module-content-bottom .mod-articles-image {
    margin: 0 !important;
    height: 200px;
    overflow: hidden;
    float: none !important;
}

.view-article .sp-module-content-bottom .mod-articles-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.view-article .sp-module-content-bottom .mod-articles-item:hover .mod-articles-image img {
    transform: scale(1.05);
}

/* obsah */
.view-article .sp-module-content-bottom .mod-articles-item-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* titulok */
.view-article .sp-module-content-bottom .mod-articles-title {
    margin-bottom: 10px;
}

.view-article .sp-module-content-bottom .mod-articles-title a {
    display: block;
    color: #5a3e1b !important;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;
}

.view-article .sp-module-content-bottom .mod-articles-title a:hover {
    color: #b8742a !important;
    text-decoration: underline !important;
}

/* text */
.view-article .sp-module-content-bottom .mod-articles-item p {
    font-size: 0.95rem;
    color: #6b5a48;
    line-height: 1.6;
    padding: 0 0 10px 0;
    margin: 0;
}

/* readmore */
.view-article .sp-module-content-bottom .readmore {
    margin-top: auto;
    padding: 10px 0 0 0;
    position: static !important;
}

.view-article .sp-module-content-bottom .readmore a {
    color: #b8742a !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
}

.view-article .sp-module-content-bottom .readmore a:hover {
    color: #ffffff !important; /* Text bude biely */
    text-decoration: underline !important; 
    opacity: 0.8; /* tlačidlo jemne zbledne, aby bol hover efekt živší */
}


/* =========================================
   5) ŠTÝLOVANIE TIPOV (BLOCKQUOTE)
========================================= */

.view-article .article-details blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    background: #fffcf5; /* Veľmi jemný medový nádych */
    border-left: 5px solid #b8742a; /* Výrazná medová linka na boku */
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(184, 116, 42, 0.05);
    position: relative;
}

.view-article .article-details blockquote p {
    margin: 0 !important;
    font-style: italic;
    color: #5a3e1b;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Voliteľné: Pridanie ikonky úvodzoviek alebo včielky pred text */
.view-article .article-details blockquote::before {
    content: "💡"; /* Alebo použi 🍯 */
    position: absolute;
    top: -15px;
    left: -10px;
    background: #fff;
    border: 1px solid rgba(184, 116, 42, 0.2);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}





/* =========================================
   6) RESPONSIVE
========================================= */

@media (max-width: 992px) {
    .view-article .sp-module-content-bottom .mod-articles-items {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 576px) {
    .view-article .sp-module-content-bottom .mod-articles-items {
        grid-template-columns: 1fr !important;
    }

    .view-article .sp-module-content-bottom .mod-articles-image {
        height: 220px;
    }
}









/* Definitívne skrytie sekcie "Mohlo by Vás zaujímať" iba na stránke BLOGU */
.view-category #sp-main-body .sp-module {
    display: none !important;
}

/* Ak by tam náhodou ostal prázdny biely priestor, toto ho vyčistí */
.view-category .com-content-category-blog .sp-module {
    display: none !important;
}

/* Vypnutie modulu "Mohlo by Vás zaujímať" podľa ID na stránke blogu */
.view-category #mod-articles-category-229,
.view-category .sp-module:has(#mod-articles-category-229),
.view-category .sp-column > div:last-child .sp-module {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Alternatívny spôsob cez kontajner blogu */
.blog-featured + .sp-module,
.com-content-category-blog + .sp-module,
.com-content-category-blog .sp-module {
    display: none !important;
}
