/* ============================================
   PAM PAM PAM — JAVÍTOTT CSS
   pampampam.hu · Kadence téma
   Javítás: sötét szekciókban minden szöveg fehér
   ============================================ */

/* --- 0. KÜLSŐ HÁTTÉR (oldalváz) --- */
body,
.site,
.site-header,
.site-header-row,
.site-header-main-section {
    background-color: #edf2f7 !important;
}

#inner-wrap,
.site-container,
.entry-content,
.entry {
    background-color: transparent !important;
}

/* --- 1. SZEKCIÓ-KÁRTYÁK --- */
.entry-content .wp-block-kadence-rowlayout {
    background-color: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 60px 40px !important;
    margin-bottom: 0 !important;
}

.entry-content .wp-block-kadence-rowlayout:nth-child(odd) {
    background-color: #f7fafc !important;
}

/* Sötét szekciók háttere */
.entry-content .wp-block-kadence-rowlayout.kt-row-layout-dark,
.entry-content .wp-block-kadence-rowlayout[style*="background-color: #1A1A2E"],
.entry-content .wp-block-kadence-rowlayout[style*="background-color:#1a1a2e"],
.entry-content .wp-block-kadence-rowlayout[style*="background-color: #1a1a2e"],
.entry-content .wp-block-kadence-rowlayout[style*="background-color:#1A1A2E"] {
    background-color: #1a1a2e !important;
    color: #ffffff !important;
    box-shadow: none;
}

/* --- 2. TARTALMI KERETEK (max-width) --- */
.entry-content .wp-block-kadence-rowlayout:not(.alignfull) {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* --- 3. SZÖVEGSZÍN-HIERARCHIA (világos szekciókhoz) --- */
h1, h2, h3, h4, h5, h6 {
    color: #1a1a2e !important;
    font-weight: 700;
}

.entry-content p {
    color: #4a5568;
}

.entry-content .subtitle,
.entry-content .wp-block-kadence-advancedheading[class*="subtitle"] {
    color: #718096;
}

/* --- 3b. SÖTÉT SZEKCIÓKBAN MINDEN SZÖVEG FEHÉR --- */
/* Ez írja felül a fenti h1/h2/p szabályokat a sötét szekciókban */
.entry-content .wp-block-kadence-rowlayout.kt-row-layout-dark h1,
.entry-content .wp-block-kadence-rowlayout.kt-row-layout-dark h2,
.entry-content .wp-block-kadence-rowlayout.kt-row-layout-dark h3,
.entry-content .wp-block-kadence-rowlayout.kt-row-layout-dark h4,
.entry-content .wp-block-kadence-rowlayout.kt-row-layout-dark h5,
.entry-content .wp-block-kadence-rowlayout.kt-row-layout-dark h6,
.entry-content .wp-block-kadence-rowlayout[style*="background-color: #1A1A2E"] h1,
.entry-content .wp-block-kadence-rowlayout[style*="background-color: #1A1A2E"] h2,
.entry-content .wp-block-kadence-rowlayout[style*="background-color: #1A1A2E"] h3,
.entry-content .wp-block-kadence-rowlayout[style*="background-color: #1A1A2E"] h4,
.entry-content .wp-block-kadence-rowlayout[style*="background-color: #1A1A2E"] h5,
.entry-content .wp-block-kadence-rowlayout[style*="background-color: #1A1A2E"] h6,
.entry-content .wp-block-kadence-rowlayout[style*="background-color:#1a1a2e"] h1,
.entry-content .wp-block-kadence-rowlayout[style*="background-color:#1a1a2e"] h2,
.entry-content .wp-block-kadence-rowlayout[style*="background-color:#1a1a2e"] h3,
.entry-content .wp-block-kadence-rowlayout[style*="background-color:#1a1a2e"] h4,
.entry-content .wp-block-kadence-rowlayout[style*="background-color:#1a1a2e"] h5,
.entry-content .wp-block-kadence-rowlayout[style*="background-color:#1a1a2e"] h6,
.entry-content .wp-block-kadence-rowlayout[style*="background-color: #1a1a2e"] h1,
.entry-content .wp-block-kadence-rowlayout[style*="background-color: #1a1a2e"] h2,
.entry-content .wp-block-kadence-rowlayout[style*="background-color: #1a1a2e"] h3,
.entry-content .wp-block-kadence-rowlayout[style*="background-color: #1a1a2e"] h4,
.entry-content .wp-block-kadence-rowlayout[style*="background-color: #1a1a2e"] h5,
.entry-content .wp-block-kadence-rowlayout[style*="background-color: #1a1a2e"] h6,
.entry-content .wp-block-kadence-rowlayout[style*="background-color:#1A1A2E"] h1,
.entry-content .wp-block-kadence-rowlayout[style*="background-color:#1A1A2E"] h2,
.entry-content .wp-block-kadence-rowlayout[style*="background-color:#1A1A2E"] h3,
.entry-content .wp-block-kadence-rowlayout[style*="background-color:#1A1A2E"] h4,
.entry-content .wp-block-kadence-rowlayout[style*="background-color:#1A1A2E"] h5,
.entry-content .wp-block-kadence-rowlayout[style*="background-color:#1A1A2E"] h6 {
    color: #ffffff !important;
}

/* Bekezdések és alcímek a sötét szekcióban */
.entry-content .wp-block-kadence-rowlayout.kt-row-layout-dark p,
.entry-content .wp-block-kadence-rowlayout.kt-row-layout-dark .subtitle,
.entry-content .wp-block-kadence-rowlayout[style*="background-color: #1A1A2E"] p,
.entry-content .wp-block-kadence-rowlayout[style*="background-color: #1A1A2E"] .subtitle,
.entry-content .wp-block-kadence-rowlayout[style*="background-color:#1a1a2e"] p,
.entry-content .wp-block-kadence-rowlayout[style*="background-color:#1a1a2e"] .subtitle,
.entry-content .wp-block-kadence-rowlayout[style*="background-color: #1a1a2e"] p,
.entry-content .wp-block-kadence-rowlayout[style*="background-color: #1a1a2e"] .subtitle,
.entry-content .wp-block-kadence-rowlayout[style*="background-color:#1A1A2E"] p,
.entry-content .wp-block-kadence-rowlayout[style*="background-color:#1A1A2E"] .subtitle {
    color: #a0aec0 !important;
}

/* Linkek a sötét szekcióban — fehér, aláhúzással */
.entry-content .wp-block-kadence-rowlayout.kt-row-layout-dark p a,
.entry-content .wp-block-kadence-rowlayout[style*="background-color: #1A1A2E"] p a,
.entry-content .wp-block-kadence-rowlayout[style*="background-color:#1a1a2e"] p a,
.entry-content .wp-block-kadence-rowlayout[style*="background-color: #1a1a2e"] p a,
.entry-content .wp-block-kadence-rowlayout[style*="background-color:#1A1A2E"] p a {
    color: #ffffff !important;
    text-decoration: underline;
}

/* --- 4. LINKEK ÉS ACCENT SZÍN (világos szekciókban) --- */
.entry-content p a {
    color: #2d6a8e;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.entry-content p a:hover {
    color: #1a5276;
    text-decoration: underline;
}

/* --- 5. GOMBOK --- */
.wp-block-button__link,
.kadence-button,
.kb-button {
    background-color: #2d6a8e !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid #2d6a8e !important;
}
.wp-block-button__link:hover,
.kadence-button:hover,
.kb-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 106, 142, 0.3);
    background-color: #1a5276 !important;
    border-color: #1a5276 !important;
}

