/* ================================
   ÇİZGİLİ DEFTER — mobile.css (FINAL)
   Kapsam: Mobil/Tablet override
   Breakpoints: 1024, 720, 640, 600, 480, 360
================================== */

/* ============ ≤1024px ============ */
@media (max-width: 1024px) {

  /* Header */
  .header {
    display: block;
    position: sticky;
    top: -61px;
    z-index: 999;
  }

  /* TOP BAR */
  .top-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary-hex);
    padding: 12px 16px;
    padding-right: calc(16px + env(safe-area-inset-right));
    padding-left: calc(16px + env(safe-area-inset-left));
  }

  /* Marka alanı (readonly görsel input) */
  .brand-wrapper {
    width: 100%;
    margin-bottom: 8px;
  }

  .brand-input {
    width: 100%;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    background: #fff;
    border: none;
    border-radius: 20px;
  }


  .gallery-container {
    flex-direction: column;
    gap: 20px;
    padding: 16px;
    align-items: stretch;
  }

  /* SLIDER: yüksekliği içerik belirler */
  .slider {
    width: 100%;
    height: auto !important;
    aspect-ratio: auto !important;
    overflow: visible;
    border-radius: 12px;
    flex: 2 1 370px;
  }

  .slides {
    position: relative;
    width: 100%;
    height: auto !important;
  }

  /* ARTIK ABSOLUTE DEĞİL, NORMAL AKIŞTA */
  .slide {
    position: relative !important;
    width: 100%;
    height: auto !important;
    display: none;
  }

  .slide.active {
    display: block;
  }

  .slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
  }

  /* === OVERLAY KARTINI SLIDER ALTINA ALIYORUZ === */
  .caption {
    position: static !important;
    /* absolute değil */
    transform: none !important;
    margin-top: 10px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;

    background: rgba(28, 28, 30, .6);
    color: #fff;
    backdrop-filter: blur(16px);
  }

  /* Başlık */
  .caption h2 {
    font-size: 1rem;
    margin-bottom: 6px;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Açıklama */
  .caption p {
    font-size: .82rem;
    margin-bottom: 10px;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Buton */
  .caption button {
    width: 100%;
    padding: 8px 12px;
    font-size: .8rem;
  }

  /* OKLAR */
  .nav {
    width: 34px;
    height: 34px;
    font-size: 18px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav.prev {
    left: 8px;
  }

  .nav.next {
    right: 8px;
  }

  /* NOKTALAR alt tarafta */
  .dots {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
  }

  .dot {
    width: 12px;
    height: 5px;
  }

  /* LIKE-POST BLOĞU */
  .likes-post {
    flex: 0 0 100%;
    width: 100%;
    max-width: 700px;
    justify-content: center;
    gap: 16px;
  }

  .likes-post h1 {
    text-align: center;
  }

  .like-post-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Reklam */
  .ads {
    max-width: 375px;
    max-height: 300px;
    position: relative;
    z-index: 0;
    background: var(--color-neutral-gray-hex);
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .ads .icon {
    position: absolute;
    top: 12px;
    left: 12px;
    color: var(--color-primary-hex);
    z-index: 1;
  }

  .ads-img {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .ads-img img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Arama */
  .search-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
  }

  .search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    font-size: .95rem;
    border: 1px solid var(--color-neutral-gray-hex);
    border-radius: 20px;
    background: #fff;
    color: #333;
  }

  .search-input::placeholder {
    color: #999;
  }

  .search-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-primary-hex);
    font-size: 1.1rem;
    cursor: pointer;
  }

  /* Tarih */
  .date-wrapper {
    font-size: .9rem;
    color: #fff;
    margin: 6px 0;
  }

  /* NAVBAR */
  .navbar .main-nav {
    padding: 20px;
    align-items: flex-start;
    gap: 12px;
  }

  .logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .hamburger {
    display: block;
    margin-left: auto;
    font-size: 1.6rem;
    color: var(--color-primary-hex);
    cursor: pointer;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-links.active {
    display: flex;
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    flex-wrap: nowrap;
  }

  .nav-links a {
    width: 100%;
    display: block;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary-hex);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    transition: background-color .15s ease;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, .1);
  }

  .nav-links a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .85);
    outline-offset: 2px;
  }

  .nav-links a.active {
    background: #fff;
    color: #000;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .15);
  }

  /* Dropdown */
  .link-item {
    width: 100%;
  }

  .link-dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    cursor: pointer;
    transition: background-color .15s ease;
  }

  .link-dropdown:hover {
    background: rgba(255, 255, 255, .1);
  }

  .link-dropdown i {
    font-size: .9rem;
    transition: transform .3s ease, color .3s ease;
  }

  .link-item.open .link-dropdown i {
    transform: rotate(180deg);
    color: var(--color-accent-yellow-hex);
  }

  .link-drop {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid var(--color-neutral-gray-hex);
  }

  .link-item.open .link-drop {
    display: flex;
  }

  .link-drop a {
    padding: 8px 20px;
    font-size: .95rem;
    color: #333;
    border-bottom: 1px solid var(--color-neutral-gray-hex);
    transition: background-color .15s ease;
  }

  .link-drop a:hover {
    background: var(--color-background-light-hex);
  }

  .link-drop a:last-child {
    border-bottom: none;
  }

  .nav-links {
    position: static;
    z-index: auto;
  }

  /* Mobilde .link-item ve altı tamamen akışta olsun */
  .link-item {
    position: static;
    overflow: visible;
  }

  /* 1. seviye dropdown mobilde akışa girsin */
  .link-drop {
    position: static;
    max-width: 100%;
    box-shadow: none;
    border-radius: 0;
    border: none;
    z-index: auto;
  }

  /* .link-item.open olduğunda içerik açılsın (sende zaten var ama teyit için) */
  .link-item.open .link-drop {
    display: flex;
  }

  /* 2. seviye (Yasal) dropdown da mobilde akışta olsun */
  .link-drop-2 {
    position: static;
    max-width: 100%;
    box-shadow: none;
    border-radius: 0;
    border-top: 1px solid var(--color-neutral-gray-hex);
    z-index: auto;
    display: none;
    /* varsayılan kapalı */
  }

  /* .sub-item açıkken iç dropdown görünsün */
  .sub-item.open-sub .link-drop-2 {
    display: flex;
  }


  .class-select {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
  }

  /* ALL CARDS (kısa) */
  .all-card {
    flex-direction: column;
  }

  .all-card-img {
    width: 100%;
    aspect-ratio: 16/9;
  }

  .all-card-content {
    padding: var(--spacing-lg);
  }

  /* FOOTER */
  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    padding: 20px 0;
  }

  .logo-circle {
    width: 100px;
    height: auto;
  }

  .logo-text {
    font-size: 20px;
  }

  .tagline {
    font-size: 14px;
  }

  .footer-center h3,
  .footer-right h3 {
    font-size: 20px;
  }

  .classes-list a {
    font-size: 16px;
  }

  .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .footer-bottom p {
    font-size: 12px;
  }


  .brand-placeholder {
    display: none;
  }

  /* All-cards tek kolon */
  .all-cards {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .all-cards.grid-view .all-card,
  .all-cards.list-view .all-card {
    flex: 0 1 100%;
    width: 100%;
    flex-direction: column;
  }

  .all-card {
    width: 100%;
    flex-direction: column;
    box-shadow: var(--shadow), 0 0 0 3px rgba(var(--color-primary-rgb), .08);
  }

  .all-card:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1), 0 0 0 2px rgba(var(--color-primary-rgb), .3);
  }

  .all-card-img {
    min-width: 100%;
    aspect-ratio: 16/9;
  }

  .all-card-img img {
    width: 100%;
    height: auto;
    display: block;
  }

  .all-card-content {
    padding: 10px;
  }

  .all-card-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }

  .all-card-description {
    font-size: .9rem;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .all-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .all-card-actions button {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
  }

  .right-group .appearance {
    display: none;
  }

  /* Footer güvence */
  footer .footer-main {
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-md);
  }

  footer .footer-column {
    width: 100%;
    padding: var(--spacing-md) 0;
    text-align: center;
  }

  footer .logo-container {
    align-items: center;
    margin-bottom: var(--spacing-md);
  }

  footer .logo-circle {
    width: 100px;

    margin: 0 auto var(--spacing-sm) auto;
  }

  footer .logo-text {
    font-size: 20px;
  }

  footer .tagline {
    font-size: 14px;
  }

  footer .footer-center h3,
  footer .footer-right h3 {
    font-size: 20px;
  }

  footer .classes-list li {
    margin-bottom: var(--spacing-xs, 6px);
  }

  footer .classes-list a {
    font-size: 16px;
  }

  footer .social-icons {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm, 8px);
  }

  footer .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  footer .footer-bottom p {
    font-size: 12px;
  }

  footer .footer-bottom {
    padding: var(--spacing-sm, 8px) var(--spacing-md, 15px);
  }

  .filter-drop label {
    padding: .5rem .75rem;
    gap: .4rem;
  }

  .filter-drop input[type="radio"] {
    width: 14px;
    height: 14px;
  }

  .filter-drop input[type="radio"]:checked::before {
    top: 1px;
    left: 1px;
    width: 6px;
    height: 6px;
  }

}

