/* CSS/responsive.css - Cancer Center Uzbekistan Responsive Styles */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .slide-content h1 {
        font-size: 2.4rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .stats {
        gap: 30px;
    }
    
    .departments-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .doctors-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .contact-content {
        gap: 40px;
    }
    
    .footer-content {
        gap: 30px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .language-switcher {
        top: 15px;
        right: 15px;
        padding: 5px;
    }
    
    .language-switcher select {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .header-content {
        padding: 0.8rem 0;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .logo-text h2,
    .logo-text h3 {
        font-size: 20px;
    }
    
    .logo-text span {
        font-size: 12px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        gap: 30px;
        transition: left 0.3s ease;
        border-top: 1px solid rgba(0, 196, 204, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Compact Hero Slider for Mobile */
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }
    
    .slide-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .slide-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        width: 100%;
        padding: 15px 30px;
    }
    
    .prev-btn,
    .next-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .prev-btn {
        left: 15px;
    }
    
    .next-btn {
        right: 15px;
    }
    
    .slider-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .about-section,
    .departments-section,
    .doctors-section,
    .services-section,
    .news-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .stats {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
    }
    
    .department-card {
        padding: 30px 20px;
    }
    
    .card-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
    
    .department-filter {
        gap: 8px;
        margin-bottom: 40px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
    }
    
    .doctor-image {
        height: 250px;
    }
    
    .doctor-info {
        padding: 25px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-image {
        height: 200px;
    }
    
    .news-content {
        padding: 25px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .info-item {
        gap: 15px;
    }
    
    .info-item i {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .footer {
        padding: 50px 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 4px;
    }
    
    .language-switcher select {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .logo {
        gap: 10px;
    }
    
    .logo-img {
        width: 45px;
        height: 45px;
    }
    
    .logo-text h2,
    .logo-text h3 {
        font-size: 18px;
    }
    
    .hero-slider {
        height: 50vh;
        min-height: 350px;
    }
    
    .slide-content h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .slide-content p {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }
    
    .prev-btn,
    .next-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .about-text h3 {
        font-size: 1.6rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .department-card {
        padding: 25px 15px;
    }
    
    .department-card h3 {
        font-size: 1.2rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .department-filter {
        gap: 6px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .doctor-info {
        padding: 20px;
    }
    
    .doctor-info h3 {
        font-size: 1.2rem;
    }
    
    .doctor-title {
        font-size: 12px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        padding: 25px 15px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .service-item h4 {
        font-size: 1.1rem;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-content h3 {
        font-size: 1.2rem;
    }
    
    .contact-form {
        padding: 25px 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 13px;
    }
    
    .btn-full {
        padding: 12px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .slide-content h1 {
        font-size: 1.4rem;
    }
    
    .slide-content p {
        font-size: 0.8rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .department-card {
        padding: 20px 10px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .filter-btn {
        padding: 5px 10px;
        font-size: 10px;
    }
}

/* Landscape Mobile Styles */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-slider {
        height: 90vh;
    }
    
    .slide-content h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .slide-buttons {
        flex-direction: row;
        gap: 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .nav-menu {
        height: calc(100vh - 70px);
        padding-top: 30px;
    }
}

/* High Resolution Styles */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .slide-content h1 {
        font-size: 3.5rem;
    }
    
    .slide-content p {
        font-size: 1.3rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .departments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .doctors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-slider,
    .slider-nav,
    .slider-dots,
    .contact-form,
    .social-links,
    .language-switcher {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .section-header h2 {
        color: #000;
        font-size: 18pt;
    }
    
    .department-card,
    .doctor-card,
    .news-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    .btn {
        display: none;
    }
    
    .lang-content {
        display: block !important;
    }
    
    .lang-content:not(.lang-tr) {
        display: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #e0e0e0;
        --card-bg: #2d2d2d;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .slide {
        transition: none;
    }
    
    .hero-slider {
        overflow: visible;
    }
}

/* Focus Styles for Keyboard Navigation */
.btn:focus,
.nav-link:focus,
.filter-btn:focus,
.language-switcher select:focus {
    outline: 3px solid #00c4cc;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border-color: #000;
        color: #fff;
    }
    
    .btn-outline {
        border-color: #fff;
        color: #fff;
    }
    
    .nav-link {
        color: #000;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: #000;
        background: #ffff00;
    }
}