/* =============================================
   TOPBAR
   ============================================= */
.ah-topbar {
  background: var(--ah-accent);
  padding: 4px 16px;
  font-size: .7rem;
  font-weight: 500;
  color: #fff;
}
.ah-topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
}
.ah-topbar-left  { display: flex; align-items: center; gap: 10px; }
.ah-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ah-topbar-item  { display: flex; align-items: center; gap: 4px; opacity: .9; }
.ah-topbar-date  { opacity: .8; }
.ah-topbar-nav ul,.ah-topbar-nav li { display: flex; list-style: none; }
.ah-topbar-nav a { color: rgba(255,255,255,.8); font-size: .7rem; padding: 0 6px; }
.ah-topbar-nav a:hover { color: #fff; }

/* =============================================
   NAVBAR
   ============================================= */
.ah-navbar {
  background: var(--ah-bg2);
  border-bottom: 1px solid var(--ah-border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.ah-navbar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
.ah-site-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ah-text);
  letter-spacing: -1px;
  padding: 10px 0;
  margin-right: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ah-site-logo span { color: var(--ah-accent); }
.ah-navbar-nav { flex: 1; overflow: hidden; }
.ah-nav-list { display: flex; }
.ah-nav-list li { flex-shrink: 0; }
.ah-nav-list a {
  display: block;
  padding: 13px 10px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--ah-text2);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.ah-nav-list a:hover,
.ah-nav-list .current-menu-item > a,
.ah-nav-list .current-menu-ancestor > a {
  color: var(--ah-accent);
  border-bottom-color: var(--ah-accent);
}
/* Dropdown */
.ah-nav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--ah-bg2);
  border: 1px solid var(--ah-border);
  border-top: 2px solid var(--ah-accent);
  border-radius: 0 0 var(--ah-radius) var(--ah-radius);
  min-width: 200px;
  z-index: 300;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.ah-nav-list li:hover > .sub-menu { display: block; }
.ah-nav-list .sub-menu li a { border-bottom: 1px solid var(--ah-border); padding: 10px 14px; font-size: .78rem; }
.ah-nav-list .sub-menu li:last-child a { border-bottom: none; }
.ah-nav-list li { position: relative; }

.ah-navbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.ah-search-toggle,
.ah-theme-toggle,
.ah-mobile-menu-toggle {
  background: none;
  border: 1px solid var(--ah-border);
  border-radius: var(--ah-radius-sm);
  padding: 6px 8px;
  color: var(--ah-text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: .2s;
}
.ah-search-toggle:hover,
.ah-theme-toggle:hover,
.ah-mobile-menu-toggle:hover {
  background: var(--ah-bg3);
  color: var(--ah-text);
}
.ah-theme-icon-light { display: none; }
[data-theme="light"] .ah-theme-icon-dark  { display: none; }
[data-theme="light"] .ah-theme-icon-light { display: inline; }
.ah-hamburger {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ah-text2);
  position: relative;
}
.ah-hamburger::before,
.ah-hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--ah-text2);
  left: 0;
}
.ah-hamburger::before { top: -5px; }
.ah-hamburger::after  { top: 5px; }
.ah-mobile-menu-toggle { display: none; }

/* Search drawer */
.ah-search-drawer {
  background: var(--ah-bg3);
  border-top: 1px solid var(--ah-border);
  padding: 10px 16px;
}
.ah-search-drawer form { display: flex; gap: 8px; max-width: 600px; margin: 0 auto; }
.ah-search-drawer input {
  flex: 1;
  background: var(--ah-bg2);
  border: 1px solid var(--ah-border2);
  border-radius: var(--ah-radius-sm);
  padding: 8px 12px;
  font-size: .85rem;
  color: var(--ah-text);
  outline: none;
}
.ah-search-drawer input:focus { border-color: var(--ah-accent); }
.ah-search-drawer button {
  background: var(--ah-accent);
  color: #fff;
  border: none;
  border-radius: var(--ah-radius-sm);
  padding: 8px 14px;
  font-size: .85rem;
  cursor: pointer;
}

