/* =====================================================
   Bodrum Custom Home – Ana Sayfa Stilleri
   ===================================================== */

:root {
  --ech-primary: #0c2e3a;
  --ech-accent: #1c9aa0;
  --ech-accent-hover: #167e83;
  --ech-bg: #f6f1e8;
  --ech-card: #ffffff;
  --ech-border: #e5e7eb;
  --ech-text: #1f2937;
  --ech-muted: #6b7280;
  --ech-radius: 14px;
  --ech-shadow: 0 4px 20px rgba(0,0,0,.06);
  --ech-shadow-hover: 0 8px 30px rgba(0,0,0,.1);
}

/* Ana sarmalayıcı */
.ech-home {
  background: var(--ech-bg);
  color: var(--ech-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

.ech-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- HERO ---------- */
.ech-hero {
  background: linear-gradient(135deg, #07262f 0%, #0a4450 48%, #14606a 100%);
  color: #fff;
  padding: 70px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ech-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(201,162,39,.22), transparent 52%);
  pointer-events: none;
}

.ech-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.ech-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ech-accent);
  margin-bottom: 12px;
  background: rgba(28,154,160,.18);
  padding: 5px 14px;
  border-radius: 50px;
}

.ech-hero .ech-hero-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -.02em;
  color: #fff;
}

.ech-lead {
  font-size: 17px;
  color: rgba(255,255,255,.8);
  margin: 0 0 32px;
  line-height: 1.7;
}

/* Arama kutusu */
.ech-search form {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}

.ech-search input[type="search"] {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--ech-text);
  outline: none;
  background: transparent;
}

.ech-search input::placeholder {
  color: #9ca3af;
}

.ech-search button {
  background: var(--ech-accent);
  color: #fff;
  border: none;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.ech-search button:hover {
  background: var(--ech-accent-hover);
}

/* ---------- SECTION GENEL ---------- */
.ech-section {
  padding: 50px 0;
}

.ech-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.ech-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ech-accent);
  margin-bottom: 4px;
}

.ech-section-heading h2,
.ech-info h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -.02em;
  color: var(--ech-primary);
}

/* ---------- ÖNEMLİ YAZI BÖLÜMÜ ---------- */
.ech-important {
  padding-top: 42px;
  padding-bottom: 42px;
}

.ech-info-article {
  max-width: 980px;
  margin: 0 auto;
  background: var(--ech-card);
  border: 1px solid var(--ech-border);
  border-radius: var(--ech-radius);
  padding: 34px 38px;
  box-shadow: var(--ech-shadow);
}

.ech-info-article h1.ech-main-title,
.ech-info-article h2 {
  font-size: 30px;
  margin: 6px 0 20px;
  letter-spacing: -.02em;
  color: var(--ech-primary);
}

.ech-info-article h3 {
  font-size: 21px;
  margin: 30px 0 10px;
  color: var(--ech-primary);
}

.ech-info-article p,
.ech-info-article li {
  color: #444;
  line-height: 1.75;
  font-size: 16px;
}

.ech-info-article ul {
  margin: 8px 0 18px;
  padding-left: 22px;
}

.ech-info-article li {
  margin-bottom: 6px;
}

.ech-warning {
  font-weight: 800 !important;
  color: #b42318 !important;
  background: #fff4f2;
  border-left: 4px solid #d92d20;
  padding: 13px 16px;
  border-radius: 6px;
  margin: 18px 0;
}

/* ---------- İLAN KARTLARI ---------- */
.ech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.ech-card {
  background: var(--ech-card);
  border: 1px solid var(--ech-border);
  border-radius: var(--ech-radius);
  overflow: hidden;
  box-shadow: var(--ech-shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

.ech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ech-shadow-hover);
}

.ech-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  background: #e5e7eb;
  overflow: hidden;
  position: relative;
}

.ech-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.ech-card:hover .ech-card-image img {
  transform: scale(1.04);
}

.ech-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--ech-muted);
  font-size: 14px;
}

.ech-card-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ech-card-cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--ech-accent);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.ech-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.35;
}

.ech-card-body h3 a {
  color: var(--ech-primary);
  text-decoration: none;
}

.ech-card-body h3 a:hover {
  color: var(--ech-accent);
}

.ech-card-body p {
  font-size: 14px;
  color: var(--ech-muted);
  margin: 0 0 14px;
  flex: 1;
  line-height: 1.55;
}

.ech-read-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ech-accent);
  text-decoration: none;
  margin-top: auto;
}

.ech-read-btn:hover {
  text-decoration: underline;
}

