/*
Theme Name: Yasemin Pehlivan Psikolog
Theme URI: https://yaseminpehlivan.com
Author: Salih & ChatGPT
Description: Psikolog Yasemin Pehlivan için tek sayfa kaydırmalı, animasyonlu ve minimal WordPress teması.
Version: 1.8
Text Domain: yasemin-pehlivan
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

:root {
  --primary-color: #0ea5e9;   /* turkuaz vurgu */
  --accent-color: #f97316;    /* turuncu buton */
  --navy: #0b1f3b;            /* header ve koyu alanlar */
  --text-main: #0f172a;       /* ana metin rengi */
  --bg-page: #f3f4f6;         /* sayfa arka planı */
  --light-section: #e5f3ff;   /* açık mavi section */
}

/* Genel gövde + footer’ın alta yapışması için flex yapı */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

a {
  color: #0f766e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

/* Logo */
.site-logo a {
  font-weight: 700;
  font-size: 1.05rem;
  color: #e5f9ff;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.site-logo span {
  color: var(--primary-color);
}

.site-logo img {
  max-height: 60px;
  width: auto;
  display: block;
}

/* NAV – masaüstü + açılır alt menü */
.main-nav {
  display: flex;
  align-items: center;
}

/* tüm listeler */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* üst seviye liste */
.main-nav > ul {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e2e8f0;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  display: inline-block;
}

.main-nav a:hover {
  color: #ffffff;
  border-color: var(--primary-color);
}

/* Alt menü (sub-menu) – masaüstü */
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: #071226;
  border-radius: 0 0 0.75rem 0.75rem;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: none;
  z-index: 30;
}

.main-nav .sub-menu li {
  width: 100%;
}

.main-nav .sub-menu a {
  font-size: 0.86rem;
  padding: 0.4rem 0.9rem;
  width: 100%;
  white-space: normal;
  border-bottom: none;
}

.main-nav .sub-menu a:hover {
  background: rgba(15, 23, 42, 0.7);
  border-color: transparent;
}

/* Hover ile alt menüyü göster */
.main-nav li:hover > .sub-menu {
  display: block;
}

/* Hamburger button (mobil) */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #e2e8f0;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero – büyük görsel */
.hero {
  position: relative;
  overflow: hidden;
  color: #e5f9ff;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at top left, var(--primary-color) 0, #0ea5e9 22%, #0f172a 60%, var(--navy) 100%);
  background-size: cover;
  background-position: center center;
}

/* Üstte hafif renk parlamaları */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(38px);
  opacity: 0.35;
  pointer-events: none;
}

.hero::before {
  width: 280px;
  height: 280px;
  background: rgba(249, 115, 22, 0.85);
  top: -60px;
  right: -40px;
}

.hero::after {
  width: 240px;
  height: 240px;
  background: rgba(34, 193, 195, 0.85);
  bottom: -80px;
  left: -60px;
}

.hero-inner {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
    align-items: center;
  }
}

.hero-title {
  font-size: 2.1rem;
  margin: 0 0 0.75rem;
}

.hero-title span {
  color: var(--accent-color); /* turuncu vurgu */
}

.hero-subtitle {
  font-size: 1rem;
  color: #d1e9ff;
  max-width: 600px;
}

/* Tekil blog / hizmet sayfası üst görseli */
.single-hero {
  margin-bottom: 1.5rem;
  border-radius: 1.2rem;
  overflow: hidden;
}

.single-hero-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.hero-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.75rem;
  color: #cbd5f5;
  background: rgba(15, 23, 42, 0.5);
}

.hero-buttons {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), #ea580c);
  color: #0f172a;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5f9ff;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.6);
}

/* Hero sağ kutu */
.hero-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.9rem;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.6);
  animation: floatCard 7s ease-in-out infinite;
}

.hero-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
  color: #cbd5f5;
}

.hero-card-list li {
  margin-bottom: 0.35rem;
  position: relative;
  padding-left: 0.9rem;
}

.hero-card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
}

/* Sections */
.section {
  padding: 3rem 0;
  position: relative;
}

