/*
Theme Name: Elci Tobacco
Theme URI: https://example.com
Author: Elci Tobacco
Description: Adana odakli, yonetilebilir iletisim kanallari ve yerel SEO icin optimize edilmis modern WordPress temasi.
Version: 1.0.24
Requires at least: 6.0
Tested up to: 6.9
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: elci-tobacco
*/

:root {
  --bg: #0f1419;
  --bg-elevated: #1a222d;
  --surface: #243040;
  --text: #e8ecf1;
  --text-muted: #9aa5b5;
  --accent: #c9a227;
  --accent-soft: rgba(201, 162, 39, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(201, 162, 39, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(36, 48, 64, 0.5), transparent);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Global hard stop for unintended horizontal scroll on mobile */
@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden !important;
  }
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #e4c65a;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1rem 0;
  flex-wrap: nowrap;
  position: relative;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
}

.site-title a {
  color: var(--text);
}

.site-description {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-branding .custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.site-branding .custom-logo {
  max-height: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.float-action--phone {
  background: var(--surface);
  border-color: rgba(201, 162, 39, 0.35);
}

.float-action--phone:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--accent);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--accent);
}

/* Mobil menÃ¼ tetikleyici */
.menu-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  z-index: 120;
}

.menu-toggle:hover {
  border-color: rgba(201, 162, 39, 0.45);
}

.menu-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 22px;
}

.menu-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header--nav-open .menu-toggle__bars {
  gap: 0;
  position: relative;
}

.site-header--nav-open .menu-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header--nav-open .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header--nav-open .menu-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(8, 10, 14, 0.62);
    backdrop-filter: blur(4px);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav-backdrop.nav-backdrop--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(92vw, 320px);
    max-width: 92vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 5.25rem 1.35rem 2rem;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 115;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .site-header--nav-open .main-nav {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.15rem;
    align-items: stretch;
  }

  .main-nav a {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
  }

  .main-nav a:hover,
  .main-nav .current-menu-item a {
    background: var(--accent-soft);
  }

  body.nav-open {
    width: 100%;
    overflow-x: hidden !important;
  }
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5rem) 0;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 20% 10% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  pointer-events: none;
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero__brand {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f2e2a6;
  text-shadow: 0 0 18px rgba(201, 162, 39, 0.22);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.5vw, 2.85rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: min(100%, 38rem);
  margin-inline: auto;
  text-wrap: balance;
}