/* Mobile nav */
.ah-mobile-nav {
  background: var(--ah-bg2);
  border-top: 1px solid var(--ah-border);
  padding: 8px 0;
}
.ah-mobile-nav-list li a {
  display: block;
  padding: 10px 20px;
  font-size: .875rem;
  color: var(--ah-text2);
  border-bottom: 1px solid var(--ah-border);
}
.ah-mobile-nav-list li:last-child a { border-bottom: none; }
.ah-mobile-nav-list .sub-menu a { padding-left: 36px; font-size: .8rem; background: var(--ah-bg3); }

/* =============================================
   YAZARLAR
   ============================================= */
.ah-yazarlar-bar {
  background: var(--ah-bg2);
  border-bottom: 1px solid var(--ah-border);
  padding: 10px 16px;
}
.ah-yazarlar-inner { max-width: 1280px; margin: 0 auto; }
.ah-yazarlar-list {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.ah-yazarlar-list::-webkit-scrollbar { display: none; }
.ah-yazar-item { flex-shrink: 0; }
.ah-yazar-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.ah-yazar-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ah-border2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ah-bg3);
  transition: border-color .2s;
}
.ah-yazar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ah-yazar-initials { font-size: .8rem; font-weight: 700; color: var(--ah-text2); }
.ah-yazar-item.is-active .ah-yazar-avatar,
.ah-yazar-item:hover .ah-yazar-avatar { border-color: var(--ah-accent); }
.ah-yazar-name { font-size: .65rem; color: var(--ah-text2); text-align: center; max-width: 52px; line-height: 1.2; }

/* =============================================
   FLAŞ HABER
   ============================================= */
.ah-flas-bar {
  background: var(--ah-flash);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.ah-flas-tag {
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: .8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ah-flas-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: ah-pulse 1.2s ease-in-out infinite;
}
@keyframes ah-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}
.ah-flas-track-wrap { flex: 1; overflow: hidden; }
.ah-flas-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ah-ticker 40s linear infinite;
}
.ah-flas-track:hover { animation-play-state: paused; }
@keyframes ah-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ah-flas-link { color: #fff; font-size: .82rem; font-weight: 500; padding: 0 4px; }
.ah-flas-link:hover { text-decoration: underline; }
.ah-flas-sep { color: rgba(255,255,255,.4); padding: 0 8px; }

/* =============================================
   MANŞET
   ============================================= */
.ah-manshet { padding: 16px; }
.ah-manshet-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
}
.ah-manshet-ana {
  position: relative;
  border-radius: var(--ah-radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--ah-bg3);
}
.ah-manshet-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.ah-manshet-ana:hover .ah-manshet-img { transform: scale(1.02); }
.ah-manshet-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--ah-bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.ah-manshet-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 40%, transparent 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.ah-manshet-meta-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.ah-manshet-title {
  color: #fff;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}
.ah-manshet-title a { color: #fff; }
.ah-manshet-title a:hover { color: rgba(255,255,255,.85); }
.ah-manshet-overlay .ah-meta { color: rgba(255,255,255,.6); }

.ah-manshet-yan { display: flex; flex-direction: column; gap: 8px; }
.ah-manshet-yan-item { flex: 1; }
.ah-manshet-yan-img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
}
.ah-manshet-yan-img-placeholder {
  width: 100%;
  aspect-ratio: 16/7;
  background: var(--ah-bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.ah-manshet-yan-item .ah-card-title { font-size: .8rem; }

/* =============================================
   KATEGORİK HABERLER
   ============================================= */
.ah-kategorik { padding: 0 16px 16px; }
.ah-kat-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--ah-border);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 14px;
}
.ah-kat-tabs::-webkit-scrollbar { display: none; }
.ah-kat-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 9px 14px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--ah-text3);
  cursor: pointer;
  white-space: nowrap;
  transition: .2s;
  margin-bottom: -1px;
}
.ah-kat-tab:hover { color: var(--ah-text2); }
.ah-kat-tab.is-active { color: var(--ah-accent); border-bottom-color: var(--ah-accent); }
.ah-kat-panel { display: none; }
.ah-kat-panel.is-active { display: block; }
.ah-kat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.ah-card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--ah-bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.ah-kat-footer { text-align: center; padding-top: 4px; }

