/* --- DOMAIN PORTAL THEME 2025 (Light + Dark) --- */

/* 1) Design tokens (light as default) */
:root{
  --primary: #0d6efd;
  --secondary: #6c757d;
  --bg: #fbfdff;
  --text: #212529;
  --muted: #667085;
  --card: #ffffff;
  --border: #dee2e6;
  --shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.07);
  --radius: 0.5rem;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Accent bar overlay pattern */
  --accent-overlay: linear-gradient(45deg, rgba(255,255,255,.12) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.12) 75%, transparent 75%, transparent) repeat;
}

/* 2) Dark theme override */
:root[data-theme="dark"]{
  --primary: #93c5fd;
  --secondary: #a3aab3;
  --bg: #0b0f16;
  --text: #e8edf4;
  --muted: #9aa4b2;
  --card: #121826;
  --border: #1f2a3a;
  --shadow: 0 12px 26px rgba(0,0,0,.35);
}

/* 3) Reset & base */
*,*::before,*::after{ box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.container{
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 4) Topbar (theme switch) */
.site-topbar{
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
}
.brand{
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  letter-spacing: .2px;
}
.brand .dot{
  width: .65rem; height: .65rem; border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, .15);
}
.theme-toggle{
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; border: 1px solid var(--border); color: var(--text);
  padding: .5rem .75rem; border-radius: 999px; cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.04);
}
.theme-toggle:hover{ background: rgba(13, 110, 253, .06); }
.theme-toggle .toggle-text{ font-weight: 600; font-size: .9rem; }

/* 5) Hero (home) */
.hero-section{
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 5rem 0 3.25rem;
  text-align: center;
  margin-bottom: 3rem;
}
:root[data-theme="dark"] .hero-section{
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.hero-section h1{
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0 0 1rem;
}
.hero-section p{
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 640px;
  margin-inline: auto;
}

/* 6) Search */
.search-bar{ max-width: 560px; margin: 0 auto; position: relative; }
.search-bar input{
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  font-size: 1rem;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
}
.search-bar input:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
}

/* 7) List header */
.list-header{
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 18px 0 10px;
}
.list-header h2{ font-size: 2rem; margin: 0; }
.muted{ color: var(--muted); font-size: .95rem; }

/* 8) Grid: force 2 cols (desktop), 1 col (mobile) */
#domain-list-container .domain-grid{
  list-style: none; padding: 0; margin: 18px 0 28px;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 2rem !important;
}
#domain-list-container .domain-grid > li{
  margin: 0 !important; padding: 0 !important; width: auto !important; flex: 0 0 auto !important;
}
@media (max-width: 768px){
  #domain-list-container .domain-grid{ grid-template-columns: 1fr !important; }
}

