/* ==========================================================================
   HABER UYDUSU - RESPONSIVE STYLES
   Mobil, Tablet ve Masaüstü Kusursuz Uyum (SABAH PORTAL MODELİ)
   ========================================================================== */

/* GLOBAL OVERFLOW LOCK (SIFIR KAYMA VE TAŞMA) */
html {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
}

body {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

/* MOBİL SABİT ALT BAR (APP STYLE BOTTOM NAV) */
.mobile-app-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1200;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
}

.mobile-bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
}

.mobile-nav-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 700;
  gap: 3px;
  text-decoration: none;
  padding: 4px 10px;
}
.mobile-nav-action-item i {
  font-size: 18px;
}
.mobile-nav-action-item.active,
.mobile-nav-action-item:hover {
  color: var(--primary-light);
}

/* 1024px VE ALTI (TABLET & KÜÇÜK EKRANLAR) */
@media (max-width: 1024px) {
  .portal-hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-side-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-side-card {
    height: auto;
  }

  .surmanset-top-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .surmanset-top-grid .surmanset-mini-card:nth-child(n+4) {
    display: none;
  }

  .portal-content-grid {
    grid-template-columns: 1fr;
  }

  .portal-right-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stream-cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .portal-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

/* 768px VE ALTI (MOBİL CİHAZLAR - SABAH STİLİ KUSURSUZ MİMARİ) */
@media (max-width: 768px) {
  body {
    padding-bottom: 60px; /* Mobil alt bar boşluğu */
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  /* 1. ÜST BAR GİZLEME (MOBİLDE TAŞMAYI VE 6 KATMANLI KALABALIĞI BİTİRİR) */
  .top-bar {
    display: none !important;
  }

  .portal-nav {
    display: none !important;
  }

  /* 2. TEK VE ŞIK MOBİL HEADER (56px SABAH APP MODELİ) */
  .main-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .main-header-inner {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center !important;
    justify-content: space-between !important;
    height: 56px !important;
    padding: 0 12px !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .portal-brand {
    flex: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    width: 100%;
    min-width: 0;
    max-width: 240px;
    margin: 0 auto !important;
  }

  .portal-brand-logo {
    height: 46px !important;
    max-height: 46px !important;
    width: 100% !important;
    max-width: 185px !important;
    object-fit: cover !important;
  }

  .mobile-header-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px !important;
    background: var(--bg-subtle) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
  }

  .mobile-header-tools {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    justify-self: end;
  }

  .mobile-drawer-panel .drawer-item.theme-switch-btn {
    width: 100%;
    height: auto;
    min-height: 48px;
    padding: 13px 22px;
    justify-content: flex-start;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }

  .mobile-drawer-panel .drawer-item.theme-switch-btn[aria-pressed="true"] {
    background: var(--primary-subtle);
  }

  /* 3. KAYAN KATEGORİ ŞERİDİ */
  .mobile-category-strip {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    background: var(--bg-card) !important;
    border-bottom: 1px solid var(--border) !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .mobile-category-strip::-webkit-scrollbar {
    display: none !important;
  }
  .mobile-cat-pill {
    padding: 5px 12px !important;
    font-size: 11.5px !important;
    border-radius: 16px !important;
  }

  /* 4. CANLI SON DAKİKA ŞERİDİ */
  .live-breaking-bar {
    height: 36px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .breaking-bar-inner {
    height: 36px !important;
    padding: 0 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .breaking-badge {
    font-size: 10px !important;
    padding: 0 10px !important;
    height: 100% !important;
    letter-spacing: 0.02em !important;
  }
  .breaking-scroll-container {
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 0 8px !important;
  }

  /* 5. SÜRMANŞET (SADECE ANASAYFADA) */
  .surmanset-top-bar {
    display: block !important;
    padding: 8px 0 !important;
    background: var(--bg-card) !important;
    border-bottom: 1px solid var(--border) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .surmanset-top-grid {
    display: flex !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding: 2px 12px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .surmanset-top-grid::-webkit-scrollbar {
    display: none !important;
  }
  .surmanset-mini-card {
    flex: 0 0 155px !important;
    height: 58px !important;
    padding: 5px !important;
    background: var(--bg-subtle) !important;
    border-radius: 6px !important;
    border: 1px solid var(--border) !important;
  }
  .surmanset-top-grid .surmanset-mini-card:nth-child(n+4) {
    display: flex !important;
  }
  .surmanset-mini-img {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
  }
  .surmanset-mini-title {
    font-size: 11px !important;
  }

  /* 6. CONTAINER & IZGARA KORUMASI */
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }

  .portal-content-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .portal-left-stream {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* 7. HABER DETAY SAYFASI MOBİL */
  .portal-content-grid > article {
    padding: 14px !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .portal-content-grid > article h1 {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
    word-break: break-word !important;
  }

  .article-author-row {
    padding: 10px 0 !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .article-share-toolbar {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .article-share-toolbar a,
  .article-share-toolbar button {
    font-size: 11.5px !important;
    padding: 7px 10px !important;
  }

  .audio-player-sim {
    padding: 8px 12px !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .audio-waveform-bars {
    overflow: hidden !important;
  }
  .audio-wave:nth-child(n+10) {
    display: none !important;
  }

  .article-text-body {
    font-size: 16px !important;
    line-height: 1.7 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .article-text-body * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .article-text-body img {
    height: auto !important;
    border-radius: 6px !important;
  }

  .article-text-body iframe {
    width: 100% !important;
    height: 220px !important;
  }

  .article-in-callout {
    padding: 10px 12px !important;
    gap: 10px !important;
    margin: 18px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .article-in-callout-thumb {
    width: 76px !important;
    height: 52px !important;
    min-width: 76px !important;
  }
  .article-in-callout-title {
    font-size: 12.5px !important;
  }

  .article-reactions-box {
    padding: 14px 10px !important;
    margin: 20px 0 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .article-reactions-grid {
    gap: 6px !important;
  }
  .reaction-btn {
    padding: 6px 10px !important;
    font-size: 11.5px !important;
    gap: 5px !important;
  }

  .article-nav-prevnext {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 14px 0 !important;
    margin: 18px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 8. YUKARI ÇIK BUTONU MOBİL */
  .back-to-top-btn {
    bottom: 78px !important;
    right: 16px !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 16px !important;
  }

  /* 9. MANŞET SLIDER MOBİL */
  .hero-slider-viewport {
    height: 280px !important;
  }
  .hero-slide-overlay {
    padding: 14px !important;
  }
  .hero-slide-title {
    font-size: 16px !important;
    line-height: 1.3 !important;
  }
  .hero-slide-summary {
    display: none !important;
  }
  .slider-bullet-num {
    min-width: 32px !important;
    height: 38px !important;
    font-size: 12px !important;
  }

  .hero-side-column {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .stream-cards-3,
  .stream-cards-2 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .authors-quad-grid {
    grid-template-columns: 1fr !important;
  }

  .video-quad-grid {
    grid-template-columns: 1fr !important;
  }

  .portal-right-sidebar {
    grid-template-columns: 1fr !important;
  }

  /* 10. FOOTER MOBİL */
  .portal-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .footer-whatsapp-strip {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 14px !important;
  }
  .portal-footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .latest-horizontal-card {
    padding: 10px !important;
    gap: 10px !important;
  }
  .latest-horizontal-thumb {
    width: 90px !important;
    height: 62px !important;
    min-width: 90px !important;
  }
  .latest-horizontal-content h3 {
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin-bottom: 3px !important;
  }
  .latest-horizontal-content p {
    display: none !important;
  }
}
