/*
Theme Name: Didik Didik - Ev ve Yaşam Çözümleri
Theme URI: https://didikdidik.com.tr
Author: Didik Didik Mühendislik & Strateji Ekibi
Author URI: https://didikdidik.com.tr
Description: Türkiye'nin 1 numaralı ev ve yaşam arıza teşhis, pratik tamirat, kök neden analizi, fatura hacking ve tüketici hakları teması. Google News, GeoSEO ve Schema.org standartlarıyla %100 uyumlu.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: didikdidik
*/

:root {
  --dd-primary: #0f172a;
  --dd-secondary: #0284c7;
  --dd-accent: #f97316;
  --dd-accent-hover: #ea580c;
  --dd-success: #10b981;
  --dd-warning: #f59e0b;
  --dd-danger: #ef4444;
  --dd-bg: #f8fafc;
  --dd-card-bg: #ffffff;
  --dd-text: #1e293b;
  --dd-muted: #64748b;
  --dd-border: #e2e8f0;
  --dd-radius: 12px;
  --dd-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --dd-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--dd-font); background: var(--dd-bg); color: var(--dd-text); line-height: 1.7; font-size: 16px; }
a { color: var(--dd-secondary); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--dd-accent); }
img { max-width: 100%; height: auto; display: block; }

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

/* HEADER */
.site-header { background: #ffffff; border-bottom: 2px solid var(--dd-border); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.site-logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 900; color: var(--dd-primary); letter-spacing: -0.5px; }
.site-logo span { color: var(--dd-accent); }
.site-logo .badge-tag { font-size: 11px; font-weight: 700; background: #ffedd5; color: var(--dd-accent); padding: 2px 8px; border-radius: 6px; text-transform: uppercase; }

.header-search { flex: 1; max-width: 480px; margin: 0 30px; position: relative; }
.header-search input { width: 100%; padding: 12px 18px 12px 42px; border: 2px solid var(--dd-border); border-radius: 999px; background: #f8fafc; font-size: 14px; outline: none; transition: 0.2s; }
.header-search input:focus { border-color: var(--dd-secondary); background: #ffffff; box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15); }
.header-search .search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--dd-muted); }

.nav-links { display: flex; gap: 20px; list-style: none; font-size: 14px; font-weight: 600; }
.nav-links a { color: var(--dd-text); }
.nav-links a:hover { color: var(--dd-secondary); }

/* HERO BANNER */
.hero-section { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #ffffff; padding: 60px 0 50px; text-align: center; position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(249, 115, 22, 0.15); border: 1px solid rgba(249, 115, 22, 0.4); color: #fdba74; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.hero-title { font-size: 38px; font-weight: 900; line-height: 1.25; margin-bottom: 16px; letter-spacing: -0.5px; }
.hero-title span { color: var(--dd-accent); }
.hero-subtitle { font-size: 18px; color: #94a3b8; max-width: 720px; margin: 0 auto 30px; }
.hero-search-box { max-width: 680px; margin: 0 auto; display: flex; background: #ffffff; border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-search-box input { flex: 1; border: none; outline: none; padding: 14px 24px; font-size: 16px; border-radius: 999px; color: var(--dd-text); }
.hero-search-box button { background: var(--dd-accent); color: #ffffff; border: none; padding: 14px 32px; font-size: 16px; font-weight: 700; border-radius: 999px; cursor: pointer; transition: 0.2s; }
.hero-search-box button:hover { background: var(--dd-accent-hover); }

/* QUICK PILL BUTTONS */
.hero-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; font-size: 13px; }
.hero-tags a { background: rgba(255,255,255,0.1); color: #e2e8f0; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.15); }
.hero-tags a:hover { background: var(--dd-accent); border-color: var(--dd-accent); color: #ffffff; }

/* CATEGORY GRID */
.section-title { font-size: 24px; font-weight: 800; color: var(--dd-primary); margin: 50px 0 24px; display: flex; align-items: center; justify-content: space-between; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.cat-card { background: #ffffff; border: 1px solid var(--dd-border); border-radius: var(--dd-radius); padding: 22px 18px; text-align: center; transition: 0.2s; box-shadow: var(--dd-shadow); }
.cat-card:hover { transform: translateY(-3px); border-color: var(--dd-secondary); box-shadow: 0 8px 25px rgba(2, 132, 199, 0.12); }
.cat-icon { font-size: 32px; margin-bottom: 10px; }
.cat-name { font-size: 16px; font-weight: 700; color: var(--dd-primary); }
.cat-desc { font-size: 12px; color: var(--dd-muted); margin-top: 4px; }

/* POSTS GRID */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-bottom: 50px; }
.post-card { background: #ffffff; border: 1px solid var(--dd-border); border-radius: var(--dd-radius); overflow: hidden; box-shadow: var(--dd-shadow); transition: 0.2s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1); }
.post-thumb { position: relative; height: 200px; overflow: hidden; background: #0f172a; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-body { padding: 22px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.post-title { font-size: 18px; font-weight: 800; line-height: 1.4; margin-bottom: 10px; color: var(--dd-primary); }
.post-excerpt { font-size: 14px; color: var(--dd-muted); line-height: 1.6; margin-bottom: 16px; }
.post-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #94a3b8; border-top: 1px solid #f1f5f9; padding-top: 12px; }

/* ARTICLE SINGLE */
.article-breadcrumbs { font-size: 13px; color: var(--dd-muted); margin: 30px 0 14px; }
.article-title { font-size: 32px; font-weight: 900; line-height: 1.3; color: var(--dd-primary); margin-bottom: 16px; }
.article-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--dd-muted); margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--dd-border); }

/* TL;DR DIAGNOSTIC BOX */
.diagnostic-box { background: #fff7ed; border-left: 5px solid var(--dd-accent); border-radius: var(--dd-radius); padding: 24px; margin: 24px 0; border: 1px solid #fed7aa; }
.diagnostic-box h3 { font-size: 18px; font-weight: 800; color: #9a3412; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.diagnostic-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 14px; }
.diag-item { background: #ffffff; padding: 12px 16px; border-radius: 8px; border: 1px solid #ffedd5; }
.diag-label { font-size: 11px; text-transform: uppercase; font-weight: 700; color: #9a3412; }
.diag-val { font-size: 15px; font-weight: 800; color: var(--dd-primary); margin-top: 2px; }

/* SAFETY MATRIX BADGE */
.safety-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px; font-weight: 700; font-size: 13px; margin: 15px 0; }
.safety-green { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.safety-yellow { background: #fefce8; color: #854d0e; border: 1px solid #fef08a; }
.safety-red { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ARTICLE CONTENT */
.article-content { font-size: 17px; line-height: 1.85; color: #334155; }
.article-content h2 { font-size: 22px; font-weight: 800; color: var(--dd-primary); margin: 36px 0 16px; border-bottom: 2px solid #f1f5f9; padding-bottom: 8px; }
.article-content p { margin-bottom: 20px; }

/* FOOTER */
.site-footer { background: #0f172a; color: #94a3b8; padding: 60px 0 30px; margin-top: 80px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #ffffff; font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; }
.footer-col a:hover { color: #ffffff; }
.footer-disclaimer { border-top: 1px solid #1e293b; padding-top: 24px; text-align: center; font-size: 12px; color: #64748b; line-height: 1.6; }

@media (max-width: 900px) {
  .header-search { display: none; }
  .hero-title { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .article-title { font-size: 26px; }
}