/* ---------- BUTONLAR ---------- */
.ech-outline-btn,
.ech-primary-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}

.ech-outline-btn {
  border: 1.5px solid var(--ech-border);
  color: var(--ech-primary);
  background: transparent;
}

.ech-outline-btn:hover {
  border-color: var(--ech-accent);
  color: var(--ech-accent);
  background: rgba(28,154,160,.08);
}

.ech-primary-btn {
  background: var(--ech-accent);
  color: #fff;
  border: none;
}

.ech-primary-btn:hover {
  background: var(--ech-accent-hover);
  color: #fff;
}

/* ---------- KATEGORİLER ---------- */
.ech-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.ech-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ech-card);
  border: 1px solid var(--ech-border);
  border-radius: 12px;
  padding: 22px 14px;
  text-decoration: none;
  text-align: center;
  transition: all .2s;
  box-shadow: var(--ech-shadow);
}

.ech-category:hover {
  border-color: var(--ech-accent);
  transform: translateY(-2px);
  box-shadow: var(--ech-shadow-hover);
}

.ech-category span {
  font-size: 15px;
  font-weight: 700;
  color: var(--ech-primary);
  margin-bottom: 4px;
}

.ech-category small {
  font-size: 12px;
  color: var(--ech-muted);
}

/* ---------- BLOG KARTLARI ---------- */
.ech-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.ech-info p {
  color: var(--ech-muted);
  margin: 8px 0 0;
  max-width: 520px;
  font-size: 15px;
}

.ech-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.ech-blog-card {
  background: var(--ech-card);
  border: 1px solid var(--ech-border);
  border-radius: var(--ech-radius);
  overflow: hidden;
  box-shadow: var(--ech-shadow);
  transition: transform .2s, box-shadow .2s;
}

.ech-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ech-shadow-hover);
}

.ech-blog-image {
  display: block;
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  overflow: hidden;
}

.ech-blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.ech-blog-card:hover .ech-blog-image img {
  transform: scale(1.04);
}

.ech-blog-body {
  padding: 18px 20px 22px;
}

.ech-blog-body time {
  font-size: 12px;
  color: var(--ech-muted);
  display: block;
  margin-bottom: 6px;
}

.ech-blog-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.35;
}

.ech-blog-body h3 a {
  color: var(--ech-primary);
  text-decoration: none;
}

.ech-blog-body h3 a:hover {
  color: var(--ech-accent);
}

.ech-blog-body p {
  font-size: 14px;
  color: var(--ech-muted);
  margin: 0 0 12px;
  line-height: 1.55;
}

.ech-blog-body > a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ech-accent);
  text-decoration: none;
}

.ech-blog-body > a:hover {
  text-decoration: underline;
}

/* ---------- BOŞ DURUM ---------- */
.ech-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ech-muted);
  font-size: 15px;
  background: var(--ech-card);
  border: 1px dashed var(--ech-border);
  border-radius: var(--ech-radius);
}

/* ---------- ERİŞİLEBİLİRLİK ---------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .ech-hero {
    padding: 50px 0 60px;
  }

  .ech-section {
    padding: 36px 0;
  }

  .ech-section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .ech-info {
    flex-direction: column;
  }

  .ech-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }

  .ech-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ech-info-article {
    padding: 24px 20px;
  }

  .ech-info-article h1.ech-main-title,
.ech-info-article h2 {
    font-size: 26px;
  }

  .ech-info-article h3 {
    font-size: 19px;
  }

  .ech-search form {
    flex-direction: column;
    border-radius: 12px;
  }

  .ech-search button {
    padding: 14px;
    border-radius: 0 0 12px 12px;
  }

  .ech-hero .ech-hero-title {
    font-size: 26px;
  }
}

/* ClassiPress header/footer ile uyum için ufak temizlik */
.izmit-custom-home-active .content-area,
.izmit-custom-home-active #primary {
  /* tema stillerinin bizim içeriği bozmasını engelle */
}

/* ClassiPress site-title H1'i ana sayfada görsel olarak küçült / p gibi davran */
.izmit-custom-home-active h1.site-title {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
  line-height: inherit;
}


/* Ortadaki yazı altı görsel */
.ech-info-image {
  margin: 28px 0 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
}
.ech-info-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
}
.ech-info-image:empty {
  display: none;
}

.ech-info-logo {
  text-align: center;
  margin: 28px auto 0;
  max-width: 180px;
}
.ech-info-logo img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto;
  max-height: none;
}
.ech-info-logo figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ech-muted, #6b7280);
}
