/*
Theme Name: ECAV Batizovce
Theme URI: https://ecavbatizovce.sk
Author: Cirkevný zbor ECAV Batizovce
Description: Moderná, prehľadná a ľahko spravovateľná WordPress šablóna pre Cirkevný zbor ECAV Batizovce – Gerlachov. Navrhnutá pre jednoduchú správu cez Classic Editor, s automatickým archívom histórie oznamov a podporou starších aj nových kázní (ACF + Classic Editor).
Version: 1.0.0
License: GPL v2 or later
Text Domain: ecav-batizovce
*/

html {
    scroll-behavior: smooth;
}

.hero-bg {
    background-image: linear-gradient(to bottom, rgba(30, 64, 175, 0.72), rgba(15, 23, 42, 0.88)), url('https://ecavbatizovce.sk/wp-content/uploads/2023/04/DSC03583-HDR-2048x1365.png');
    background-size: cover;
    background-position: center;
}

@media (min-width: 1024px) {
    .hero-bg {
        padding-top: 8rem !important;
        padding-bottom: 8rem !important;
    }
}

/* Classic Editor Content Styling (.entry-content) */
.entry-content {
    color: #1F2937;
    line-height: 1.8;
    font-size: 1.05rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: 'Lora', Georgia, serif;
    color: #1E40AF;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
    line-height: 1.35;
}

.entry-content h2 { font-size: 1.65rem; }
.entry-content h3 { font-size: 1.35rem; }
.entry-content h4 { font-size: 1.15rem; }

.entry-content p {
    margin-bottom: 1.1rem;
}

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

.entry-content ul { list-style-type: disc; }
.entry-content ol { list-style-type: decimal; }

.entry-content li {
    margin-bottom: 0.4rem;
}

.entry-content a {
    color: #1E40AF;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.entry-content a:hover {
    color: #F97316;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.25rem 0;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.08);
}

.entry-content hr {
    border: 0;
    border-top: 1px solid #E5E7EB;
    margin: 1.5rem 0;
}

.entry-content blockquote {
    border-left: 4px solid #1E40AF;
    background-color: #F3F4F6;
    color: #1F2937;
    padding: 1rem 1.25rem;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    margin: 1.5rem 0;
}

/* WordPress Classic Gallery support */
.entry-content .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.entry-content .gallery-item {
    margin: 0;
}

.entry-content .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid #e7e5e4 !important;
    margin: 0;
}

.entry-content iframe,
.entry-content video,
.entry-content audio {
    max-width: 100%;
    border-radius: 0.75rem;
}

/* Navigation Menu Dropdowns for wp_nav_menu */
.primary-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1F2937;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    text-decoration: none;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a {
    color: #1E40AF;
    background-color: #F3F4F6;
    font-weight: 600;
}

.primary-menu > li.menu-item-has-children > a::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.65rem;
    opacity: 0.65;
    margin-left: 0.15rem;
}

.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    padding: 0.5rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.18s ease;
    z-index: 60;
}