/* Anchor yumuşak geçiş */
html {
  scroll-behavior: smooth;
}

/* Yatay scroll konteyneri (isteğe göre .all-cards veya .last-released’e ekleyebilirsin) */
.scroll-x {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* iOS momentum */
  scrollbar-width: thin;
  /* Firefox */
  gap: var(--spacing-sm, 8px);
}

.scroll-x>* {
  flex: 0 0 auto;
}

/* Dikey scroll alanı */
.scroll-y {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Snap kaydırma (yatay liste/galeri için) */
.snap-x {
  scroll-snap-type: x mandatory;
}

.snap-x>* {
  scroll-snap-align: start;
}

/* İnce scrollbar görünümü (WebKit) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .25);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, .4);
}

::-webkit-scrollbar-track {
  background: transparent;


  a,
  button,
  .nav,
  .dot,
  .all-card .all-view-btn,
  .caption button {
    -webkit-tap-highlight-color: transparent;
  }

  :where(a, button, .nav, .dot, .caption button):focus-visible {
    outline: 2px solid rgba(var(--color-primary-rgb), .35);
    outline-offset: 2px;
    border-radius: 8px;
  }



  .quick-access {
    padding: 4px 8px;
    gap: 8px;
  }

  .quick-access .qa-title {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 12px;
  }

  /* Wheel genel alanı */
  .qa-text {
    height: 32px;
    /* 38px → 32px */
    border-radius: 8px;
  }

  /* Her satır */
  .qa-wheel a {
    height: 32px;
    /* aynı yükseklik */
    font-size: 14px;
  }

  /* Animasyon yüksekliğe göre güncelleniyor */
  @keyframes qaScroll {
    0% {
      transform: rotateX(14deg) translateY(0);
    }

    100% {
      /* 5 satır × yeni yükseklik (32px) */
      transform: rotateX(14deg) translateY(calc(-32px * 5));
    }
  }
}