/**
 * ===================================================
 * Codegital CMS - RESPONSIVE STİLLER
 * ===================================================
 * Mobile-First Yaklaşım
 * Breakpoints: 320px, 576px, 768px, 992px, 1200px, 1400px
 * ===================================================
 */

/* ===== TABLET VE KÜÇÜK EKRANLAR (Max 992px) ===== */
@media (max-width: 992px) {
  /* Hero Section */
  .hero-section h1 {
    font-size: 2.25rem;
  }

  .hero-section p {
    font-size: 1.125rem;
  }

  /* Section Titles */
  .section-title {
    font-size: 2rem;
  }

  /* Navbar */
  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
  }

  /* Language Switcher & Quote Button */
  .language-switcher,
  .btn-quote {
    margin-top: 1rem;
  }

  /* Footer Columns */
  .footer .col-lg-4 {
    margin-bottom: 2rem;
  }

  /* WhatsApp Button */
  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 1.75rem;
    bottom: 20px;
    right: 20px;
  }

  /* Scroll Top Button */
  .scroll-top-btn {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
    bottom: 90px;
    right: 20px;
  }
}

/* ===== TABLET (768px - 992px) ===== */
@media (min-width: 768px) and (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  .hero-section {
    padding: 80px 0;
  }

  .section-padding {
    padding: 60px 0;
  }
}

/* ===== MOBİL (Max 768px) ===== */
@media (max-width: 768px) {
  /* Typography */
  body {
    font-size: 15px;
  }

  .hero-section h1 {
    font-size: 1.875rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Sections */
  .hero-section {
    padding: 60px 0;
  }

  .section-padding {
    padding: 50px 0;
  }

  .about-section {
    padding: 50px 0;
  }

  .newsletter-section {
    padding: 40px 0;
  }

  /* Navbar Brand */
  .navbar-brand .logo {
    height: 40px;
  }

  /* Cards */
  .card-body {
    padding: 1.25rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-icon {
    font-size: 2.5rem;
  }

  /* Buttons */
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
  }

  .btn-quote {
    width: 100%;
    justify-content: center;
  }

  /* Language Switcher */
  .language-switcher {
    justify-content: center;
    width: 100%;
  }

  .lang-btn {
    flex: 1;
    justify-content: center;
  }

  /* Footer */
  .footer {
    text-align: center;
  }

  .footer-logo {
    height: 50px;
    margin: 0 auto;
    display: block;
  }

  .social-links {
    justify-content: center;
  }

  .footer-links,
  .footer-contact {
    text-align: center;
  }

  .footer-contact li {
    justify-content: center;
  }

  .footer-bottom .row > div {
    margin-bottom: 0.5rem;
  }

  /* Newsletter Form */
  .newsletter-form .input-group {
    flex-direction: column;
  }

  .newsletter-form .form-control,
  .newsletter-form .btn {
    border-radius: 8px !important;
    width: 100%;
  }

  .newsletter-form .btn {
    margin-top: 0.5rem;
  }

  /* Hero Image */
  .hero-image {
    margin-top: 2rem;
  }

  /* About Image */
  .about-image {
    margin-top: 2rem;
    order: 2;
  }

  .about-content {
    order: 1;
  }

  /* Spacing */
  .mt-5,
  .my-5 {
    margin-top: 2rem !important;
  }

  .mb-5,
  .my-5 {
    margin-bottom: 2rem !important;
  }

  .pt-5,
  .py-5 {
    padding-top: 2rem !important;
  }

  .pb-5,
  .py-5 {
    padding-bottom: 2rem !important;
  }
}

/* ===== KÜÇÜK MOBİL (Max 576px) ===== */
@media (max-width: 576px) {
  /* Typography */
  .hero-section h1 {
    font-size: 1.625rem;
    line-height: 1.3;
  }

  .hero-section p {
    font-size: 0.9375rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.9375rem;
  }

  .card-title {
    font-size: 1.125rem;
  }

  /* Sections */
  .hero-section {
    padding: 40px 0;
  }

  .section-padding {
    padding: 40px 0;
  }

  /* Container Padding */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Cards */
  .card-img-top {
    height: 180px;
  }

  .card-body {
    padding: 1rem;
  }

  /* Service Cards */
  .service-card {
    padding: 1.25rem;
  }

  .service-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }

  /* Buttons */
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  /* News Card Meta */
  .news-card .card-meta {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8125rem;
  }

  /* Footer */
  .footer .container {
    padding: 2rem 1rem;
  }

  .footer-logo {
    height: 45px;
  }

  .social-links {
    gap: 0.75rem;
  }

  .social-link {
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
  }

  /* Float Buttons */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 15px;
    right: 15px;
  }

  .scroll-top-btn {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
    bottom: 20px;
    right: 15px;
  }

  /* Modal */
  .modal-dialog {
    margin: 1rem;
  }

  .modal-content {
    border-radius: 12px;
  }

  /* Form */
  .form-control,
  .form-select {
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
  }

  /* Pagination */
  .pagination {
    font-size: 0.875rem;
  }

  .pagination .page-link {
    padding: 0.375rem 0.75rem;
  }
}

/* ===== ÇOK KÜÇÜK MOBİL (Max 375px) ===== */
@media (max-width: 375px) {
  body {
    font-size: 14px;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .hero-section p {
    font-size: 0.875rem;
  }

  .section-title {
    font-size: 1.375rem;
  }

  .navbar-brand .logo {
    height: 35px;
  }

  .btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }

  .lang-btn {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
  }

  .card-img-top {
    height: 160px;
  }

  .service-icon {
    font-size: 2rem;
  }
}

/* ===== LANDSCAPE MOBİL ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    padding: 40px 0;
  }

  .hero-section h1 {
    font-size: 1.75rem;
  }

  .hero-section p {
    font-size: 0.9375rem;
  }

  .section-padding {
    padding: 40px 0;
  }
}

/* ===== BÜYÜK EKRANLAR (Min 1400px) ===== */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero-section h1 {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 2.75rem;
  }
}

/* ===== TABLET LANDSCAPE ===== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .navbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav-item {
    margin: 0 0.5rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .footer,
  .whatsapp-float,
  .scroll-top-btn,
  .btn-quote {
    display: none !important;
  }

  body {
    background-color: white;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}

/* ===== TOUCH DEVICES ===== */
@media (hover: none) and (pointer: coarse) {
  /* Touch-friendly button sizes */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  .nav-link {
    min-height: 44px;
    padding: 0.75rem 1rem !important;
  }

  /* Remove hover effects */
  .card:hover {
    transform: none;
  }

  .btn-primary:hover {
    transform: none;
  }

  /* Tap highlight color */
  * {
    -webkit-tap-highlight-color: rgba(53, 126, 192, 0.2);
  }
}

/* ===== DARK MODE (Opsiyonel) ===== */
@media (prefers-color-scheme: dark) {
  /* Dark mode stilleri buraya eklenebilir */
  /* Şimdilik devre dışı */
}

/* ===== 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;
  }
}