.hero__lead {
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: linear-gradient(145deg, #d4b03a, #a67c1a);
  color: #1a1408;
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  color: #1a1408;
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Cards grid */
.features {
  padding: 2rem 0 4rem;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(201, 162, 39, 0.35);
  transform: translateY(-3px);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Anasayfa SEO bloklarÄ± */
.seo-home-blocks {
  padding: 0 0 3rem;
}

.seo-section {
  margin-bottom: 2rem;
}

.seo-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
}

.seo-section h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.65rem;
}

.seo-section p,
.seo-section li {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.seo-muted {
  font-size: 0.9rem !important;
  color: var(--text-muted);
  opacity: 0.95;
}

.seo-district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.seo-district {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}

.seo-checklist {
  margin: 0;
  padding-left: 1.25rem;
}

.seo-checklist li {
  margin-bottom: 0.4rem;
}

.seo-service-keywords {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.seo-service-keywords li {
  margin-bottom: 0.45rem;
}

.seo-product-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.seo-product-columns ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.seo-faq-list {
  margin: 0;
}

.seo-faq-list dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 1rem;
}

.seo-faq-list dt:first-child {
  margin-top: 0;
}

.seo-faq-list dd {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.seo-home-custom.entry-content {
  max-width: none;
}

/* Mahalle dizini (SEO) */
.seo-mahalle-directory {
  margin-top: 1rem;
}

.seo-mahalle-details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  padding: 0.25rem 1rem 1rem;
}

.seo-mahalle-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
}

.seo-mahalle-summary::-webkit-details-marker {
  display: none;
}

.seo-mahalle-summary::after {
  content: "â–¾";
  font-size: 0.85rem;
  color: var(--accent);
  margin-inline-start: 0.5rem;
}

.seo-mahalle-details[open] .seo-mahalle-summary::after {
  content: "â–´";
}

.seo-mahalle-summary__count {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.seo-mahalle-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  column-width: 12rem;
  column-gap: 1.5rem;
}

.seo-mahalle-ul li {
  break-inside: avoid;
  padding: 0.2rem 0;
  padding-left: 0.85rem;
  position: relative;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.seo-mahalle-ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

.seo-mahalle-link {
  color: inherit;
  text-decoration: none;
}

.seo-mahalle-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.seo-mahalle-summary__title-link {
  color: inherit;
  text-decoration: none;
}

.seo-mahalle-summary__title-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.region-block__title-link,
.mahalle-link {
  color: var(--text);
  text-decoration: none;
}

.region-block__title-link:hover,
.mahalle-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 520px) {
  .seo-mahalle-ul {
    column-width: auto;
    columns: 1;
  }
}

@media (max-width: 900px) {
  .seo-mahalle-ul {
    column-width: auto;
    columns: 1;
  }

  .seo-mahalle-summary {
    font-size: 1.05rem;
  }

  .seo-mahalle-ul li {
    font-size: 0.96rem;
  }
}

/* Content area */
.content-area {
  padding: 2rem 0 4rem;
  flex: 1;
}

.content-area--page {
  padding-top: 3rem;
}

.entry-header {
  margin-bottom: 2rem;
}

.entry-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.entry-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.entry-content {
  max-width: 68ch;
}

.entry-content h2,
.entry-content h3 {
  font-family: var(--font-display);
  margin-top: 2rem;
}

.entry-content p {
  margin: 0 0 1.25rem;
}

.legal-notice {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  background: var(--accent-soft);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-notice strong {
  color: var(--text);
}

/* Posts list */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: border-color 0.2s ease;
}

.post-card:hover {
  border-color: rgba(201, 162, 39, 0.3);
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.post-card__excerpt {
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Floating actions */
.float-actions {
  position: fixed !important;
  right: clamp(0.7rem, 2.5vw, 1rem) !important;
  bottom: max(1rem, env(safe-area-inset-bottom)) !important;
  left: auto !important;
  z-index: 999999 !important;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.float-actions a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.35rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  pointer-events: auto;
}

.float-actions a:hover {
  transform: scale(1.08);
  border-color: var(--accent);
  color: var(--accent);
}

.float-actions a[href*="wa.me"],
.float-actions a[href*="whatsapp"] {
  background: #25d366;
  border-color: #1da851;
  color: #fff;
}

.float-action--whatsapp {
  background: #25d366;
  border-color: #1da851;
  color: #fff;
}

.float-action--whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: #fff;
}

.float-actions a[href*="instagram"] {
  background: linear-gradient(135deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
  border: none;
  color: #fff;
}

.float-action--instagram {
  background: linear-gradient(135deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
  border: none;
  color: #fff;
}

.float-action--instagram:hover {
  background: linear-gradient(135deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
  border: none;
  color: #fff;
}

.float-actions a[href*="maps.google"],
.float-actions a[href*="goo.gl/maps"] {
  background: #4285f4;
  border-color: #3367d6;
  color: #fff;
}

.float-action--maps {
  background: #4285f4;
  border-color: #3367d6;
  color: #fff;
}

.float-action--maps:hover {
  background: #3367d6;
  border-color: #3367d6;
  color: #fff;
}

/* Screen reader */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Pagination */
.pagination {
  margin-top: 3rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.pagination .current {
  border-color: var(--accent);
  color: var(--accent);
}

/* WordPress blocks compatibility */
.alignwide {
  max-width: min(1120px, 92vw);
  margin-inline: auto;
}

.wp-block-image figcaption {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Hizmet bÃ¶lgeleri ÅŸablonu */
.regions-page .regions-intro {
  max-width: 68ch;
  margin-bottom: 1.5rem;
}

.regions-lead {
  color: var(--text-muted);
  max-width: 65ch;
  margin: 0 0 2rem;
  font-size: 1.02rem;
}

.region-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.region-block:last-of-type {
  border-bottom: none;
}

.region-block__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.region-block__count {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.mahalle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.35rem 1.25rem;
}

.mahalle-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.mahalle-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

@media (max-width: 640px) {
  .main-nav ul {
    width: 100%;
    justify-content: center;
  }

  .float-actions {
    right: clamp(0.55rem, 2.2vw, 0.8rem) !important;
    bottom: max(0.7rem, env(safe-area-inset-bottom)) !important;
    left: auto !important;
    gap: 0.5rem;
  }
}

/* Mobile quality pass */
@media (max-width: 900px) {
  .container {
    width: min(1120px, 94vw);
  }

  .site-header__inner {
    padding: 0.8rem 0;
  }

  .site-branding .custom-logo {
    max-height: 68px;
  }

  .hero {
    padding: 2.2rem 0 2.6rem;
  }

  .hero::after {
    inset: 14% 6% auto;
  }

  .hero__brand {
    font-size: clamp(1rem, 4.2vw, 1.2rem);
    letter-spacing: 0.12em;
    margin-bottom: 0.7rem;
  }

  .hero__badge {
    font-size: 0.66rem;
    letter-spacing: 0.09em;
    padding: 0.34rem 0.7rem;
    margin-bottom: 0.9rem;
  }

  .hero__title {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    line-height: 1.23;
    margin-bottom: 0.85rem;
    max-width: 22ch;
  }

  .hero__lead {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.35rem;
    max-width: 34ch;
  }

  .hero__actions {
    width: 100%;
    gap: 0.7rem;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 360px;
    min-height: 48px;
    font-size: 0.98rem;
    padding: 0.85rem 1rem;
  }

  .features {
    padding: 1rem 0 2.5rem;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .card {
    padding: 1.2rem;
    border-radius: 12px;
  }

  .card__title {
    font-size: 1.2rem;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 1.8rem;
  }

  .hero__title {
    font-size: clamp(1.55rem, 8vw, 1.95rem);
  }

  .hero__lead {
    font-size: 0.97rem;
    max-width: 32ch;
  }

  .float-actions a {
    width: 46px;
    height: 46px;
  }
}
