/* ============================================
   PAM PAM PAM — JAVÍTOTT CSS
   pampampam.hu · Kadence téma
   ============================================ */

/* --- 0. KÜLSŐ HÁTTÉR (oldalváz) --- */
/* Hűvös világosszürke — a szekciók közötti "rés" színe */
body,
.site,
.site-header,
.site-header-row,
.site-header-main-section {
    background-color: #edf2f7 !important;
}

/* Technikai wrapperek átlátszóak */
#inner-wrap,
.site-container,
.entry-content,
.entry {
    background-color: transparent !important;
}

/* --- 1. SZEKCIÓ-KÁRTYÁK --- */
/* Fehér háttér — a tartalom "kiemelkedik" a szürke keretből */
.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; /* A szekciók közötti rés a body-háttér */
}

/* Szürke szekciók (páratlan): enyhe megkülönböztetés */
.entry-content .wp-block-kadence-rowlayout:nth-child(odd) {
    background-color: #f7fafc !important;
}

/* Sötét szekciók — hero/CTA, ha van .dark osztály a szekción */
.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"] {
    background-color: #1a1a2e !important;
    color: #ffffff !important;
    box-shadow: none;
}
.entry-content .wp-block-kadence-rowlayout.kt-row-layout-dark p,
.entry-content .wp-block-kadence-rowlayout.kt-row-layout-dark .subtitle {
    color: #a0aec0 !important;
}

/* --- 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 --- */
/* Címsorok: sötét (nem kék!) — az accent szín a gomboknak és linkeknek jár */
h1, h2 {
    color: #1a1a2e !important;
    font-weight: 700;
}
h3, h4, h5, h6 {
    color: #1a1a2e !important;
}

/* Bekezdések: közepes szürke — könnyebb olvasás, kevésbé "nehéz" */
.entry-content p {
    color: #4a5568;
}

/* Alcímek, megjegyzések: világos szürke */
.entry-content .subtitle,
.entry-content .wp-block-kadence-advancedheading[class*="subtitle"] {
    color: #718096;
}

/* --- 4. LINKEK ÉS ACCENT SZÍN --- */
/* Petrolkék — mélyebb, érettebb, mint a #009bff */
.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 --- */
/* Elsődleges gomb: petrolkék háttér */
.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;
}

/* Másodlagos gomb (outline) — ha van .is-style-outline */
.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: fehér gomb */
.kt-row-layout-dark .wp-block-button__link,
.kt-row-layout-dark .kadence-button {
    background-color: #ffffff !important;
    color: #1a1a2e !important;
    border-color: #ffffff !important;
}

/* --- 6. INFO BOX IKONOK --- */
/* Kör alakú ikon háttér — világos petrolkék */
.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; /* Mobilon nem kell lekerekítés */
    }
    .entry-hero,
    .entry-content .wp-block-kadence-rowlayout:not(.alignfull) {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}