/* ============================================================
   GLOBAL RESPONSIVE — LyDian AI Platform
   Tüm sayfalar için ortak responsive kurallar.
   ============================================================ */

/* --- Base Overflow Fix --- */
html,
body {
  overflow-x: hidden;
}

/* --- Fluid Media --- */
img,
video,
svg,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

/* --- Touch Target Minimum (44px WCAG) --- */
@media (max-width: 768px) {
  a,
  button,
  [role='button'],
  input[type='submit'],
  input[type='button'],
  .btn,
  .nav-link,
  .menu-item {
    min-height: 44px;
    min-width: 44px;
  }
}

/* --- Safe Area (notch devices) --- */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* --- Container Padding --- */
@media (max-width: 768px) {
  .container,
  .section-container,
  .content-wrapper,
  main {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  .container,
  .section-container,
  .content-wrapper,
  main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  h1,
  .hero-title {
    font-size: 2rem !important;
  }
  h2,
  .section-title {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 375px) {
  h1,
  .hero-title {
    font-size: 1.75rem !important;
  }
  h2,
  .section-title {
    font-size: 1.25rem !important;
  }
  body {
    font-size: 14px;
  }
}

/* --- Table Responsiveness --- */
@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* --- Footer Column Stack --- */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

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