/* ============================================
   SeninSınavın — Responsive Breakpoints
   ============================================ */

/* ── Large Desktop (< 1440px) ── */
@media (max-width: 1440px) {
  :root {
    --container-max: 1100px;
  }
}

/* ── Desktop / Laptop (< 1200px) ── */
@media (max-width: 1200px) {
  :root {
    --container-max: 960px;
  }

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

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

  .hero-float-badge.badge-top-right {
    right: 0;
  }

  .hero-float-badge.badge-bottom-left {
    left: 0;
  }
}

/* ── Tablet Landscape (< 1024px) ── */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  .hero-text {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats-inline {
    justify-content: center;
  }

  .hero-visual {
    max-width: 450px;
    margin: 0 auto;
  }

  .hero-float-badge {
    display: none;
  }

  .info-section .container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .info-section.reverse .container {
    direction: ltr;
  }

  .info-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .info-checklist {
    text-align: left;
    max-width: 480px;
  }

  .info-visual-card {
    max-width: 420px;
    margin: 0 auto;
  }

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

  .testimonial-card {
    flex: 0 0 calc(50% - var(--space-xl) / 2);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* Navbar mobile */
  .navbar-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 88vw;
    height: 100vh;
    background: linear-gradient(
      160deg,
      rgba(108, 92, 231, 0.08) 0%,
      rgba(255, 255, 255, 0.97) 30%,
      rgba(0, 184, 148, 0.05) 70%,
      rgba(253, 203, 110, 0.06) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--navbar-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    gap: var(--space-xl);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 80px rgba(108, 92, 231, 0.25), -2px 0 30px rgba(0, 0, 0, 0.12);
    z-index: var(--z-sticky);
    overflow-y: auto;
    border-left: 2px solid rgba(108, 92, 231, 0.2);
  }

  [data-theme="dark"] .navbar-menu {
    background: linear-gradient(
      160deg,
      rgba(108, 92, 231, 0.18) 0%,
      rgba(13, 17, 23, 0.97) 25%,
      rgba(22, 27, 34, 0.98) 60%,
      rgba(0, 184, 148, 0.1) 100%
    );
    border-left-color: rgba(108, 92, 231, 0.35);
    box-shadow: -8px 0 80px rgba(108, 92, 231, 0.3), -2px 0 30px rgba(0, 0, 0, 0.4);
  }

  /* Renkli üst şerit */
  .navbar-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6C5CE7, #A29BFE, #00B894, #FDCB6E, #6C5CE7);
    background-size: 300% 100%;
    animation: menuTopStripe 4s ease-in-out infinite;
    z-index: 2;
  }

  /* Dekoratif arka plan orb çifti */
  .navbar-menu::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.18) 0%, rgba(162, 155, 254, 0.08) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
  }

  /* İkinci dekoratif orb (alt sol) */
  .navbar-menu .navbar-links::after {
    content: '';
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(0, 184, 148, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
  }

  @keyframes menuTopStripe {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }

  .navbar-menu.active {
    transform: translateX(0);
  }

  .navbar-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 4px;
    position: relative;
    z-index: 1;
  }

  .navbar-links a {
    padding: 13px 16px;
    width: 100%;
    border-bottom: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }

  .navbar-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transition: transform 0.25s ease;
  }

  .navbar-links a:hover {
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.14) 0%, rgba(162, 155, 254, 0.05) 100%);
    color: var(--color-primary);
    transform: translateX(6px);
    font-weight: 700;
  }

  [data-theme="dark"] .navbar-links a:hover {
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.2) 0%, rgba(0, 184, 148, 0.06) 100%);
    color: var(--color-primary-light);
  }

  .navbar-links a:hover::before {
    transform: scaleY(1);
  }

  .navbar-links a::after {
    display: none;
  }

  .navbar-actions {
    width: 100%;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(108, 92, 231, 0.18);
    position: relative;
    z-index: 1;
  }

  .navbar-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .navbar-actions .btn-ghost {
    background: linear-gradient(135deg, rgba(108,92,231,0.15) 0%, rgba(0,184,148,0.1) 100%);
    border: 1.5px solid rgba(108, 92, 231, 0.35);
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(108, 92, 231, 0.12);
  }

  [data-theme="dark"] .navbar-actions .btn-ghost {
    background: linear-gradient(135deg, rgba(108,92,231,0.22) 0%, rgba(0,184,148,0.12) 100%);
    color: var(--color-primary-light);
    border-color: rgba(162, 155, 254, 0.35);
  }

  .navbar-actions .btn-ghost:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 6px 24px rgba(108, 92, 231, 0.45);
    transform: translateY(-2px);
  }

  .navbar-hamburger {
    display: flex;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: calc(var(--z-sticky) - 1);
    opacity: 0;
    transition: opacity 0.35s ease;
  }

  .mobile-overlay.active {
    display: block;
    opacity: 1;
  }

  .navbar-controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }

} /* end @media (max-width: 1024px) */

/* ── Tablet Portrait (< 768px) ── */
@media (max-width: 768px) {

  .section {
    padding: var(--space-3xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .feature-card {
    padding: var(--space-xl);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .stat-card .stat-number {
    font-size: 2rem;
  }

  .testimonial-card {
    flex: 0 0 100%;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .cta-content h2 {
    font-size: 1.6rem;
  }

  .hero-stats-inline {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  /* Auth pages */
  .auth-grid {
    grid-template-columns: 1fr !important;
  }
  .auth-visual {
    display: none !important;
  }
  .auth-form-wrapper {
    padding: var(--space-xl) !important;
  }
}

/* ── Mobile Large (< 576px) ── */
@media (max-width: 576px) {
  :root {
    --container-padding: 1rem;
  }

  html {
    font-size: 15px;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--navbar-height) + var(--space-xl));
    padding-bottom: var(--space-2xl);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-mockup {
    max-width: 100%;
  }

  .navbar-logo {
    font-size: 1.25rem;
  }

  .navbar-logo .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

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

  .stat-card {
    padding: var(--space-md);
  }

  .stat-card .stat-number {
    font-size: 1.6rem;
  }

  .stat-card .stat-label {
    font-size: 0.8rem;
  }

  .testimonial-card {
    padding: var(--space-lg);
  }

  .faq-question {
    padding: var(--space-md) var(--space-lg);
  }

  .faq-answer-inner {
    padding: 0 var(--space-lg) var(--space-md);
  }

  .cta-section {
    padding: var(--space-2xl) 0;
  }

  .section-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
  }
}

/* ── Mobile Small (< 380px) ── */
@media (max-width: 380px) {
  html {
    font-size: 14px;
  }

  .hero-stats-inline {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

  .hero-stat-item {
    text-align: center;
  }

  .navbar-menu {
    width: 100%;
    max-width: 100vw;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

/* ── Print Styles ── */
@media print {
  .navbar,
  .theme-toggle,
  .lang-toggle,
  .cta-section,
  .footer {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .section {
    padding: 1rem 0;
  }
}
