/* haber.gen.tr Frontend CSS — v20260327 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #f4f5f7;
    --bg-card: #ffffff;
    --bg-dark: #16213e;
    --bg-dark-hover: #1a2744;
    --text: #1e2a3a;
    --text-light: #6b7b8d;
    --primary: #1a73e8;
    --primary-hover: #1558b8;
    --accent: #e8363a;
    --success: #16a34a;
    --border: #e2e6ea;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 10px;
    --radius-sm: 6px;
    --max-w: 1200px;
    --transition: 0.2s ease;
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

/* ===== CONTAINER ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }

/* ===== NAVBAR ===== */
.navbar { background: var(--bg-dark); color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.navbar-inner { display: flex; align-items: center; height: 52px; gap: 8px; }
.navbar-brand { text-decoration: none; flex-shrink: 0; margin-right: 4px; }
.brand-text { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }
.brand-dot { color: var(--accent); font-weight: 400; }
.navbar-menu { display: flex; gap: 1px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.navbar-menu::-webkit-scrollbar { display: none; }
.nav-link { color: rgba(255,255,255,0.7); font-size: 12.5px; padding: 5px 7px; border-radius: 4px; white-space: nowrap; transition: all var(--transition); font-weight: 500; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); }
.navbar-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; padding: 4px; flex-shrink: 0; }

