/* ============================================
   Zombori Tamás – Egyedi stílusok
   TailwindCSS kiegészítés
   ============================================ */

/* --- Alap beállítások --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #42302A;
  background-color: #FAF8F5;
}

/* --- Tipográfia --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

/* --- Navigáció --- */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #7A9E7E;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #7A9E7E;
}

/* Sticky nav háttér scroll után */
.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

/* Mobil menü */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* --- Hero szekció --- */
.hero-gradient {
  background: linear-gradient(135deg, #FAF8F5 0%, #F0E6D8 50%, #e8ddd0 100%);
}

/* --- Gombok --- */
.btn-primary {
  background-color: #7A9E7E;
  color: #FFFFFF;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #5C7E60;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(122, 158, 126, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #7A9E7E;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: 2px solid #7A9E7E;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: #7A9E7E;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* --- Kártyák --- */
.card {
  background-color: #FFFFFF;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* --- Szekciók --- */
.section-sand {
  background-color: #F0E6D8;
}

.section-white {
  background-color: #FFFFFF;
}

.section-cream {
  background-color: #FAF8F5;
}

/* --- CTA sáv --- */
.cta-bar {
  background: linear-gradient(135deg, #7A9E7E 0%, #5C7E60 100%);
  color: #FFFFFF;
}

.cta-bar .btn-primary {
  background-color: #FFFFFF;
  color: #5C7E60;
}

.cta-bar .btn-primary:hover {
  background-color: #FAF8F5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Lépések szekció --- */
.step-connector {
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -2rem;
  width: 4rem;
  height: 2px;
  background-color: #7A9E7E;
  opacity: 0.3;
}

.step-connector:last-child::after {
  display: none;
}

@media (max-width: 768px) {
  .step-connector::after {
    display: none;
  }
}

/* --- Szám badge --- */
.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: #7A9E7E;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* --- Ikon kör --- */
.icon-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: rgba(122, 158, 126, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #7A9E7E;
}

/* --- GYIK Accordion --- */
.accordion-item {
  border-bottom: 1px solid #e5e1dc;
}

.accordion-button {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-size: 1.05rem;
  color: #42302A;
  font-family: 'Inter', sans-serif;
}

.accordion-button:hover {
  color: #7A9E7E;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.open {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.accordion-icon {
  transition: transform 0.3s ease;
  font-size: 1.5rem;
  line-height: 1;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

/* --- Blog kártyák --- */
.blog-card {
  overflow: hidden;
  border-radius: 1rem;
  background: #FFFFFF;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.blog-card-image {
  height: 200px;
  background-color: #F0E6D8;
  background-size: cover;
  background-position: center;
}

/* --- Scroll animáció --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Footer --- */
footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: #7A9E7E;
}

/* --- Űrlap mezők --- */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d5d0ca;
  border-radius: 0.5rem;
  background-color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #7A9E7E;
  box-shadow: 0 0 0 3px rgba(122, 158, 126, 0.15);
}

/* --- Sticky CTA (mobil) --- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .sticky-cta {
    display: none;
  }
}

/* --- Kutatás / Esettanulmány szekció --- */
.research-card {
  border-left: 4px solid #7A9E7E;
  background-color: #FFFFFF;
  padding: 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

/* --- Scroll-to-top gomb --- */
.scroll-top {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: #7A9E7E;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 30;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background-color: #5C7E60;
  transform: translateY(-2px);
}

@media (min-width: 1024px) {
  .scroll-top {
    bottom: 2rem;
  }
}

/* --- Cookie/GDPR sáv --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background-color: #42302A;
  color: #FFFFFF;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

/* --- Hírlevél szekció --- */
.newsletter-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
}

/* --- Blog fejléc vizuál (CSS gradient hero) --- */
.blog-hero {
  height: 200px;
  border-radius: 12px;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.08), transparent);
}

/* Témák */
.blog-hero[data-theme="tarsadalom"] {
  background: linear-gradient(135deg, #42302A 0%, #7B6458 40%, #7A9E7E 100%);
}

.blog-hero[data-theme="kommunikacio"] {
  background: linear-gradient(135deg, #5C7E60 0%, #7A9E7E 45%, #F0E6D8 100%);
}

.blog-hero[data-theme="donteshozatal"] {
  background: linear-gradient(135deg, #7B6458 0%, #7A9E7E 50%, #FAF8F5 100%);
}

.blog-hero[data-theme="pszichologia"] {
  background: linear-gradient(135deg, #7A9E7E 0%, #5C7E60 40%, #42302A 100%);
}

.blog-hero[data-theme="onismeret"] {
  background: linear-gradient(135deg, #F0E6D8 0%, #7B6458 50%, #5C7E60 100%);
}

.blog-hero[data-theme="fejlodes"] {
  background: linear-gradient(135deg, #7A9E7E 0%, #F0E6D8 50%, #7A9E7E 100%);
}

.blog-hero[data-theme="kapcsolatok"] {
  background: linear-gradient(135deg, #7B6458 0%, #F0E6D8 40%, #7A9E7E 100%);
}

@media (max-width: 640px) {
  .blog-hero { height: 140px; }
}

/* --- Olvasási idő badge --- */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #7B6458;
  font-family: 'Inter', sans-serif;
}

.reading-time svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

/* --- Kapcsolódó cikkek --- */
.related-posts {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e5e1dc;
}

.related-posts h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #42302A;
}

.related-posts .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.related-posts .related-card {
  background: #ffffff;
  border: 1px solid #e5e1dc;
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.related-posts .related-card:hover {
  border-color: #7A9E7E;
  box-shadow: 0 4px 12px rgba(122, 158, 126, 0.12);
  transform: translateY(-2px);
}

.related-posts .related-card .related-category {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7A9E7E;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.related-posts .related-card .related-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #42302A;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .related-posts .related-grid {
    grid-template-columns: 1fr;
  }
}
