/**
 * GÜNDEM 61 - Cihaz ve Ekran Ölçekleme Stilleri (responsive.css)
 * Mobil, Tablet, Laptop ve Geniş Ekranlar İçin Tam Uyum
 */

/* -------------------------------------------------------------
 * MOBİL MENÜ ÇEKMECESİ (DRAWER)
 * ------------------------------------------------------------- */
.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85%;
  height: 100%;
  background: var(--g61-navy);
  color: #fff;
  z-index: 1150;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-logo {
  height: 38px;
}

.btn-drawer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.drawer-nav {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #cbd5e1;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.drawer-nav-item:hover, .drawer-nav-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.drawer-nav-item.ts-drawer-tab {
  color: #ff88a3;
  background: rgba(128, 0, 32, 0.2);
}

.drawer-districts-box {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-districts-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 10px;
  display: block;
}

.drawer-districts-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.drawer-dist-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 12px;
}

.drawer-dist-pill:hover {
  background: var(--g61-bordo);
  color: #fff;
}

.drawer-footer {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.drawer-contact-info {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.drawer-contact-info a {
  color: #fff;
  font-weight: 600;
}

/* -------------------------------------------------------------
 * BREAKPOINT: LAPTOPS & TABLETS LANDSCAPE (Max 1200px)
 * ------------------------------------------------------------- */
@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr 320px;
    gap: 16px;
  }

  .ts-grid {
    grid-template-columns: 300px 1fr;
    gap: 16px;
  }

  .footer-main-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 24px;
  }
}

/* -------------------------------------------------------------
 * BREAKPOINT: TABLETS (Max 992px)
 * ------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    height: 420px;
  }

  .hero-side-cards {
    margin-top: 10px;
  }

  .side-cards-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .side-card-link {
    flex-direction: column;
  }

  .side-card-img-box {
    width: 100%;
    height: 120px;
  }

  .ts-grid {
    grid-template-columns: 1fr;
  }

  .ts-news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stream-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .admin-sidebar.active {
    transform: translateX(0);
  }

  .admin-grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* -------------------------------------------------------------
 * BREAKPOINT: TABLET PORTRAIT & PHONES (Max 768px)
 * ------------------------------------------------------------- */
@media (max-width: 768px) {
  .header-search-bar {
    display: none;
  }

  .portal-nav-bar {
    display: none; /* Mobilde çekmeceden yönetilir */
  }

  .hero-slider {
    height: 360px;
  }

  .hero-title {
    font-size: 1.35rem;
  }

  .hero-content {
    padding: 16px;
    padding-bottom: 60px;
  }

  .side-cards-list {
    grid-template-columns: 1fr;
  }

  .ts-news-grid {
    grid-template-columns: 1fr;
  }

  .news-cards-grid {
    grid-template-columns: 1fr;
  }

  .columnists-grid {
    grid-template-columns: 1fr;
  }

  .stream-item-link {
    flex-direction: column;
  }

  .stream-img-box {
    width: 100%;
    height: 190px;
  }

  .article-main-title {
    font-size: 1.6rem;
  }

  .article-main-spot {
    font-size: 1rem;
  }

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

  .article-share-floating {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 20px;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .prayer-times-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-topbar {
    padding: 12px 16px;
  }

  .admin-content {
    padding: 16px;
  }
}

/* -------------------------------------------------------------
 * BREAKPOINT: SMALL PHONES (Max 480px)
 * ------------------------------------------------------------- */
@media (max-width: 480px) {
  .header-logo-img {
    height: 38px;
  }

  .topbar-wrapper {
    font-size: 0.75rem;
  }

  .hero-slider {
    height: 320px;
  }

  .hero-title {
    font-size: 1.15rem;
  }

  .slider-numbers {
    display: none; /* Mobilde sadece oklarla kaydırılır */
  }

  .article-author-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-action-tools {
    width: 100%;
    justify-content: space-between;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