/* ===== NAVBAR SEARCH ===== */
.navbar-search { display: flex; align-items: center; background: rgba(255,255,255,0.1); border-radius: 18px; flex-shrink: 0; height: 32px; border: 1px solid rgba(255,255,255,0.08); transition: all var(--transition); }
.navbar-search:focus-within { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.2); }
.navbar-search-input { background: transparent; border: none; color: #fff; padding: 0 0 0 12px; font-size: 12.5px; width: 110px; outline: none; height: 100%; }
.navbar-search-input::placeholder { color: rgba(255,255,255,0.4); }
.navbar-search-input:focus { width: 140px; }
.navbar-search-btn { background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; padding: 0 8px; display: flex; align-items: center; height: 100%; transition: color var(--transition); }
.navbar-search-btn:hover { color: #fff; }

/* ===== MAIN GRID ===== */
.main-grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding: 24px 0 40px; }
.content-area { min-width: 0; }
.sidebar-area { min-width: 0; }

/* ===== FEATURED CARD ===== */
.featured-card { background: linear-gradient(135deg, var(--bg-dark) 0%, #0f3460 100%); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; box-shadow: var(--shadow-md); }
.featured-card a { text-decoration: none; display: block; }
.featured-card a:hover .featured-title { opacity: 0.9; }
.featured-content { padding: 32px 28px; }
.featured-content .card-category { color: var(--accent); font-size: 12px; letter-spacing: 1px; }
.featured-title { color: #fff; font-size: 26px; line-height: 1.3; margin: 10px 0 14px; font-weight: 700; }
.featured-summary { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.featured-content .card-date { color: rgba(255,255,255,0.4); font-size: 12px; }

/* ===== NEWS GRID ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ===== NEWS CARD ===== */
.news-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent; }
.news-card a { display: flex; flex-direction: column; padding: 18px; text-decoration: none; color: var(--text); height: 100%; }
.card-category { display: inline-block; font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.card-title { font-size: 15px; font-weight: 600; line-height: 1.45; margin-bottom: 8px; color: var(--text); }
.card-summary { font-size: 13px; color: var(--text-light); line-height: 1.55; margin-bottom: 10px; flex: 1; }
.card-date { font-size: 11px; color: var(--text-light); margin-top: auto; }

/* ===== SECTION ===== */
.section { margin-bottom: 32px; }
.section-title { font-size: 18px; font-weight: 700; margin-bottom: 18px; padding-bottom: 8px; border-bottom: 3px solid var(--accent); display: inline-block; }

/* ===== PAGE HEADER ===== */
.page-header { margin-bottom: 24px; }
.page-title { font-size: 22px; font-weight: 700; }
.page-desc { font-size: 14px; color: var(--text-light); margin-top: 4px; }
.page-count { font-size: 12px; color: var(--text-light); }

/* ===== ARTICLE DETAIL ===== */
.article-detail { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.article-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.article-title { font-size: 26px; font-weight: 700; line-height: 1.3; margin: 8px 0 14px; }
.article-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-light); margin-bottom: 14px; }
.article-meta time, .article-meta span { display: inline-flex; align-items: center; gap: 5px; }
.article-meta svg { flex-shrink: 0; opacity: 0.5; }
.article-summary { font-size: 15px; color: var(--text-light); font-style: italic; line-height: 1.7; border-left: 3px solid var(--accent); padding-left: 16px; }
.article-body { font-size: 15.5px; line-height: 1.85; }
.article-body p { margin-bottom: 18px; }
.article-body strong { font-weight: 600; }
.article-body ul, .article-body ol { margin: 14px 0 14px 24px; }
.article-body h2, .article-body h3 { margin: 24px 0 12px; font-weight: 600; }

/* ===== SIDEBAR WIDGETS ===== */
.widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.widget-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; padding: 12px 16px; background: var(--bg-dark); color: #fff; }
.widget-body { padding: 12px 16px; }

/* Doviz tablosu */
.widget-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.widget-table tr { border-bottom: 1px solid var(--border); }
.widget-table tr:last-child { border-bottom: none; }
.widget-table td { padding: 8px 0; }
.rate-code { font-weight: 700; width: 40px; }
.rate-value { text-align: right; font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12.5px; }
.rate-change { text-align: right; font-size: 12px; font-weight: 700; width: 65px; }
.rate-change.up { color: var(--success); }
.rate-change.down { color: var(--accent); }

/* Hava durumu */
.weather-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.weather-row:last-child { border-bottom: none; }
.weather-city { font-weight: 700; min-width: 70px; }
.weather-temp { font-weight: 700; color: var(--primary); font-size: 14px; }
.weather-desc { font-size: 11px; color: var(--text-light); text-align: right; min-width: 80px; }

/* Son haberler */
.recent-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.recent-item:last-child { border-bottom: none; }
.recent-item a { font-size: 13px; color: var(--text); font-weight: 500; line-height: 1.45; display: block; }
.recent-item a:hover { color: var(--primary); }
.recent-date { display: block; font-size: 11px; color: var(--text-light); margin-top: 3px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; font-size: 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); background: var(--bg-card); text-decoration: none; font-weight: 500; transition: all var(--transition); }
.page-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }

/* ===== FOOTER ===== */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 36px 0; margin-top: 48px; }
.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.footer-brand { font-size: 14px; }
.footer-brand strong { color: #fff; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 13px; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-rss { color: var(--accent) !important; font-weight: 600; }
.footer-legal { font-size: 11px; color: rgba(255,255,255,0.35); line-height: 1.7; }

/* ===== ADSENSE SLOTS ===== */
.ad-slot { text-align: center; overflow: hidden; }
.ad-header { padding: 8px 0; background: var(--bg); border-bottom: 1px solid var(--border); min-height: 10px; }
.ad-article { margin: 24px 0; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ad-sidebar { margin-bottom: 16px; }

/* ===== SEARCH PAGE ===== */
.search-box-page { margin-bottom: 24px; }
.search-form-page { display: flex; gap: 8px; }
.search-input-page { flex: 1; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 15px; outline: none; transition: border-color var(--transition); }
.search-input-page:focus { border-color: var(--primary); }
.search-btn-page { display: inline-flex; align-items: center; gap: 6px; padding: 12px 24px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; transition: background var(--transition); }
.search-btn-page:hover { background: var(--primary-hover); }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-light); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }

/* ===== ARTICLE TAGS ===== */
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.tags-label { font-size: 13px; font-weight: 600; color: var(--text-light); }
.tag-badge { display: inline-block; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 4px 14px; font-size: 12px; color: var(--text); transition: all var(--transition); cursor: default; }
.tag-badge:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== SOCIAL SHARE ===== */
.article-share { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.share-label { font-size: 13px; font-weight: 600; color: var(--text-light); white-space: nowrap; }
.share-buttons { display: flex; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-light); cursor: pointer; transition: all var(--transition); text-decoration: none; }
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.share-twitter:hover { background: #000; color: #fff; border-color: #000; }
.share-facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-copy:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.share-copy.copied { background: var(--success); color: #fff; border-color: var(--success); }

/* ===== RELATED NEWS ===== */
.related-section { margin-top: 32px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .nav-link { font-size: 12px; padding: 5px 6px; }
    .navbar-search-input { width: 90px; }
    .navbar-search-input:focus { width: 120px; }
}
@media (max-width: 900px) {
    .main-grid { grid-template-columns: 1fr; }
    .sidebar-area { order: 2; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .navbar-inner { height: 48px; }
    .navbar-menu { display: none; }
    .navbar-menu.open { display: flex; flex-direction: column; position: absolute; top: 48px; left: 0; right: 0; background: var(--bg-dark); padding: 8px 16px 12px; z-index: 99; box-shadow: 0 4px 12px rgba(0,0,0,0.2); gap: 2px; }
    .navbar-menu.open .nav-link { padding: 10px 8px; font-size: 14px; }
    .navbar-toggle { display: block; }
    .navbar-search-input { width: 80px; font-size: 13px; }
    .navbar-search-input:focus { width: 110px; }
    .news-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .featured-title { font-size: 20px; }
    .featured-content { padding: 24px 20px; }
    .article-detail { padding: 20px; }
    .article-title { font-size: 20px; }
    .breadcrumb-current { max-width: 160px; }
    .article-share { flex-wrap: wrap; }
    .search-form-page { flex-direction: column; }
    .container { padding: 0 12px; }
}
