/* Responsive Stiller */

/* Tablet - 1024px ve altı */
@media (max-width: 1024px) {
  /* Container */
  .container {
    max-width: var(--container-md);
  }
  
  /* Logo - Tablet için küçültme */
  .logo-img {
    height: 120px !important;
    width: auto !important;
  }
  
  .logo-text {
    font-size: var(--text-2xl);
  }
  
  /* Grid */
  .grid-cols-6,
  .grid-cols-5,
  .grid-cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  /* Text */
  h1 {
    font-size: var(--text-4xl);
  }
  
  h2 {
    font-size: var(--text-3xl);
  }
  
  h3 {
    font-size: var(--text-2xl);
  }
  
  /* Section Spacing */
  .section {
    padding: var(--space-16) 0;
  }
  
  /* Hero */
  .hero {
    padding: var(--space-16) 0;
  }
  
  /* Sidebar */
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: relative;
    top: 0;
    margin-bottom: var(--space-8);
  }
  
  /* Utilities - Tablet */
  .md\:d-none { display: none !important; }
  .md\:d-block { display: block !important; }
  .md\:d-flex { display: flex !important; }
  .md\:text-center { text-align: center !important; }
  .md\:mx-auto { margin-left: auto !important; margin-right: auto !important; }
}

/* Mobile - 768px ve altı */
@media (max-width: 768px) {
  /* Container */
  .container {
    max-width: var(--container-sm);
    padding: 0 var(--space-3);
  }
  
  /* Logo - Mobile için küçültme */
  .logo-img {
    height: 80px !important;
    width: auto !important;
  }
  
  .logo-text {
    font-size: var(--text-xl);
  }
  
  /* Grid */
  .grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .grid {
    gap: var(--space-4);
  }
  
  /* Text */
  h1 {
    font-size: var(--text-3xl);
  }
  
  h2 {
    font-size: var(--text-2xl);
  }
  
  h3 {
    font-size: var(--text-xl);
  }
  
  /* Section Spacing */
  .section {
    padding: var(--space-12) 0;
  }
  
  /* Hero */
  .hero {
    padding: var(--space-12) 0;
  }
  
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
  
  /* Cards */
  .card-body {
    padding: var(--space-4);
  }
  
  /* Footer */
  .footer {
    padding: var(--space-12) 0 var(--space-6);
  }
  
  .footer-content {
    gap: var(--space-6);
  }
  
  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }
  
  /* Utilities - Mobile */
  .sm\:d-none { display: none !important; }
  .sm\:d-block { display: block !important; }
  .sm\:d-flex { display: flex !important; }
  .sm\:text-center { text-align: center !important; }
  .sm\:mx-auto { margin-left: auto !important; margin-right: auto !important; }
  .sm\:w-100 { width: 100% !important; }
}

/* Small Mobile - 640px ve altı */
@media (max-width: 640px) {
  /* Container */
  .container {
    max-width: 100%;
  }
  
  /* Logo - Small Mobile için daha da küçültme */
  .logo-img {
    height: 60px !important;
    width: auto !important;
  }
  
  .logo-text {
    font-size: var(--text-lg);
  }
  
  /* Grid - Tüm grid'ler tek kolon */
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4,
  .grid-cols-5,
  .grid-cols-6 {
    grid-template-columns: 1fr;
  }
  
  /* Text */
  h1 {
    font-size: var(--text-2xl);
  }
  
  h2 {
    font-size: var(--text-xl);
  }
  
  h3 {
    font-size: var(--text-lg);
  }
  
  /* Buttons */
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  /* Hero */
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  /* Modal */
  .modal-content {
    margin: var(--space-2);
    max-height: calc(100vh - var(--space-4));
  }
  
  /* Table - Responsive scroll */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    min-width: 600px;
  }
  
  /* Utilities - Extra Small */
  .xs\:d-none { display: none !important; }
  .xs\:d-block { display: block !important; }
  .xs\:d-flex { display: flex !important; }
  .xs\:flex-col { flex-direction: column !important; }
  .xs\:text-center { text-align: center !important; }
  .xs\:text-left { text-align: left !important; }
  .xs\:w-100 { width: 100% !important; }
  .xs\:mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
  .xs\:my-2 { margin-top: var(--space-2) !important; margin-bottom: var(--space-2) !important; }
  .xs\:p-0 { padding: 0 !important; }
}

/* Extra Small Mobile - 480px ve altı */
@media (max-width: 480px) {
  /* Text */
  body {
    font-size: var(--text-sm);
  }
  
  /* Section Spacing */
  .section {
    padding: var(--space-8) 0;
  }
  
  /* Hero */
  .hero {
    padding: var(--space-8) 0;
  }
  
  /* Cards */
  .card-image {
    height: 200px;
  }
  
  /* Footer */
  .footer {
    padding: var(--space-8) 0 var(--space-4);
  }
  
  .social-links {
    justify-content: center;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  /* Hero adjustments for landscape */
  .hero {
    padding: var(--space-8) 0;
  }
  
  .hero-title {
    font-size: var(--text-3xl);
  }
}

/* Print Styles */
@media print {
  /* Hide navigation and footer */
  .header,
  .footer,
  .mobile-nav,
  .menu-toggle,
  .btn,
  .social-links {
    display: none !important;
  }
  
  /* Adjust colors for print */
  body {
    color: black;
    background: white;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
  
  /* Page breaks */
  .page-break {
    page-break-after: always;
  }
  
  .no-break {
    page-break-inside: avoid;
  }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
  /* Sharper borders and shadows for retina */
  .card {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05),
                0 2px 4px rgba(0, 0, 0, 0.05),
                0 4px 8px rgba(0, 0, 0, 0.05);
  }
}

/* Hover Media Query - Cihazın hover desteği var mı? */
@media (hover: hover) {
  /* Hover efektleri sadece hover destekleyen cihazlarda */
  .hover\:scale:hover {
    transform: scale(1.05);
  }
  
  .hover\:shadow:hover {
    box-shadow: var(--shadow-lg);
  }
}

/* Reduced Motion - Erişilebilirlik */
@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;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  body.auto-dark {
    background-color: var(--gray-900);
    color: var(--gray-100);
  }
  
  .auto-dark .card {
    background-color: var(--gray-800);
    color: var(--gray-100);
  }
  
  .auto-dark .header {
    background-color: var(--gray-800);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
  
  .auto-dark .footer {
    background-color: var(--black);
  }
}