/* Yumuşak açık zemin */
.section--soft {
  background: linear-gradient(135deg, var(--light-section), #ffffff);
}

/* Band gibi bölüm */
.section--band {
  background:
    radial-gradient(circle at top, rgba(56,189,248,0.13) 0, transparent 50%),
    linear-gradient(180deg, #e0f2fe, #ecfdf5);
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

/* Koyu, desenli bölüm (yorumlar) */
.section--muted {
  background:
    radial-gradient(circle at top left, rgba(34,193,195,0.25) 0, transparent 45%),
    radial-gradient(circle at bottom right, rgba(15,118,110,0.28) 0, transparent 50%),
    var(--navy);
  color: #e5e7eb;
}

/* Bölüm başlıkları */
.section-header {
  margin-bottom: 1.5rem;
}

.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  color: #0f766e;
}

.section--muted .section-eyebrow {
  color: #67e8f9;
}

.section-title {
  position: relative;
  font-size: 1.5rem;
  margin: 0.1rem 0 0.9rem;
  color: var(--text-main);
}

.section--muted .section-title {
  color: #e5e9f0;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 82px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-color), #0ea5e9, var(--accent-color));
  background-size: 180% 100%;
  animation: gradientShift 7s ease-in-out infinite;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #4b5563;
  max-width: 620px;
}

.section--muted .section-subtitle {
  color: #cbd5f5;
}

/* Hakkımda */
.about-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  }
}

.about-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
}

.section--soft .about-card:nth-child(1) {
  background: linear-gradient(135deg, var(--light-section), #ffffff);
}

.about-meta {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0.6rem;
}

.about-photo-card {
  background: #020617;
  border-radius: 1rem;
  padding: 0.4rem;
  border: 1px solid rgba(30, 64, 175, 0.5);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.7);
}

.about-photo {
  border-radius: 0.9rem;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Çalışma Alanlarım */
.grid-3 {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.service-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  font-size: 0.92rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(34,193,195,0.18) 0, transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.service-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  position: relative;
}

.service-card p {
  margin: 0;
  color: #6b7280;
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.09);
  border-color: var(--primary-color);
  background: #f9fafb;
}

.service-card:hover::before {
  opacity: 1;
}

/* Hizmet kartı içindeki görseller */
.service-thumb {
  margin-bottom: 0.75rem;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #e5f3ff;
}

.service-thumb img,
.service-thumb-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;   /* kare oran */
  object-fit: cover;
  display: block;
}

.service-thumb-placeholder {
  background: linear-gradient(135deg, #e5f3ff, #bae6fd);
}

/* Danışan yorumları */
.testimonials-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.testimonial-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  font-size: 0.88rem;
  position: relative;
}

.section--muted .testimonial-card {
  background: radial-gradient(circle at top left, rgba(34,193,195,0.24) 0, rgba(15,23,42,1) 45%);
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
}

.testimonial-label {
  font-weight: 600;
  font-size: 0.8rem;
  color: #0f766e;
  margin-bottom: 0.4rem;
}

.section--muted .testimonial-label {
  color: #a5f3fc;
}

.testimonial-content {
  color: #4b5563;
}

.section--muted .testimonial-content {
  color: #e5e7eb;
}

/* Blog – ana sayfa önizleme */
.blog-preview-list {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .blog-preview-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-preview-item {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  font-size: 0.9rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.blog-preview-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.blog-meta {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.3rem;
}

.blog-preview-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  border-color: var(--primary-color);
}

/* Blog öne çıkan görsel (kart) */
.blog-preview-thumb {
  margin-bottom: 0.6rem;
  border-radius: 0.75rem;
  overflow: hidden;
  display: block;
}

.blog-preview-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.blog-preview-item:hover .blog-preview-thumb img {
  transform: scale(1.03);
}

/* Sayfa / yazı genel içerik */
.page-wrap {
  padding: 2.5rem 0;
}

.page-header {
  margin-bottom: 1rem;
}

.page-title {
  font-size: 1.6rem;
  margin: 0 0 0.2rem;
}

.page-content {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
}

.page-content p {
  margin-bottom: 0.8rem;
}

/* Single post meta */
.post-meta {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 0.6rem;
}

/* İletişim kartı – tek blok (anasayfa) */
.contact-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.4rem;
  border: 1px solid #e2e8f0;
  font-size: 0.92rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
}

