/*
Theme Name: SanaLLaRDizayn Sohbet
Theme URI: https://sanallardizayn.com
Author: SanaLLaRDizayn
Author URI: https://sanallardizayn.com
Description: SanaLLaRDizayn sohbet ve web tasarım hizmetleri teması. Siyah zemin, Türk bayrağı/ay-yıldız tasarım, mobil uyumlu, SEO uyumlu, schema yapılandırılmış veri, breadcrumb ve hızlı kurulum.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: sanallardizayn
*/

/* ============ Temel ============ */
:root {
  --sd-bg: #0a0a0f;
  --sd-surface: #14141c;
  --sd-surface-2: #1c1c26;
  --sd-border: #2a2a36;
  --sd-text: #f5f5f7;
  --sd-muted: #a3a3b2;
  --sd-primary: #e30a17;
  --sd-primary-dark: #b00812;
  --sd-radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--sd-bg);
  color: var(--sd-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

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

/* ============ Arka plan süsleri (bayrak) ============ */
.sd-bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.sd-bg-decor .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  background: rgba(227, 10, 23, 0.18);
}
.sd-bg-decor .glow-1 { width: 520px; height: 520px; top: -180px; right: -120px; }
.sd-bg-decor .glow-2 { width: 420px; height: 420px; bottom: -140px; left: -120px; opacity: .7; }
.sd-bg-decor .star-mark {
  position: absolute;
  bottom: 8%;
  right: 6%;
  font-size: 220px;
  color: rgba(227, 10, 23, 0.10);
  line-height: 1;
  user-select: none;
}

/* ============ Navbar ============ */
.sd-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sd-border);
}
.sd-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.sd-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}
.sd-brand .emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sd-primary);
  color: #fff;
  font-size: 18px;
}
.sd-brand .emblem svg { width: 22px; height: 22px; fill: #fff; }
.sd-brand .colored { color: var(--sd-primary); }

.sd-menu { display: flex; align-items: center; gap: 6px; list-style: none; }
.sd-menu a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sd-muted);
  transition: all .2s;
}
.sd-menu a:hover, .sd-menu .current-menu-item a, .sd-menu .current_page_item a {
  color: #fff;
  background: rgba(227, 10, 23, 0.15);
}
.sd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--sd-primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.sd-btn:hover { background: var(--sd-primary-dark); transform: translateY(-1px); }
.sd-btn-outline {
  background: transparent;
  border: 1px solid var(--sd-primary);
  color: var(--sd-primary) !important;
}
.sd-btn-outline:hover { background: rgba(227, 10, 23, 0.12); }
.sd-btn-lg { padding: 14px 30px; font-size: 16px; }

.sd-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--sd-border);
  color: var(--sd-text);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 20px;
  cursor: pointer;
}

