/* ============================================================
   360 Trafik — Ana Site Stili
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:  #0a3d8f;
  --blue:     #1a73e8;
  --accent:   #00b4d8;
  --text:     #1a2332;
  --muted:    #6b7a8d;
  --bg:       #f4f6fb;
  --card:     #ffffff;
  --border:   #e2e8f0;
}

body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- Header ---- */
.site-header { background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.header-top  { background: rgba(0,0,0,.2); padding: 5px 0; font-size: 12px; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.breaking    { background: #ef4444; padding: 2px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .5px; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.6} }
.header-main { padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img  { width: 46px; height: 46px; object-fit: contain; }
.logo strong { display: block; font-size: 22px; font-weight: 800; }
.logo span   { display: block; font-size: 11px; color: var(--accent); letter-spacing: 1.5px; }
.site-nav    { background: var(--blue); }
.site-nav .container { display: flex; overflow-x: auto; scrollbar-width: none; }
.site-nav a  { display: block; padding: 11px 16px; color: rgba(255,255,255,.85); font-size: 13px; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; transition: all .2s; }
.site-nav a:hover, .site-nav a.active { color: #fff; border-bottom-color: #fff; background: rgba(255,255,255,.08); }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page-grid  { display: grid; grid-template-columns: 1fr 310px; gap: 24px; padding: 24px 0 48px; }

/* ---- Öne Çıkan ---- */
.featured     { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 22px; cursor: pointer; background: var(--card); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.featured img { width: 100%; height: 420px; object-fit: cover; transition: transform .4s; }
.featured:hover img { transform: scale(1.03); }
.featured-placeholder { height: 420px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; }
.featured-placeholder i { font-size: 80px; color: rgba(255,255,255,.2); }
.featured-info  { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px 24px 22px; background: linear-gradient(to top, rgba(0,0,0,.85), transparent); }
.featured-cat   { display: inline-block; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; margin-bottom: 10px; }
.featured-title { font-size: 24px; font-weight: 800; color: #fff; line-height: 1.35; margin-bottom: 8px; }
.featured-meta  { font-size: 13px; color: rgba(255,255,255,.7); }

/* ---- Haber Kartları ---- */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.news-card  { background: var(--card); border-radius: 10px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,.05); transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.news-card img   { width: 100%; height: 158px; object-fit: cover; }
.news-card-no-img { height: 158px; background: linear-gradient(135deg, #e2e8f0, #cbd5e1); display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 30px; }
.news-card-body  { padding: 14px; }
.news-cat-label  { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 5px; }
.news-title      { font-size: 14px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.news-card:hover .news-title { color: var(--blue); }
.news-meta       { font-size: 11px; color: var(--muted); }

/* ---- Sidebar ---- */
.widget       { background: var(--card); border-radius: 10px; border: 1px solid var(--border); margin-bottom: 20px; overflow: hidden; }
.widget-title { padding: 13px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--primary); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.widget-title i { color: var(--accent); }
.widget-item  { display: flex; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); transition: background .15s; }
.widget-item:last-child { border-bottom: none; }
.widget-item:hover { background: #f8fafc; }
.widget-item img { width: 68px; height: 50px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.widget-item-no-img { width: 68px; height: 50px; background: #e2e8f0; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 16px; }
.widget-item-title { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.widget-item:hover .widget-item-title { color: var(--blue); }
.widget-item-time  { font-size: 11px; color: var(--muted); margin-top: 4px; }
.cat-list-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); transition: background .15s; }
.cat-list-item:last-child { border-bottom: none; }
.cat-list-item:hover { background: #f8fafc; }
.cat-dot  { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 10px; }
.cat-count { font-size: 12px; color: var(--muted); background: #f1f5f9; padding: 2px 8px; border-radius: 20px; }

/* ---- Haber Detay ---- */
.article-wrap  { background: var(--card); border-radius: 12px; padding: 30px; border: 1px solid var(--border); }
.article-cat   { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; margin-bottom: 14px; }
.article-title { font-size: 30px; font-weight: 800; line-height: 1.3; margin-bottom: 14px; }
.article-meta  { display: flex; gap: 20px; font-size: 13px; color: var(--muted); padding-bottom: 20px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.article-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: 10px; margin-bottom: 26px; }
.article-body  { font-size: 16px; line-height: 1.85; color: #2d3748; }
.article-body p { margin-bottom: 18px; }
.article-tags  { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.article-tags span { background: #f1f5f9; color: var(--muted); padding: 5px 13px; border-radius: 20px; font-size: 13px; }
.share-bar     { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.share-btn     { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; }
.share-tg  { background: #0088cc; }
.share-wa  { background: #25d366; }
.share-tw  { background: #1da1f2; }

/* ---- Footer ---- */
.site-footer  { background: var(--primary); color: rgba(255,255,255,.8); padding: 36px 0 18px; margin-top: 48px; }
.footer-grid  { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 24px; }
.footer-logo  { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo img { width: 38px; height: 38px; object-fit: contain; }
.footer-logo strong { color: #fff; font-size: 18px; }
.site-footer p, .site-footer a { font-size: 13px; line-height: 1.9; }
.site-footer a:hover { color: var(--accent); }
.site-footer h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .8px; }
.social-links { display: flex; gap: 10px; margin-top: 12px; }
.social-links a { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; transition: background .2s; }
.social-links a:hover { background: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; text-align: center; font-size: 12px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .page-grid  { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .news-grid  { grid-template-columns: 1fr; }
  .featured img, .featured-placeholder { height: 220px; }
  .featured-title { font-size: 17px; }
  .article-title  { font-size: 21px; }
  .article-wrap   { padding: 18px; }
}
