/*
Theme Name: Gondolatok es Illatok V2
Theme URI: https://csillag-tibor.com/
Author: Tibor Csillag
Author URI: https://csillag-tibor.com/
Description: Letisztult, gyors, mobilbarát szerzői WordPress sablon Csillag Tibor könyveihez, blogjához és olvasói köréhez.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gondolatok-es-illatok
*/

:root {
  --ct-bg: #f7f3eb;
  --ct-bg-warm: #fff3dd;
  --ct-surface: #fffaf2;
  --ct-card: #ffffff;
  --ct-text: #2f2f2f;
  --ct-muted: #655e59;
  --ct-soft: #efe6d3;
  --ct-line: #ddd6c8;
  --ct-accent: #7d8377;
  --ct-accent-dark: #5f675d;
  --ct-gold: #c8a76b;
  --ct-shadow: 0 18px 45px rgba(47, 47, 47, 0.12);
  --ct-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ct-body: 'Arimo', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--ct-bg);
  color: var(--ct-text);
  font-family: var(--ct-body);
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--ct-accent-dark); text-decoration: none; transition: color .2s ease, opacity .2s ease, transform .2s ease; }
a:hover { color: var(--ct-text); }
h1, h2, h3, h4, h5, h6 { font-family: var(--ct-heading); font-weight: 500; line-height: 1.12; color: var(--ct-text); margin: 0 0 1rem; }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
p { margin: 0 0 1.2rem; color: var(--ct-muted); }
.container { width: min(92%, 74rem); margin: 0 auto; }
.screen-reader-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 99999;
  background: rgba(247, 243, 235, 0.96);
  border-bottom: 1px solid rgba(221, 214, 200, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 22px rgba(47, 47, 47, 0.08);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-branding { display: flex; align-items: center; min-width: 0; }
.site-title { margin: 0; font-family: var(--ct-heading); font-size: clamp(1.15rem, 2.2vw, 1.65rem); line-height: 1.1; }
.site-title a { color: var(--ct-text); }
.site-description { margin: .15rem 0 0; font-size: .82rem; color: var(--ct-muted); }
.menu-toggle {
  display: none;
  border: 1px solid var(--ct-line);
  background: rgba(255, 250, 242, .95);
  color: var(--ct-text);
  border-radius: 12px;
  width: 46px;
  height: 42px;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.menu-toggle span { display: block; transform: translateY(-1px); }
.main-navigation ul { list-style: none; display: flex; align-items: center; justify-content: flex-end; gap: clamp(.85rem, 2.1vw, 1.6rem); margin: 0; padding: 0; }
.main-navigation li { margin: 0; }
.main-navigation a { color: var(--ct-muted); font-size: .94rem; letter-spacing: .04em; font-weight: 600; white-space: nowrap; }
.main-navigation .current-menu-item > a,
.main-navigation a:hover { color: var(--ct-text); }

.button,
.button-primary,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  background: var(--ct-accent);
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  padding: .86rem 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 8px 20px rgba(95, 103, 93, .20);
}
.button:hover,
.button-primary:hover,
.wp-block-button__link:hover { background: var(--ct-accent-dark); color: #fff !important; transform: translateY(-1px); }
.button-secondary { background: #fff; color: var(--ct-text) !important; border: 1px solid var(--ct-line); box-shadow: 0 8px 20px rgba(47,47,47,.06); }
.button-secondary:hover { background: var(--ct-soft); color: var(--ct-text) !important; }

.hero {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  background-color: #d9d3c9;
  background-image: linear-gradient(90deg, rgba(31,41,55,.78), rgba(31,41,55,.38), rgba(247,243,235,.1)), var(--hero-image);
  background-size: cover;
  background-position: center;
  padding: 5.5rem 0;
}
.hero-card {
  max-width: 48rem;
  background: rgba(247, 243, 235, .89);
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 28px;
  box-shadow: var(--ct-shadow);
  padding: clamp(1.5rem, 4vw, 3rem);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.eyebrow { margin: 0 0 .75rem; color: #6b5f74; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; font-weight: 800; }
.hero-card p { font-size: clamp(1rem, 1.5vw, 1.12rem); color: #4b5563; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.6rem; }

.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section-soft { background: var(--ct-soft); }
.section-white { background: #fff; }
.section-title { max-width: 48rem; margin-bottom: 2rem; }
.section-title.center { text-align: center; margin-left: auto; margin-right: auto; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { background: var(--ct-card); border: 1px solid var(--ct-line); border-radius: 22px; overflow: hidden; box-shadow: 0 10px 28px rgba(47,47,47,.06); }
.card-body { padding: 1.35rem; }
.card p { font-size: .97rem; }
.book-cover { aspect-ratio: 2/3; width: 100%; object-fit: cover; display:block; background: var(--ct-soft); }
.card-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.card-actions .button { padding: .72rem 1rem; font-size: .92rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: center; }
.panel { background: var(--ct-surface); border: 1px solid var(--ct-line); border-radius: 24px; padding: clamp(1.35rem, 3vw, 2.4rem); box-shadow: 0 10px 30px rgba(47,47,47,.05); }
.quote { border-left: 4px solid var(--ct-accent); padding: 1rem 1.25rem; background: rgba(255,255,255,.55); border-radius: 0 16px 16px 0; font-family: var(--ct-heading); font-size: 1.25rem; color: var(--ct-text); }

.entry-main { padding: clamp(3rem, 7vw, 5rem) 0; }
.entry-shell { width: min(92%, 760px); margin: 0 auto; }
.entry-header { text-align: center; margin-bottom: 2.5rem; }
.entry-meta { color: var(--ct-accent-dark); letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; font-weight: 700; margin-bottom: .8rem; }
.entry-content { font-size: 1.08rem; }
.entry-content > * { margin-bottom: 1.25rem; }
.entry-content img { border-radius: 18px; }
.entry-content ul, .entry-content ol { padding-left: 1.35rem; color: var(--ct-muted); margin-bottom: 1.2rem; }
.entry-content blockquote { margin: 2rem 0; padding: 1.2rem 1.4rem; border-left: 4px solid var(--ct-accent); background: var(--ct-surface); border-radius: 0 16px 16px 0; }
.post-thumbnail { margin: 0 0 2.2rem; border-radius: 22px; overflow: hidden; box-shadow: var(--ct-shadow); }

.newsletter { background: #2f3340; color: #fff; text-align: center; border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); }
.newsletter h2, .newsletter p { color: #fff; }
.newsletter p { color: #e5e7eb; max-width: 720px; margin-left: auto; margin-right: auto; }

.social-links { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; align-items: center; }
.social-links a { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--ct-line); color: var(--ct-text); box-shadow: 0 8px 20px rgba(47,47,47,.06); }
.social-links a:hover { background: var(--ct-accent); color: #fff; transform: translateY(-2px); }
.social-links svg { width: 20px; height: 20px; fill: currentColor; }
.site-footer { background: #f4ece1; border-top: 1px solid var(--ct-line); padding: 3rem 0; text-align: center; }
.footer-title { font-family: var(--ct-heading); font-size: 1.35rem; color: var(--ct-text); margin: 0 0 .4rem; }
.footer-small { font-size: .86rem; opacity: .78; margin-top: 1.5rem; }

/* WP core alignment */
.alignwide { max-width: 1100px; margin-left:auto; margin-right:auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .header-inner { min-height: 64px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .main-navigation {
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    background: rgba(247,243,235,.98);
    border-bottom: 1px solid var(--ct-line);
    box-shadow: 0 18px 35px rgba(47,47,47,.12);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
    padding: 1rem 0;
    z-index: 99998;
  }
  .admin-bar .main-navigation { top: 110px; }
  .site-header.is-open .main-navigation { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-navigation ul { width: min(92%, 74rem); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: .2rem; }
  .main-navigation a { display: block; padding: .8rem 0; font-size: 1rem; }
  .hero { min-height: 82vh; padding: 3.2rem 0; background-position: center top; }
  .hero-card { border-radius: 22px; }
  .hero-actions .button { width: 100%; }
  .section { padding: 3rem 0; }
  .card-actions .button { width: 100%; }
}
@media (max-width: 420px) {
  .site-title { font-size: 1.08rem; }
  .site-description { display: none; }
  .hero-card { padding: 1.25rem; }
}