/* ============ Hero ============ */
.sd-hero { position: relative; z-index: 1; padding: 90px 0 70px; }
.sd-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.sd-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}
.sd-hero h1 .red { color: var(--sd-primary); }
.sd-hero p.lead { color: var(--sd-muted); font-size: 18px; margin-bottom: 28px; }
.sd-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.sd-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--sd-surface);
  border: 1px solid var(--sd-border);
  color: var(--sd-muted);
  font-size: 13px;
  font-weight: 500;
}
.sd-chip b { color: #fff; }
.sd-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* Login kartı */
.sd-login-card {
  background: var(--sd-surface);
  border: 1px solid var(--sd-border);
  border-radius: 22px;
  padding: 34px 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.sd-login-card h2 { font-size: 22px; margin-bottom: 8px; }
.sd-login-card p { color: var(--sd-muted); font-size: 14px; margin-bottom: 22px; }
.sd-login-card .sd-btn { width: 100%; justify-content: center; }
.sd-store-badges { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.sd-store-badge {
  padding: 9px 16px;
  border-radius: 10px;
  background: #000;
  border: 1px solid var(--sd-border);
  font-size: 12px;
  color: var(--sd-muted);
}
.sd-store-badge b { display: block; color: #fff; font-size: 13px; }

/* Sohbet balonları */
.sd-chat-scene { display: flex; gap: 12px; margin-top: 22px; justify-content: center; flex-wrap: wrap; }
.sd-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  border: 3px solid rgba(255,255,255,.25);
  flex-shrink: 0;
}
.sd-avatar.a1 { background: linear-gradient(135deg, #e30a17, #ff6b81); }
.sd-avatar.a2 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.sd-avatar.a3 { background: linear-gradient(135deg, #ec4899, #e30a17); }
.sd-bubble {
  background: #fff;
  color: #111;
  padding: 9px 16px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 500;
  align-self: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.sd-chat-item { display: flex; align-items: center; gap: 10px; }

/* ============ Bölümler ============ */
.sd-section { position: relative; z-index: 1; padding: 70px 0; }
.sd-section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.sd-section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 12px; }
.sd-section-head h2 .red { color: var(--sd-primary); }
.sd-section-head p { color: var(--sd-muted); }

.sd-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sd-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.sd-card {
  background: var(--sd-surface);
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius);
  padding: 26px 22px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.sd-card:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 10, 23, 0.5);
  box-shadow: 0 16px 40px rgba(227, 10, 23, 0.12);
}
.sd-card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(227, 10, 23, 0.15);
  color: var(--sd-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.sd-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.sd-card p { color: var(--sd-muted); font-size: 13.5px; }

/* Blog kartı */
.sd-post-card { display: flex; flex-direction: column; }
.sd-post-card .meta { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.sd-post-card .cat {
  background: rgba(227, 10, 23, 0.15);
  color: var(--sd-primary);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}
.sd-post-card .date { color: var(--sd-muted); font-size: 12px; }
.sd-post-card h3 { font-size: 15px; line-height: 1.45; }
.sd-post-card p { margin: 8px 0 14px; flex: 1; }
.sd-post-card .more { color: var(--sd-primary); font-weight: 600; font-size: 13px; }
.sd-post-card .more:hover { text-decoration: underline; }

/* ============ Tek yazı ============ */
.sd-single { position: relative; z-index: 1; padding: 60px 0; }
.sd-single-card {
  background: var(--sd-surface);
  border: 1px solid var(--sd-border);
  border-radius: 22px;
  padding: 44px;
  max-width: 820px;
  margin: 0 auto;
}
.sd-single-card h1 { font-size: clamp(26px, 4vw, 38px); margin: 16px 0; line-height: 1.25; }
.sd-single-card .content { color: #d4d4de; margin-top: 20px; }
.sd-single-card .content p { margin-bottom: 18px; }
.sd-single-card .content h2, .sd-single-card .content h3 { color: #fff; margin: 26px 0 12px; }
.sd-single-card .content a { color: var(--sd-primary); }
.sd-single-card .content ul { margin: 0 0 18px 22px; }

.sd-breadcrumb { color: var(--sd-muted); font-size: 13px; margin-bottom: 10px; }
.sd-breadcrumb a { color: var(--sd-primary); }

/* ============ Footer ============ */
.sd-footer {
  position: relative;
  z-index: 1;
  background: #07070b;
  border-top: 1px solid var(--sd-border);
  padding: 56px 0 30px;
  margin-top: 40px;
}
.sd-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.sd-footer h4 { font-size: 15px; margin-bottom: 14px; }
.sd-footer p, .sd-footer li { color: var(--sd-muted); font-size: 13.5px; }
.sd-footer ul { list-style: none; }
.sd-footer li { margin-bottom: 9px; }
.sd-footer li a:hover { color: var(--sd-primary); }
.sd-footer-bottom {
  border-top: 1px solid var(--sd-border);
  padding-top: 22px;
  text-align: center;
  color: var(--sd-muted);
  font-size: 13px;
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .sd-hero-grid { grid-template-columns: 1fr; }
  .sd-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sd-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .sd-footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .sd-menu {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--sd-surface);
    border-bottom: 1px solid var(--sd-border);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
  }
  .sd-menu.open { display: flex; }
  .sd-menu-toggle { display: block; }
}
@media (max-width: 560px) {
  .sd-grid-3, .sd-grid-5 { grid-template-columns: 1fr; }
  .sd-single-card { padding: 26px 20px; }
  .sd-hero { padding: 56px 0 40px; }
}

/* WordPress uyumluluk */
.alignleft { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  overflow: hidden;
  width: 1px; height: 1px;
}
.sticky .sd-post-card { border-color: var(--sd-primary); }
