/* ==========================================
   SUTEMIZ.COM.TR - Responsive Styles
   Mobil & Tablet Optimizasyonu
   ========================================== */

/* ==================================
   TABLET - LARGE (1024px - 1200px)
   ================================== */

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .hero-title {
        font-size: 3rem;
    }

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

/* ==================================
   TABLET (768px - 1024px)
   ================================== */

@media (max-width: 1024px) {
    :root {
        --spacing-xl: 2.5rem;
        --spacing-2xl: 3.5rem;
    }

    .container {
        max-width: 720px;
    }

    /* Navigation */
    .nav-menu {
        gap: var(--spacing-md);
    }

    .nav-menu a {
        font-size: 0.9rem;
    }

    .nav-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Hero */
    .hero {
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-stats {
        gap: var(--spacing-lg);
    }

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

    /* Sections */
    .section {
        padding: var(--spacing-xl) 0;
    }

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

/* ==================================
   MOBILE - LARGE (576px - 768px)
   ================================== */

@media (max-width: 768px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
    }

    html {
        font-size: 15px;
    }

    .container {
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }

    /* ==================================
       MOBILE NAVIGATION
       ================================== */

    .mobile-toggle {
        display: flex;
        z-index: calc(var(--z-sticky) + 1);
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-xl) 0;
        box-shadow: var(--shadow-xl);
        transition: left var(--transition-base);
        overflow-y: auto;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        opacity: 0;
        transform: translateX(-20px);
        transition: all var(--transition-base);
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.35s; }

    .nav-menu a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--spacing-md);
        font-size: 1.1rem;
        border-bottom: 1px solid var(--light-gray);
        width: 100%;
    }

    .nav-menu a::after {
        display: none;
    }

    /* Dropdown Mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.02);
        display: none;
        padding: 0;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-toggle i {
        margin-left: auto;
    }

    .dropdown-menu a {
        padding: var(--spacing-sm) var(--spacing-xl);
        font-size: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-cta {
        margin: var(--spacing-md);
        width: calc(100% - var(--spacing-xl));
        justify-content: center;
        padding: 1rem;
    }

    /* Hero Mobile */
    .hero {
        min-height: 70vh;
        margin-top: 70px;
    }

    .hero-content {
        padding: var(--spacing-xl) 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-lg);
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .btn {
        width: 100%;
        max-width: 350px;
        padding: 0.9rem 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }

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

    .hero-stat-label {
        font-size: 0.85rem;
    }

    /* Sections Mobile */
    .section {
        padding: var(--spacing-lg) 0;
    }

    .section-lg {
        padding: var(--spacing-xl) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-lg);
    }

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

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

    .section-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    /* Services Grid Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .service-card {
        padding: var(--spacing-lg);
    }

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

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

    /* Footer Mobile */
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .footer-section ul {
        margin-bottom: var(--spacing-md);
    }

    .footer-section a:hover {
        padding-left: 0;
    }

    .social-links {
        justify-content: center;
    }
}

/* ==================================
   MOBILE - SMALL (max 576px)
   ================================== */

@media (max-width: 576px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1.25rem;
        --spacing-xl: 1.75rem;
        --spacing-2xl: 2.5rem;
    }

    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    /* Header */
    .logo-text {
        font-size: 1.5rem;
    }

    .logo-subtitle {
        font-size: 0.7rem;
    }

    /* Hero */
    .hero {
        min-height: 60vh;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

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

    /* Buttons */
    .btn {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .btn-sm {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    /* Service Cards */
    .service-card {
        padding: var(--spacing-md);
    }

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

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    /* Section Headers */
    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }
}

/* ==================================
   LANDSCAPE MOBILE
   ================================== */

@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }

    .hero-content {
        padding: var(--spacing-lg) 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }

    .hero-stats {
        flex-direction: row;
        gap: var(--spacing-lg);
    }

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

/* ==================================
   TOUCH DEVICE OPTIMIZATIONS
   ================================== */

@media (hover: none) and (pointer: coarse) {
    /* Daha büyük dokunma alanları */
    .btn {
        min-height: 48px;
        padding: 1rem 2rem;
    }

    .nav-menu a {
        min-height: 48px;
        padding: var(--spacing-md) var(--spacing-lg);
    }

    /* Touch feedback */
    .btn:active,
    .service-card:active {
        transform: scale(0.98);
    }

    /* Hover efektlerini devre dışı bırak */
    .service-card:hover {
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
    }

    /* Active states for touch */
    .btn-primary:active {
        transform: scale(0.97);
        box-shadow: var(--shadow-md);
    }

    .service-card:active {
        box-shadow: var(--shadow-lg);
    }
}

/* ==================================
   PRINT STYLES
   ================================== */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    .header,
    .footer,
    .nav-menu,
    .mobile-toggle,
    .hero-buttons,
    .btn {
        display: none !important;
    }

    .hero {
        margin-top: 0;
        min-height: auto;
        padding: 2rem 0;
    }

    .container {
        max-width: 100%;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
}

/* ==================================
   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;
    }

    .water-drop {
        animation: none;
    }

    .hero-stat-number {
        animation: none;
    }
}

/* ==================================
   HIGH CONTRAST MODE
   ================================== */

@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0055AA;
        --secondary-blue: #0088CC;
        --text-gray: #444;
    }

    .btn {
        border-width: 3px;
    }

    a {
        text-decoration: underline;
    }

    .service-card {
        border: 2px solid var(--dark-blue);
    }
}

/* ==================================
   DARK MODE SUPPORT (Gelecek için hazır)
   ================================== */

@media (prefers-color-scheme: dark) {
    /* Dark mode stilleri buraya eklenebilir */
    /* Şu an için light mode öncelikli */
}