.is-style-outline .wp-block-button__link,
.kb-button.kb-btn-outline {
    background-color: transparent !important;
    color: #2d6a8e !important;
    border: 2px solid #2d6a8e !important;
}
.is-style-outline .wp-block-button__link:hover,
.kb-button.kb-btn-outline:hover {
    background-color: #2d6a8e !important;
    color: #ffffff !important;
}

/* Sötét szekcióban: elsődleges gomb fehér háttér, másodlagos fehér keret */
.kt-row-layout-dark .wp-block-button__link,
.kt-row-layout-dark .kadence-button,
.kt-row-layout-dark .kb-button {
    background-color: #ffffff !important;
    color: #1a1a2e !important;
    border-color: #ffffff !important;
}
.kt-row-layout-dark .is-style-outline .wp-block-button__link,
.kt-row-layout-dark .kb-button.kb-btn-outline {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

/* --- 5b. GOMB KIEGÉSZÍTÉS — Kadence Advanced Button + Global Palette --- */
:root {
    --ppp-accent: #2d6a8e;
    --ppp-accent-hover: #1a5276;
    --ppp-accent-light: #e8f4f8;

    --global-palette1: var(--ppp-accent);
    --global-palette2: var(--ppp-accent-hover);
    --global-palette-highlight: var(--ppp-accent);
    --global-palette-highlight-alt: var(--ppp-accent-hover);
    --global-palette-btn: #ffffff;
    --global-palette-btn-bg: var(--ppp-accent);
    --global-palette-btn-hover: #ffffff;
    --global-palette-btn-bg-hover: var(--ppp-accent-hover);
}

.wp-block-kadence-advancedbtn a,
.wp-block-kadence-singlebtn a,
.wp-block-kadence-singlebtn .kb-button,
.kadence-blocks-btn-wrap .kb-button,
.kadence-blocks-btn-wrap a,
.kb-button-wrap .kb-button,
a.kb-btn-global-inherit,
.kb-btn-style-fill,
.kb-btn-style-basic {
    background-color: var(--ppp-accent) !important;
    border-color: var(--ppp-accent) !important;
    color: #ffffff !important;
}

.wp-block-kadence-advancedbtn a:hover,
.wp-block-kadence-singlebtn a:hover,
.wp-block-kadence-singlebtn .kb-button:hover,
.kadence-blocks-btn-wrap .kb-button:hover,
.kadence-blocks-btn-wrap a:hover,
.kb-button-wrap .kb-button:hover,
a.kb-btn-global-inherit:hover,
.kb-btn-style-fill:hover,
.kb-btn-style-basic:hover {
    background-color: var(--ppp-accent-hover) !important;
    border-color: var(--ppp-accent-hover) !important;
    color: #ffffff !important;
}

.kb-btn-style-outline,
.kadence-blocks-btn-wrap .kb-btn-style-outline {
    background-color: transparent !important;
    border: 2px solid var(--ppp-accent) !important;
    color: var(--ppp-accent) !important;
}
.kb-btn-style-outline:hover,
.kadence-blocks-btn-wrap .kb-btn-style-outline:hover {
    background-color: var(--ppp-accent) !important;
    color: #ffffff !important;
}

/* Sötét szekcióban az Advanced Button fehér */
.kt-row-layout-dark .wp-block-kadence-advancedbtn a,
.kt-row-layout-dark .wp-block-kadence-singlebtn a,
.kt-row-layout-dark .kadence-blocks-btn-wrap .kb-button,
.kt-row-layout-dark .kb-btn-style-fill,
.kt-row-layout-dark .kb-btn-style-basic {
    background-color: #ffffff !important;
    color: #1a1a2e !important;
    border-color: #ffffff !important;
}
.kt-row-layout-dark .kb-btn-style-outline {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}
.kt-row-layout-dark .kb-btn-style-outline:hover {
    background-color: #ffffff !important;
    color: #1a1a2e !important;
}

/* --- 6. INFO BOX IKONOK --- */
.kt-info-svg-icon-container,
.kadence-info-box .kt-info-svg-icon {
    background-color: #e8f4f8 !important;
    border-radius: 200px !important;
}
.kt-info-svg-icon-container svg,
.kadence-info-box svg {
    color: #2d6a8e !important;
}

/* --- 7. ACCORDION (GYIK) --- */
.wp-block-kadence-pane {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
}
.wp-block-kadence-pane .kt-accordion-header-wrap {
    background-color: #ffffff !important;
}
.wp-block-kadence-pane .kt-accordion-header-wrap:hover {
    background-color: #f7fafc !important;
}

/* --- 8. TÁBLÁZATOK --- */
.entry-content table th {
    background-color: #2d6a8e !important;
    color: #ffffff !important;
    padding: 12px 16px;
    font-weight: 700;
}
.entry-content table td {
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}
.entry-content table tr:nth-child(even) {
    background-color: #f7fafc;
}

/* --- 9. BLOCKQUOTE --- */
.entry-content blockquote {
    border-left: 3px solid #2d6a8e;
    padding-left: 20px;
    font-style: italic;
    color: #4a5568;
}

/* --- 10. SEPARATOR / BORDER --- */
.wp-block-separator,
hr {
    border-color: #e2e8f0 !important;
}

/* --- 11. HEADER (menüsor) --- */
.site-header {
    border-bottom: 1px solid #e2e8f0;
}
.site-header a {
    color: #1a1a2e !important;
    transition: color 0.2s ease;
}
.site-header a:hover {
    color: #2d6a8e !important;
}

/* --- 12. LÁBLÉC --- */
.site-footer {
    background-color: #1a1a2e !important;
    color: #a0aec0 !important;
}
.site-footer a {
    color: #ffffff !important;
}
.site-footer a:hover {
    color: #e8f4f8 !important;
}
.site-footer h3,
.site-footer h4,
.site-footer .footer-widget-title {
    color: #ffffff !important;
}

/* --- 13. JETPACK / SHAREDADDY --- */
div.sharedaddy,
#jp-post-flair {
    max-width: 1200px;
    margin: 20px auto !important;
    padding: 0 40px !important;
}

/* --- 14. MOBIL NÉZET --- */
@media (max-width: 767px) {
    .entry-content .wp-block-kadence-rowlayout {
        padding: 30px 15px !important;
        border-radius: 0 !important;
    }
    .entry-hero,
    .entry-content .wp-block-kadence-rowlayout:not(.alignfull) {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}