/* 9) Domain card */
.domain-card{
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
/* Accent bar (thicker + pattern overlay) */
.card-accent{
  height: 10px; width: 100%;
  background-image: var(--card-accent, linear-gradient(135deg, #4f46e5, #06b6d4));
  position: relative;
}
.card-accent .accent-overlay{
  position: absolute; inset: 0;
  background: var(--accent-overlay);
  background-size: 12px 12px;
  opacity: .25; pointer-events: none;
}
.domain-card:hover{
  transform: translateY(-6px);
  border-color: rgba(13,110,253,.45);
  box-shadow: 0 1.25rem 2.25rem rgba(0,0,0,.12);
}
.card-body{ padding: 1.25rem 1.25rem 1.5rem; }
.badge{
  display: inline-block; font-size: .8rem; letter-spacing: .3px;
  padding: .4rem .6rem; border-radius: 999px;
  background: rgba(13,110,253,.10); color: var(--primary);
  border: 1px solid rgba(13,110,253,.30); margin-bottom: .5rem;
}
.domain-name{
  margin: .25rem 0 .35rem; font-size: 1.5rem; font-weight: 700; line-height: 1.2;
}
.domain-slogan{
  margin: 0 0 .9rem; color: var(--muted); line-height: 1.55;
}
.domain-slogan--muted { opacity: .85; }
.btn-outline{
  display: inline-block; font-size: .95rem; padding: .55rem .8rem;
  border-radius: .6rem; border: 1px solid var(--border);
  color: var(--text); transition: background .15s ease, color .15s ease, border-color .15s ease;
  width: fit-content;
}
.domain-card:hover .btn-outline{
  background: rgba(13,110,253,.08);
  border-color: rgba(13,110,253,.35);
}

/* 10) Empty/No results/Footer */
.no-results, .empty-state{
  text-align: center; color: var(--muted); padding: 20px 0 32px;
}
.site-footer{
  background: var(--card);
  border-top: 1px solid var(--border);
  margin-top: 2rem; padding: 2rem 0;
  color: var(--secondary); text-align: center;
}

/* =========================
   DETAIL PAGE (domain.php)
   ========================= */
.hero{
  color: #fff;
  padding: 6rem 1.5rem;
  text-align: center;
  border-radius: 0 !important; /* request: no radius */
}
.hero h1{ font-size: 3rem; margin: 0; font-weight: 700; letter-spacing: .5px; color: #fff; }
.hero h2{ font-size: 1.25rem; margin: 10px 0; font-weight: 500; color: #fff; opacity: .95; }
.hero h3{ font-size: 1.05rem; font-weight: 500; color: #fff; opacity: .95; }

/* Breadcrumb (Back + Visit Website) */
.breadcrumb-nav{
  display: flex; gap: 12px; align-items: center; margin: 14px 0 24px; flex-wrap: wrap;
}
.breadcrumb-nav a{
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .95rem;
  color: var(--secondary); background: var(--card);
  padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
}
.breadcrumb-nav a:hover{ background: #f6f7fb; }
:root[data-theme="dark"] .breadcrumb-nav a:hover{ background: #172032; }
.breadcrumb-nav .sep{ color: var(--muted); user-select: none; }

.section{ padding: 3rem 0; }
.section h2{
  font-size: 2rem; margin-bottom: 2rem; color: var(--text); text-align: center;
}
.features{
  list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.features li{
  background: var(--card); padding: 1.25rem; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  font-size: 1rem; color: var(--text);
}
@media (max-width: 768px){ .features{ grid-template-columns: 1fr; } }

.cta-section{
  background: var(--card); padding: 2rem; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow); text-align: center;
}
.whatsapp-button{
  display: inline-block; background: #22c55e; color: #fff; padding: .9rem 1.4rem;
  font-size: 1.05rem; border-radius: 999px; text-decoration: none; font-weight: 700;
  box-shadow: 0 10px 22px -8px rgba(34, 197, 94, .5);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.whatsapp-button:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(34, 197, 94, .55);
  opacity: .97;
}
footer{ text-align: center; color: var(--secondary); padding: 20px 0 30px; }

/* --- MOBILE OVERFLOW FIXES --- */

/* 1) Yatay kaymayı tamamen kapat (güvenlik ağı) */
html, body { overflow-x: hidden; }

/* 2) Container padding'i mobilde optimize */
.container { padding-inline: clamp(12px, 4vw, 24px); }

/* 3) Grid ve kartların shrink edilebilmesi için min-width sıfırla */
#domain-list-container .domain-grid,
#domain-list-container .domain-grid > li,
.domain-card,
.card-body {
  min-width: 0;
}

/* 4) Uzun domain adları ve hero başlıkları için satır kırma kuralları */
.domain-name,
.hero h1 {
  overflow-wrap: anywhere;   /* en agresif ve modern çözüm */
  word-break: break-word;    /* eski motorlar için */
  hyphens: auto;             /* tireleme destekli dillerde */
}

/* 5) Hero başlığı mobilde bir tık daha küçük olsun */
@media (max-width: 480px){
  .hero-section h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .hero h1          { font-size: clamp(1.6rem, 7vw, 2.4rem); }
}

/* 6) Kart içindeki metinlerin taşmaması için */
.domain-slogan,
.btn-outline { max-width: 100%; }

/* 7) Grid boşluklarını mikroskobik ekranlarda azalt */
@media (max-width: 360px){
  #domain-list-container .domain-grid { gap: 1.125rem !important; }
}

/* --- HERO H1 WRAP HARDEN --- */
.hero {
  padding-left: clamp(12px, 4vw, 24px);
  padding-right: clamp(12px, 4vw, 24px);
}

.hero h1{
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.1;
  /* kırma kuralları - agresif mod */
  overflow-wrap: anywhere;
  word-break: break-word;    /* eski motorlar */
  word-wrap: break-word;     /* legacy alias */
  hyphens: auto;             /* tireleme destekliyse */
}

@media (max-width: 480px){
  .hero h1{ font-size: clamp(1.4rem, 8vw, 2.2rem); }
}

