/**
 * BİLİM TIP MERKEZİ - Responsive Stil Dosyası
 * ============================================
 */

/* ===== GLOBAL OVERFLOW FIX ===== */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/* AOS animation overflow fix */
[data-aos="fade-left"],
[data-aos="fade-right"] {
    overflow: visible;
}

/* Sections should clip AOS animations */
section {
    overflow-x: clip;
}

.container {
    overflow-x: clip;
}

/* ===== LARGE DESKTOP (1400px+) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-slider .slide-content h1 {
        font-size: 3.5rem;
    }

    .hero-slider .swiper-slide {
        height: 550px;
    }
}

/* ===== DESKTOP (1200px - 1399px) ===== */
@media (max-width: 1399px) {
    .hero-slider .swiper-slide {
        height: 550px;
    }

    .hero-slider .slide-content h1 {
        font-size: 2.75rem;
    }
}

/* ===== TABLET LANDSCAPE (992px - 1199px) ===== */
@media (max-width: 1199px) {
    .hero-slider .swiper-slide {
        height: 500px;
    }

    .hero-slider .slide-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

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

    .about-content {
        padding-right: 1rem;
    }
}

/* ===== TABLET (768px - 991px) ===== */
@media (max-width: 991px) {
    /* Header */
    .navbar-brand .logo-text {
        display: none;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .navbar-nav .nav-link {
        padding: 12px 16px !important;
        border-bottom: 1px solid var(--gray-light);
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .btn-appointment {
        width: 100%;
        margin-top: 1rem;
        text-align: center;
    }

    /* Hero Section - Full width slider on tablet */
    .hero-section {
        padding: 15px 0;
    }

    .hero-section .col-lg-9 {
        padding-right: 12px;
    }

    /* Hero Slider */
    .hero-slider .swiper-slide {
        height: 400px;
    }

    .hero-slider .slide-content {
        text-align: center;
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-slider .slide-content h1 {
        font-size: 2rem;
    }

    .hero-slider .slide-content p {
        font-size: 1.1rem;
    }

    .hero-slider .swiper-button-prev,
    .hero-slider .swiper-button-next {
        display: none;
    }

    /* Hide hero pharmacy widget on tablet, show mobile version below */
    .pharmacy-widget-hero {
        display: none;
    }

    /* Sections */
    .section-header {
        margin-bottom: 2rem !important;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Services */
    .service-card {
        margin-bottom: 1.5rem;
    }

    /* Stats */
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }

    .about-list {
        display: inline-block;
        text-align: left;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    /* Doctors */
    .doctor-card {
        margin-bottom: 1.5rem;
    }

    /* Blog & Pharmacy */
    .blog-card {
        margin-bottom: 1.5rem;
    }

    /* Footer */
    .footer-widget {
        margin-bottom: 2rem;
    }

    .footer-main {
        padding: 3rem 0 1rem;
    }

    /* Float Buttons - Tablet */
    .whatsapp-float {
        bottom: 90px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }

    .phone-float {
        bottom: 90px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .directions-float {
        bottom: 90px;
        left: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .scroll-to-top {
        bottom: 150px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

/* ===== MOBILE LANDSCAPE (576px - 767px) ===== */
@media (max-width: 767px) {
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    /* Top Bar */
    .top-bar {
        display: none !important;
    }

    /* Header */
    .main-header .navbar {
        padding: 10px 0;
    }

    .navbar-brand .logo-img {
        height: 40px;
    }

    /* Marquee */
    .marquee-container {
        padding: 8px 0;
    }

    .marquee span {
        font-size: 13px;
    }

    /* Hero */
    .hero-slider .swiper-slide {
        height: 400px;
    }

    .hero-slider .slide-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-slider .slide-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-slide {
        padding: 12px 24px;
        font-size: 1rem;
    }

    /* Sections */
    .section-subtitle {
        font-size: 12px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-desc {
        font-size: 1rem;
    }

    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }

    /* Stats */
    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    /* Doctor Cards */
    .doctor-info {
        padding: 1rem;
    }

    .doctor-info h4 {
        font-size: 1rem;
    }

    /* Blog Cards */
    .blog-content {
        padding: 1.25rem;
    }

    .blog-content h3 {
        font-size: 1rem;
    }

    /* Pharmacy Widget */
    .pharmacy-widget {
        margin: 0 -12px;
        border-radius: 0;
    }

    /* CTA Box */
    .cta-box {
        padding: 1.5rem;
        text-align: center;
    }

    .cta-box h2 {
        font-size: 1.25rem;
    }

    /* Map */
    .map-section iframe {
        height: 300px;
    }

    /* Footer */
    .footer-main {
        padding: 2.5rem 0 1rem;
    }

    .widget-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom .col-md-6 {
        margin-bottom: 0.5rem;
    }

    /* Mobile Appointment */
    .mobile-appointment-bar {
        padding: 10px 15px;
    }

    .mobile-appointment-bar a {
        font-size: 1rem;
    }

    /* Padding for mobile bottom bar */
    body {
        padding-bottom: 60px;
    }

    /* Float Buttons - Mobile Landscape */
    .phone-float {
        bottom: 80px;
        right: 15px;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .directions-float {
        bottom: 80px;
        left: 15px;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .scroll-to-top {
        bottom: 140px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

/* ===== MOBILE PORTRAIT (< 576px) ===== */
@media (max-width: 575px) {
    /* Container */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero */
    .hero-slider .swiper-slide {
        height: 350px;
    }

    .hero-slider .slide-content h1 {
        font-size: 1.25rem;
    }

    .hero-slider .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .btn-slide {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.35rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }

    /* Service Cards */
    .service-card {
        padding: 1.25rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    /* Stats - 2 columns */
    .stat-card {
        padding: 1.25rem 0.75rem;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-text {
        font-size: 0.8rem;
    }

    /* About Content */
    .about-content h2 {
        font-size: 1.35rem;
    }

    .about-content p {
        font-size: 0.95rem;
    }

    .about-list li {
        font-size: 0.9rem;
    }

    /* Doctor Cards */
    .doctor-info h4 {
        font-size: 0.95rem;
    }

    .doctor-info .specialty {
        font-size: 0.85rem;
    }

    /* Blog */
    .blog-meta {
        font-size: 12px;
        gap: 0.75rem;
    }

    .blog-content h3 {
        font-size: 0.95rem;
    }

    .blog-content p {
        font-size: 0.85rem;
    }

    /* Pharmacy */
    .pharmacy-header h3 {
        font-size: 1rem;
    }

    .pharmacy-card {
        padding: 0.75rem;
    }

    .pharmacy-card h4 {
        font-size: 0.9rem;
    }

    .pharmacy-card p {
        font-size: 0.8rem;
    }

    /* CTA Widget */
    .cta-widget {
        padding: 1.5rem;
    }

    .cta-widget i {
        font-size: 2.5rem;
    }

    .cta-widget h4 {
        font-size: 1.1rem;
    }

    /* Contact CTA */
    .cta-box h2 {
        font-size: 1.1rem;
    }

    .cta-box .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Footer */
    .footer-about {
        font-size: 0.9rem;
    }

    .footer-links a,
    .footer-contact li {
        font-size: 0.9rem;
    }

    .btn-appointment-footer {
        width: 100%;
        text-align: center;
    }

    /* Float Buttons - Mobile */
    .whatsapp-float {
        bottom: 75px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .phone-float {
        bottom: 75px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .directions-float {
        bottom: 75px;
        left: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .scroll-to-top {
        bottom: 130px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* ===== EXTRA SMALL (< 400px) ===== */
@media (max-width: 399px) {
    .hero-slider .swiper-slide {
        height: 300px;
    }

    .hero-slider .slide-content h1 {
        font-size: 1.1rem;
    }

    .hero-slider .slide-content p {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider .swiper-slide {
        height: 100vh;
        min-height: 300px;
    }

    .hero-slider .slide-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-slider .slide-content p {
        margin-bottom: 1rem;
    }
}

/* ===== HIGH DPI / RETINA ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-brand .logo-img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .top-bar,
    .main-header,
    .marquee-container,
    .hero-slider,
    .mobile-appointment-bar,
    .whatsapp-float,
    .phone-float,
    .directions-float,
    .scroll-to-top,
    .footer {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
    }

    .container {
        max-width: 100%;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .marquee {
        animation: none;
    }

    .btn-appointment {
        animation: none;
    }
}

/* ===== DARK MODE SUPPORT (Future) ===== */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}