/* =============================================
   İHALE
   ============================================= */
.ah-ihale { padding: 0 16px 16px; }
.ah-ihale-box {
  background: var(--ah-bg2);
  border: 1px solid var(--ah-border);
  border-radius: var(--ah-radius);
  overflow: hidden;
}
.ah-ihale-head {
  background: var(--ah-gold);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ah-ihale-head-icon { font-size: 1rem; }
.ah-ihale-head-title {
  font-size: .72rem;
  font-weight: 700;
  color: #1a1000;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.ah-ihale-list { padding: 0; }
.ah-ihale-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--ah-border);
  transition: background .15s;
}
.ah-ihale-item:last-child { border-bottom: none; }
.ah-ihale-item:hover { background: var(--ah-bg3); }
.ah-ihale-icon {
  width: 32px;
  height: 32px;
  background: rgba(201,168,76,.1);
  border-radius: var(--ah-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.ah-ihale-content { flex: 1; min-width: 0; }
.ah-ihale-name {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ah-text);
  margin-bottom: 2px;
  line-height: 1.3;
}
.ah-ihale-name:hover { color: var(--ah-accent); }
.ah-ihale-detail { font-size: .7rem; color: var(--ah-text3); }
.ah-ihale-date {
  font-size: .68rem;
  font-weight: 600;
  color: var(--ah-gold);
  background: rgba(201,168,76,.08);
  padding: 4px 8px;
  border-radius: var(--ah-radius-sm);
  flex-shrink: 0;
  white-space: nowrap;
  text-align: right;
}
.ah-ihale-urgent { color: var(--ah-accent); background: rgba(232,55,42,.08); }
.ah-ihale-urgent-label { display: block; font-size: .6rem; margin-bottom: 2px; animation: ah-pulse 1s ease-in-out infinite; }

/* =============================================
   REKLAM
   ============================================= */
.ah-reklam-leaderboard { padding: 0 16px 16px; }
.ah-reklam-placeholder {
  background: var(--ah-bg3);
  border: 1px dashed var(--ah-border2);
  border-radius: var(--ah-radius);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ah-reklam-label {
  font-size: .65rem;
  color: var(--ah-text3);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ah-reklam-size { font-size: .8rem; font-weight: 600; color: var(--ah-text2); }

/* =============================================
   ÖZEL HABER
   ============================================= */
.ah-ozel-haber { padding: 0 16px 16px; }
.ah-ozel-box {
  border: 1px solid rgba(232,55,42,.25);
  border-radius: var(--ah-radius);
  overflow: hidden;
  background: rgba(232,55,42,.04);
}
[data-theme="light"] .ah-ozel-box { background: #fff8f7; }
.ah-ozel-head {
  background: var(--ah-accent);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ah-ozel-head-title { color: rgba(255,255,255,.9); font-size: .75rem; font-weight: 600; }
.ah-ozel-content { padding: 16px; }
.ah-ozel-featured-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ah-border);
}
.ah-ozel-main-title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; color: var(--ah-text); }
.ah-ozel-main-title a { color: inherit; }
.ah-ozel-main-title a:hover { color: var(--ah-accent); }
.ah-ozel-excerpt { font-size: .8rem; color: var(--ah-text2); line-height: 1.55; margin-bottom: 12px; }
.ah-ozel-cta { margin-top: 4px; font-size: .78rem; }
.ah-ozel-featured-img img { width: 100%; border-radius: var(--ah-radius-sm); object-fit: cover; }
.ah-ozel-diger { display: flex; flex-direction: column; gap: 12px; }
.ah-ozel-diger-item { display: flex; gap: 10px; align-items: flex-start; }
.ah-ozel-diger-thumb { width: 90px; height: 60px; object-fit: cover; border-radius: var(--ah-radius-sm); flex-shrink: 0; }
.ah-ozel-diger-title { font-size: .8rem; font-weight: 600; line-height: 1.3; margin-bottom: 4px; color: var(--ah-text); }
.ah-ozel-diger-title a { color: inherit; }
.ah-ozel-diger-title a:hover { color: var(--ah-accent); }

/* =============================================
   FOOTER
   ============================================= */
.ah-footer {
  background: var(--ah-bg2);
  border-top: 1px solid var(--ah-border);
  padding: 28px 16px 16px;
  margin-top: 16px;
}
.ah-footer-inner { max-width: 1280px; margin: 0 auto; }
.ah-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.ah-footer-brand-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -1px; color: var(--ah-text); margin-bottom: 8px; }
.ah-footer-brand-name span { color: var(--ah-accent); }
.ah-footer-desc { font-size: .78rem; color: var(--ah-text3); line-height: 1.6; max-width: 280px; }
.ah-footer-col-title { font-size: .65rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ah-text3); margin-bottom: 10px; }
.ah-footer-link { display: block; font-size: .8rem; color: var(--ah-text3); padding: 3px 0; }
.ah-footer-link:hover { color: var(--ah-accent); }
.ah-footer-bottom {
  border-top: 1px solid var(--ah-border);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--ah-text3);
  flex-wrap: wrap;
  gap: 8px;
}