.primary-menu > li:hover > .sub-menu,
.primary-menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu .sub-menu li a {
    display: block;
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
    color: #1F2937;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.primary-menu .sub-menu li a:hover,
.primary-menu .sub-menu li.current-menu-item > a {
    background-color: #F3F4F6;
    color: #1E40AF;
    font-weight: 600;
}

/* Mobile menu styling */
.mobile-menu-list,
.mobile-menu-list .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li a {
    display: block;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1F2937;
    border-radius: 0.5rem;
    text-decoration: none;
}

.mobile-menu-list li a:hover {
    background-color: #F3F4F6;
    color: #1E40AF;
}

.mobile-menu-list .sub-menu {
    padding-left: 1rem;
    border-left: 2px solid #E5E7EB;
    margin-left: 0.75rem;
}

.mobile-menu-list .sub-menu li a {
    font-size: 0.875rem;
    color: #4B5563;
    padding: 0.45rem 0.75rem;
}

/* Gallery Hover & Lightbox Cursor */
.entry-content .gallery-item a,
.entry-content .gallery-item img,
.entry-content a.glightbox,
.entry-content img.cursor-zoom-in {
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.entry-content .gallery-item:hover img {
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* GLightbox Custom Styling (ECAV Theme) */
.goverlay {
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: blur(6px);
}
.gprev, .gnext, .gclose {
    background-color: rgba(30, 64, 175, 0.75) !important;
    border-radius: 9999px !important;
    transition: all 0.2s ease !important;
}
.gprev:hover, .gnext:hover, .gclose:hover {
    background-color: #F97316 !important;
    transform: scale(1.08);
}
.gslide-title {
    font-family: 'Lora', serif !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
}
.gslide-desc {
    font-family: 'Inter', sans-serif !important;
    color: #E2E8F0 !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

/* ==========================================================================
   Verš dňa (.daily-verse-container) - Prémiový cirkevný dizajn
   ========================================================================== */
.daily-verse-section {
    position: relative;
    padding: 2.25rem 0 2rem;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    border-bottom: 1px solid #E2E8F0;
}

.daily-verse-container {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.5rem;
    padding: 2.25rem 2rem 2rem;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 10px 30px -5px rgba(30, 64, 175, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.daily-verse-container:hover {
    box-shadow: 0 16px 36px -6px rgba(30, 64, 175, 0.11);
}

/* Horný ozdobný trojfarebný akcent */
.daily-verse-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E40AF 0%, #EAB308 50%, #1E40AF 100%);
}

/* Hlavička s badge Verš dňa */
.daily-verse-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 1rem;
}

.daily-verse-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1.1rem;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.daily-verse-badge i {
    color: #EAB308;
    font-size: 0.85rem;
}

.daily-verse-edit-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 0.5rem;
    background: #F1F5F9;
    color: #64748B;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.daily-verse-edit-btn:hover {
    background: #1E40AF;
    color: #FFFFFF;
}

/* Veľká dekoratívna úvodzovka */
.daily-verse-quote-mark {
    font-family: 'Lora', Georgia, serif;
    font-size: 3rem;
    line-height: 1;
    color: #EAB308;
    opacity: 0.85;
    margin-bottom: -0.5rem;
}

/* Hlavný text verša (Content) */
.daily-verse-content {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.35rem;
    line-height: 1.8;
    color: #0F172A;
    font-style: italic;
    font-weight: 500;
    max-width: 48rem;
    margin: 0.75rem auto 1.25rem;
}

.daily-verse-content p {
    margin-bottom: 0.5rem;
}

.daily-verse-content p:last-child {
    margin-bottom: 0;
}

/* Citácia z post meta */
.daily-verse-citation {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1E40AF;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.25rem 0.75rem;
}

.daily-verse-citation::before,
.daily-verse-citation::after {
    content: "";
    display: inline-block;
    width: 1.75rem;
    height: 2px;
    background: #EAB308;
    border-radius: 1px;
}

/* Voliteľný komentár z post meta */
.daily-verse-commentary {
    margin-top: 1.75rem;
    padding: 1.25rem 1.5rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: 3px solid #1E40AF;
    border-radius: 0.875rem;
    text-align: left;
}

.daily-verse-commentary-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1E40AF;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.daily-verse-commentary-title i {
    color: #EAB308;
    font-size: 0.8rem;
}

.daily-verse-commentary-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #334155;
}

@media (max-width: 640px) {
    .daily-verse-container {
        padding: 1.75rem 1.25rem 1.5rem;
        border-radius: 1.25rem;
    }
    .daily-verse-content {
        font-size: 1.15rem;
        line-height: 1.65;
    }
    .daily-verse-citation {
        font-size: 0.9rem;
    }
    .daily-verse-citation::before,
    .daily-verse-citation::after {
        width: 1rem;
    }
}