/* İletişim sayfası – modern layout (özel HTML ile) */
.contact-layout {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.contact-panel {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
}

.contact-panel h3 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
  color: var(--navy);
}

/* Sol panel (iletişim) hafif gradient */
.contact-panel--info {
  background: radial-gradient(circle at top left, rgba(14,165,233,0.08) 0, transparent 55%), #ffffff;
}

/* Sağ panel (randevu) açık mavi arka plan */
.contact-panel--notes {
  background: linear-gradient(135deg, #e0f2fe, #f9fafb);
}

/* Tek tek satırlar */
.contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(14,165,233,0.1);
  color: var(--navy);
  font-size: 1.1rem;
}

.contact-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.1rem;
}

.contact-link {
  font-size: 0.9rem;
  color: #0f766e;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-text {
  margin: 0.1rem 0 0.6rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.contact-note {
  font-size: 0.82rem;
  color: #6b7280;
  margin-top: 0.9rem;
  border-top: 1px dashed #e5e7eb;
  padding-top: 0.6rem;
}

/* Randevu listesi */
.contact-list {
  padding-left: 1.2rem;
  margin: 0 0 0.8rem;
  font-size: 0.92rem;
  color: #374151;
}

.contact-list li {
  margin-bottom: 0.4rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .site-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.site-footer a {
  color: #e5f9ff;
}

/* Floating buttons – WhatsApp & Telefon */
.floating-buttons {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.floating-btn {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-color);
  color: #020617;
  border: 1px solid rgba(15, 23, 42, 0.25);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.floating-btn--call {
  background: #0f766e;
  color: #ecfeff;
}

.floating-btn svg {
  width: 1.6rem;
  height: 1.6rem;
  display: block;
}

.floating-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.35);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left {
  transform: translate(-24px, 24px);
}

.reveal-right {
  transform: translate(24px, 24px);
}

.reveal-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Animations */
@keyframes floatCard {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Tablet & mobil uyum – HERO yeniden düzenlendi */
@media (max-width: 900px) {
  .container {
    padding: 0 1.3rem;
  }

  .site-header-inner {
    padding: 0.6rem 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--navy);
    padding: 0.6rem 1.3rem 0.9rem;
    display: none;
  }

  /* hamburger açıkken */
  .main-nav.is-open {
    display: block;
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .main-nav a {
    font-size: 0.92rem;
  }

  /* mobilde alt menüleri parent altında sade liste gibi göster */
  .main-nav .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.2rem 0 0.4rem 1rem;
    display: block;
  }

  .main-nav .sub-menu a {
    padding: 0.25rem 0;
  }

  /* HERO – tablet ve mobil genel ayarlar */
  .hero {
    min-height: auto; /* çok kasmasın, padding işi çözer */
  }

  .hero-inner {
    grid-template-columns: 1fr;      /* tek sütun */
    padding: 4rem 0 3.4rem;          /* üst-alt daha fazla boşluk */
    row-gap: 2.4rem;
  }

  /* Hero ana metin bloğunu ortala */
  .hero .reveal-left {
    max-width: 32rem;
    margin-inline: auto;
  }

  /* Kart: tam genişlikte, sola hizalı */
  .hero .hero-card {
    width: 100%;
    margin-top: 2.4rem;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1.25;
    text-align: left;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-tags,
  .hero-buttons {
    justify-content: flex-start;
  }

  .blog-preview-thumb img {
    height: 170px;
  }
}

/* Küçük telefonlar – daha da rahat dursun */
@media (max-width: 640px) {
  .container {
    padding: 0 1.2rem;
  }

  .section {
    padding: 2.4rem 0;
  }

  .hero-inner {
    padding: 4.4rem 0 3.6rem;  /* ekstra nefes */
  }

  .hero-title {
    font-size: 1.55rem;        /* bir tık küçültüldü */
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .blog-preview-list {
    grid-template-columns: 1fr;
  }

  .floating-buttons {
    right: 0.9rem;
    bottom: 0.9rem;
  }
}