/* =============================================
   SINGLE POST
   ============================================= */
.ah-single { max-width: 780px; margin: 0 auto; padding: 24px 16px; }
.ah-single-header { margin-bottom: 20px; }
.ah-single-cats { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.ah-single-title { font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 800; line-height: 1.2; color: var(--ah-text); margin-bottom: 12px; }
.ah-single-byline { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--ah-border); border-bottom: 1px solid var(--ah-border); margin-bottom: 20px; }
.ah-single-author-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ah-border2); overflow: hidden; flex-shrink: 0; }
.ah-single-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ah-single-author-name { font-weight: 600; font-size: .85rem; color: var(--ah-text); }
.ah-single-content { font-size: 1rem; line-height: 1.75; color: var(--ah-text2); }
.ah-single-content p { margin-bottom: 1.2em; }
.ah-single-content h2 { color: var(--ah-text); margin: 1.5em 0 .5em; font-size: 1.25rem; }
.ah-single-content h3 { color: var(--ah-text); margin: 1.2em 0 .4em; }
.ah-single-content img { border-radius: var(--ah-radius); margin: 1em 0; }
.ah-single-content blockquote {
  border-left: 3px solid var(--ah-accent);
  padding: .75em 1.2em;
  background: var(--ah-bg3);
  border-radius: 0 var(--ah-radius) var(--ah-radius) 0;
  margin: 1.2em 0;
  font-style: italic;
  color: var(--ah-text2);
}
.ah-single-thumb { width: 100%; border-radius: var(--ah-radius); margin-bottom: 20px; object-fit: cover; }

/* =============================================
   MOBILE — ≤ 768px
   ============================================= */
@media (max-width: 768px) {
  .ah-navbar-nav { display: none; }
  .ah-mobile-menu-toggle { display: flex; }
  .ah-topbar-left .ah-topbar-item:not(:first-child) { display: none; }
  .ah-topbar-nav { display: none; }

  .ah-manshet-grid { grid-template-columns: 1fr; }
  .ah-manshet-yan { flex-direction: row; overflow-x: auto; gap: 8px; }
  .ah-manshet-yan::-webkit-scrollbar { display: none; }
  .ah-manshet-yan-item { min-width: 180px; }

  .ah-kat-grid { grid-template-columns: repeat(2, 1fr); }

  .ah-ozel-featured-grid { grid-template-columns: 1fr; }
  .ah-ozel-featured-img { order: -1; }
  .ah-ozel-featured-img img { max-height: 200px; width: 100%; }

  .ah-footer-grid { grid-template-columns: 1fr 1fr; }
  .ah-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .ah-kat-grid { grid-template-columns: 1fr; }
  .ah-footer-grid { grid-template-columns: 1fr; }
  .ah-ihale-item { flex-direction: column; align-items: flex-start; }
  .ah-ihale-date { align-self: flex-end; }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .ah-flas-track { animation: none; }
  .ah-flas-dot   { animation: none; }
}
