/*
Theme Name: Sunflower Pszichoműhely v4
Theme URI: https://sunflowerpszichomuhely.hu
Author: Sunflower Pszichoműhely
Author URI: https://sunflowerpszichomuhely.hu
Description: Új design (2026), Gutenberg-kompatibilis. A page-ek tartalma a WP admin felületen szerkeszthető. Mónika landing oldal (id=92) érintetlenül marad.
Version: 4.2.3
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sunflower-v4
Tags: blog, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* =============================================================================
   v4 BASE — minden page-en érvényes közös CSS (design tokens, header, footer)
   A page-specifikus CSS (hero, sections) a Page content Custom HTML block-jában
   marad inline, ahogy a staging design-ban van.
   ============================================================================= */

:root {
    --sun-500:#F2B705; --sun-400:#F5C533; --sun-300:#FADB6E; --sun-200:#FDE99A; --sun-100:#FEF3C7; --sun-50:#FFFBEB;
    --e9:#1C1917; --e8:#292524; --e7:#44403C; --e6:#57534E; --e5:#78716C; --e4:#A8A29E; --e3:#D6D3D1; --e2:#E7E5E4; --e1:#F5F5F4; --e0:#FAFAF9;
    --sky:#7CB9C4; --sky-l:#D4EDF2; --sage:#8BA888; --sage-l:#E8F0E4; --cream:#FFFDF5;
    --fd:'DM Sans',system-ui,sans-serif;
    --fb:'Nunito',system-ui,sans-serif;
    --fa:'Caveat',cursive;
    --ease:cubic-bezier(0.22,1,0.36,1);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:var(--fb);color:var(--e7);background:var(--cream);line-height:1.7;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{text-decoration:none;color:inherit;transition:all .3s var(--ease)}
.ctn{max-width:1200px;margin:0 auto;padding:0 24px}
.icon svg{width:100%;height:100%}

/* ---- HEADER ---- */
.hdr{position:sticky;top:0;z-index:100;background:rgba(255,253,245,.88);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
.hdr__in{display:flex;align-items:center;justify-content:space-between;height:76px}
.hdr__logo{display:flex;align-items:center;gap:14px}
.hdr__mark{width:52px;height:52px}
.hdr__mark svg{width:100%;height:100%}
.hdr__mark img{width:100%;height:100%;object-fit:contain}
.hdr__name{font-size:1.3rem;font-weight:700;color:var(--e9);line-height:1.1}
.hdr__name em{font-family:var(--fa);font-style:normal;color:var(--sun-500);font-size:1.35rem;font-weight:600}
.hdr__sub{font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.16em;color:var(--e4)}
.hdr__nav{display:flex;align-items:center;gap:4px}
.hdr__nav a{padding:8px 16px;font-size:.88rem;font-weight:600;color:var(--e6);border-radius:100px}
.hdr__nav a:hover{color:var(--e9);background:var(--sun-50)}
.hdr__nav .current_page_item a,
.hdr__nav .current-menu-item a{color:var(--e9);background:var(--sun-50)}
.hdr__cta{margin-left:8px;padding:10px 28px!important;background:var(--e9)!important;color:#fff!important;border-radius:100px!important;font-weight:700!important;font-size:.85rem!important}
.hdr__cta:hover{background:var(--e8)!important;transform:translateY(-1px);box-shadow:0 4px 20px rgba(0,0,0,.15)}
.hdr__mob{display:none;background:none;border:none;cursor:pointer;width:44px;height:44px;align-items:center;justify-content:center;flex-direction:column;gap:5px}
.hdr__mob span{display:block;width:22px;height:2px;background:var(--e8);border-radius:2px}

/* ---- FOOTER ---- */
.ftr{background:var(--e9);color:var(--e3);padding:80px 0 40px;margin-top:0}
.ftr__grid{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:60px;margin-bottom:60px}
.ftr__logo{display:flex;align-items:center;gap:14px;margin-bottom:24px}
.ftr__logo-mark{width:48px;height:48px}
.ftr__logo-mark svg{width:100%;height:100%}
.ftr__logo-mark img{width:100%;height:100%;object-fit:contain}
.ftr__logo-text{color:#fff;font-size:1.2rem;font-weight:700;line-height:1.2}
.ftr__logo-text em{font-family:var(--fa);color:var(--sun-300);font-style:normal;font-size:1.3rem}
.ftr__about{font-size:.95rem;line-height:1.8;color:var(--e4);margin-bottom:24px}
.ftr h4{color:#fff;font-size:.85rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;margin-bottom:24px}
.ftr ul{list-style:none}
.ftr li{margin-bottom:12px}
.ftr a{color:var(--e4);font-size:.95rem;display:block;transition:color .3s var(--ease)}
.ftr a:hover{color:var(--sun-300)}
.ftr__bottom{padding-top:40px;border-top:1px solid rgba(255,255,255,.08);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:20px}
.ftr__copy{font-size:.85rem;color:var(--e5)}
.ftr__social{display:flex;gap:12px}
.ftr__social a{width:40px;height:40px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--e3);transition:all .3s var(--ease)}
.ftr__social a:hover{background:var(--sun-500);border-color:var(--sun-500);color:var(--e9);transform:translateY(-2px)}
.ftr__social svg{width:18px;height:18px}

/* ---- MOBILE ---- */
@media (max-width:900px){
    .hdr__nav{display:none;position:absolute;top:76px;left:0;right:0;background:rgba(255,253,245,.98);flex-direction:column;padding:20px 24px;box-shadow:0 8px 32px rgba(0,0,0,.06);gap:0}
    .hdr__nav.is-open{display:flex}
    .hdr__nav a{width:100%;text-align:center;padding:12px 16px;font-size:1rem}
    .hdr__cta{margin:8px auto 0}
    .hdr__mob{display:flex}
    .ftr__grid{grid-template-columns:1fr 1fr;gap:40px}
    .ftr__bottom{flex-direction:column;text-align:center}
}
@media (max-width:600px){
    .ftr__grid{grid-template-columns:1fr;gap:32px}
}

/* ---- WP NATIVE COMPATIBILITY ---- */
.alignwide{max-width:1200px;margin-left:auto;margin-right:auto}
.alignfull{max-width:none;width:100%;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
.wp-block-image img{max-width:100%;height:auto}
.screen-reader-text{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ---- ADMIN BAR FIX ---- */
body.admin-bar .hdr{top:32px}
@media (max-width:782px){
    body.admin-bar .hdr{top:46px}
}

/* =============================================================================
   MENU RESET — wp_nav_menu li-k pötty nélkül
   ============================================================================= */
.hdr__nav { display: flex; align-items: center; gap: 4px; list-style: none; }
.hdr__nav li, .hdr__nav .menu-item { list-style: none !important; padding: 0; margin: 0; display: inline-flex; align-items: center; }
.hdr__nav li::before, .hdr__nav li::marker { content: none !important; display: none !important; }
.hdr__nav ul { list-style: none !important; padding: 0; margin: 0; display: flex; align-items: center; gap: 4px; }
.ftr ul, .ftr li { list-style: none !important; }
.ftr li::marker { content: none !important; }
@media (max-width: 900px) {
    .hdr__nav { flex-direction: column; }
    .hdr__nav li { display: flex; width: 100%; }
    .hdr__nav li a { width: 100%; text-align: center; }
}

/* =============================================================================
   BUTTONS — közös .btn osztályok
   ============================================================================= */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; font-size: .9rem; font-weight: 700; border-radius: 100px; transition: all .3s var(--ease); cursor: pointer; border: none; text-decoration: none; }
.btn--sun { background: var(--sun-500); color: var(--e9); }
.btn--sun:hover { background: var(--sun-400); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(242,183,5,.3); }
.btn--dark { background: var(--e9); color: #fff; }
.btn--dark:hover { background: var(--e8); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.btn--ghost { background: transparent; color: var(--e7); border: 1px solid var(--e3); }
.btn--ghost:hover { border-color: var(--e7); color: var(--e9); }
.btn svg { width: 16px; height: 16px; }

/* =============================================================================
   BLOG ARCHIVE (home.php) — staging "Blog Archív Oldal" design
   ============================================================================= */
.ar-hero { padding: 80px 0 48px; text-align: center; }
.ar-hero__t { font-family: var(--fd); font-size: 3.2rem; color: var(--e9); margin-bottom: 12px; font-weight: 700; }
.ar-hero__d { font-size: 1.05rem; color: var(--e5); max-width: 480px; margin: 0 auto; }
.ar-filt { padding: 24px 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; border-bottom: 1px solid var(--e2); margin-bottom: 48px; }
.atag { padding: 8px 0; margin: 0 12px; border: none; border-bottom: 2px solid transparent; font-size: .88rem; font-weight: 600; color: var(--e5); cursor: pointer; transition: all .3s var(--ease); background: none; text-decoration: none; }
.atag:hover, .atag--on { border-bottom-color: var(--sun-500); color: var(--e9); }
.ar-grid { display: flex; flex-direction: column; padding-bottom: 80px; }

.ar-feat { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-bottom: 56px; margin-bottom: 48px; border-bottom: 1px solid var(--e2); text-decoration: none; color: inherit; }
.ar-feat__img { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.ar-feat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ar-feat:hover .ar-feat__img img { transform: scale(1.03); }
.ar-feat__title { font-family: var(--fd); font-size: 2rem; color: var(--e9); font-weight: 700; margin-bottom: 14px; line-height: 1.25; transition: color .3s var(--ease); }
.ar-feat:hover .ar-feat__title { color: var(--sun-500); }
.ar-feat__excerpt { font-size: 1rem; color: var(--e5); line-height: 1.8; margin-bottom: 20px; }
.ar-feat__author { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.ar-feat__av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
.ar-feat__av img { width: 100%; height: 100%; object-fit: cover; }
.ar-feat__aname { font-size: .85rem; font-weight: 700; color: var(--e8); }
.ar-feat__ameta { font-size: .78rem; color: var(--e4); }

.ar-posts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ar-post { display: flex; gap: 24px; padding: 28px 0; border-top: 1px solid var(--e2); transition: all .3s var(--ease); text-decoration: none; color: inherit; }
.ar-post:nth-child(odd) { padding-right: 40px; border-right: 1px solid var(--e2); }
.ar-post:nth-child(even) { padding-left: 40px; }
.ar-post:hover .ar-post__title { color: var(--sun-500); }
.ar-post__num { font-family: var(--fd); font-size: 2.4rem; font-weight: 700; color: var(--sun-200); line-height: 1; min-width: 40px; }
.ar-post__title { font-family: var(--fd); font-size: 1.1rem; color: var(--e9); font-weight: 700; margin-bottom: 8px; line-height: 1.35; transition: color .3s var(--ease); }
.ar-post__excerpt { font-size: .85rem; color: var(--e5); line-height: 1.7; margin-bottom: 10px; }
.ar-post__author { display: flex; align-items: center; gap: 8px; }
.ar-post__av { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; }
.ar-post__av img { width: 100%; height: 100%; object-fit: cover; }
.ar-post__aname { font-size: .78rem; font-weight: 600; color: var(--e7); }
.ar-post__ameta { font-size: .72rem; color: var(--e4); }

.bc__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bc__cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--sun-500); }
.bc__cat::after { content: ''; display: inline-block; width: 1px; height: 12px; background: var(--e3); margin-left: 12px; vertical-align: middle; }
.bc__date { font-size: .78rem; color: var(--e4); }

/* =============================================================================
   SINGLE POST (single.php) — staging "Blogcikk Sablon" design
   ============================================================================= */
.art { padding: 60px 0 100px; }
.art__w { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.art__back { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--e4); margin-bottom: 32px; text-decoration: none; }
.art__back:hover { color: var(--e7); }
.art__back svg { width: 16px; height: 16px; }
.art__cat { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sun-500); background: var(--sun-50); border: 1px solid var(--sun-100); padding: 5px 14px; border-radius: 100px; margin-bottom: 20px; text-decoration: none; }
.art__title { font-family: var(--fd); font-size: 2.8rem; line-height: 1.15; color: var(--e9); margin-bottom: 24px; font-weight: 700; }
.art__lead { font-size: 1.15rem; color: var(--e5); line-height: 1.85; margin-bottom: 32px; }
.art__author { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-top: 1px solid var(--e2); border-bottom: 1px solid var(--e2); margin-bottom: 48px; }
.art__av { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--sun-200), var(--sun-300)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.art__av img { width: 100%; height: 100%; object-fit: cover; }
.art__av svg { width: 24px; height: 24px; color: var(--e7); opacity: .3; }
.art__an { font-weight: 700; font-size: .9rem; color: var(--e8); }
.art__am { font-size: .82rem; color: var(--e4); }
.art__cover { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--sun-100), var(--sky-l)); border-radius: 24px; margin-bottom: 48px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.art__body h2 { font-family: var(--fd); font-size: 1.6rem; color: var(--e9); margin: 48px 0 16px; line-height: 1.3; font-weight: 700; }
.art__body h3 { font-family: var(--fd); font-size: 1.2rem; color: var(--e9); margin: 32px 0 12px; font-weight: 700; }
.art__body p { font-size: 1.05rem; line-height: 1.9; color: var(--e6); margin-bottom: 24px; }
.art__body blockquote { border-left: 4px solid var(--sun-500); padding: 20px 0 20px 32px; margin: 40px 0; background: var(--sun-50); border-radius: 0 16px 16px 0; }
.art__body blockquote p { font-family: var(--fd); font-size: 1.2rem; font-style: italic; color: var(--e8); line-height: 1.6; margin: 0; }
.art__body ul { padding-left: 0; margin-bottom: 24px; list-style: none; }
.art__body li { font-size: 1.05rem; line-height: 1.9; color: var(--e6); margin-bottom: 8px; padding-left: 28px; position: relative; }
.art__body li::before { content: ''; position: absolute; left: 0; top: 12px; width: 8px; height: 8px; background: var(--sun-400); border-radius: 50%; }
.art__body img { max-width: 100%; height: auto; border-radius: 12px; margin: 24px 0; }
.art__body a { color: var(--sun-500); font-weight: 600; }
.art__body a:hover { color: var(--sun-400); }
.art__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--e2); }
.art__tag { font-size: .82rem; font-weight: 600; color: var(--e5); text-decoration: none; }
.art__tag::before { content: '#'; color: var(--sun-400); margin-right: 2px; }
.art__tag:hover { color: var(--sun-500); }

/* =============================================================================
   CTA section
   ============================================================================= */
.cta-s { padding: 100px 0; background: var(--sun-500); position: relative; overflow: hidden; }
.cta-s__inner { text-align: center; position: relative; z-index: 1; }
.cta-s__bg { position: absolute; inset: 0; opacity: .04; background-image: radial-gradient(circle, var(--e9) 1px, transparent 1px); background-size: 24px 24px; }
.cta-s__note { font-family: var(--fa); font-size: 1.3rem; color: var(--e8); opacity: .5; margin-bottom: 12px; }
.cta-s__title { font-family: var(--fd); font-size: 3rem; color: var(--e9); margin-bottom: 16px; font-weight: 700; }
.cta-s__desc { font-size: 1.05rem; color: var(--e8); opacity: .65; max-width: 440px; margin: 0 auto 36px; }

/* Pagination */
.pagination .nav-links { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 16px; border: 1px solid var(--e2); border-radius: 100px; font-size: .9rem; font-weight: 600; color: var(--e6); text-decoration: none; transition: all .3s var(--ease); }
.pagination .page-numbers:hover, .pagination .page-numbers.current { background: var(--sun-500); border-color: var(--sun-500); color: var(--e9); }

/* Mobil */
@media (max-width: 900px) {
    .ar-feat { grid-template-columns: 1fr; gap: 24px; }
    .ar-posts { grid-template-columns: 1fr; }
    .ar-post:nth-child(odd) { padding-right: 0; border-right: none; }
    .ar-post:nth-child(even) { padding-left: 0; }
    .art__title { font-size: 2rem; }
    .ar-hero__t { font-size: 2.2rem; }
    .cta-s__title { font-size: 2rem; }
}
