/* ========================================
   Topçu Bul - Responsive Styles
   Mobile-First Approach
   ======================================== */

/* ========================================
   Tablet (768px - 1023px)
   ======================================== */
@media (max-width: 1023px) {
    /* Typography */
    h1 { font-size: var(--font-4xl); }
    h2 { font-size: var(--font-3xl); }
    h3 { font-size: var(--font-2xl); }

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

    /* Container */
    .container {
        padding: 0 var(--spacing-lg);
    }

    /* Hero */
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
        text-align: center;
    }

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

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-lg);
    }

    .hero-stat:not(:last-child)::after {
        display: none;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 350px;
    }

    /* Phone Screenshots Tablet */
    .phone-screenshots {
        gap: var(--spacing-lg);
    }

    .phone-device img {
        max-width: 220px;
    }

    .phone-device.android-phone img {
        max-width: 200px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Steps */
    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-2xl);
    }

    .steps::before {
        display: none;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .about-image {
        order: -1;
    }

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

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
}

/* ========================================
   Mobile (max-width: 767px)
   ======================================== */
@media (max-width: 767px) {
    /* Typography */
    h1 { font-size: var(--font-3xl); }
    h2 { font-size: var(--font-2xl); }
    h3 { font-size: var(--font-xl); }
    h4 { font-size: var(--font-lg); }

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

    .section-title {
        margin-bottom: var(--spacing-2xl);
    }

    .section-title h2 {
        font-size: var(--font-2xl);
    }

    .section-title p {
        font-size: var(--font-base);
    }

    /* Header */
    .nav-list {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Mobile Navigation */
    .nav.active .nav-list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-white);
        backdrop-filter: blur(20px);
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-card-hover);
        gap: 0;
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    }

    .nav.active .nav-list .nav-link {
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
    }

    .nav.active .nav-list .nav-link::before {
        display: none;
    }

    .nav.active .nav-list .nav-link:last-child {
        border-bottom: none;
    }

    /* Menu Toggle Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    /* Hero */
    .hero {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: var(--spacing-3xl);
    }

    .hero .orb {
        display: none;
    }

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

    .hero-subtitle {
        font-size: var(--font-base);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

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

    .hero-stat-number {
        font-size: var(--font-3xl);
    }

    .hero-image img {
        max-width: 260px;
    }

    /* Phone Screenshots Mobile */
    .phone-screenshots {
        gap: var(--spacing-md);
    }

    .phone-device img {
        max-width: 160px;
        border-radius: 24px;
    }

    .phone-device.android-phone img {
        max-width: 150px;
        border-radius: 20px;
    }

    .phone-device.ios-phone {
        transform: translateY(-10px);
    }

    .phone-label {
        bottom: -35px;
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-xs);
    }

    /* CTA */
    .cta-content {
        padding: var(--spacing-xl);
    }

    .cta-title {
        font-size: var(--font-2xl);
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: var(--spacing-xl);
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    /* Steps */
    .steps {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: var(--font-xl);
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .stat-number {
        font-size: var(--font-4xl);
    }

    .stat-label {
        font-size: var(--font-base);
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: var(--spacing-xl);
    }

    .testimonial-content {
        font-size: var(--font-base);
    }

    /* CTA */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .store-btn {
        width: 100%;
        max-width: 250px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-logo {
        justify-content: center;
    }

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

    .footer-links {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Page Header */
    .page-header {
        padding: 120px 0 40px;
    }

    .page-header h1 {
        font-size: var(--font-2xl);
    }

    .breadcrumb {
        font-size: var(--font-xs);
    }

    /* Content Pages */
    .content-wrapper {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .content-wrapper h2 {
        font-size: var(--font-xl);
    }

    .content-wrapper h3 {
        font-size: var(--font-lg);
    }

    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-form-wrapper {
        padding: var(--spacing-lg);
    }

    /* FAQ */
    .faq-categories {
        gap: var(--spacing-xs);
    }

    .faq-category-btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-sm);
    }

    .faq-question {
        padding: var(--spacing-md);
        font-size: var(--font-base);
    }

    .faq-answer {
        padding: 0 var(--spacing-md);
    }

    .faq-item.active .faq-answer {
        padding: 0 var(--spacing-md) var(--spacing-md);
    }

    /* Buttons */
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
    }

    .btn-lg {
        padding: var(--spacing-md) var(--spacing-xl);
    }
}

/* ========================================
   Small Mobile (max-width: 374px)
   ======================================== */
@media (max-width: 374px) {
    html {
        font-size: 14px;
    }

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

    .container {
        padding: 0 var(--spacing-md);
    }

    .store-btn {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .store-btn-text span {
        font-size: var(--font-sm);
    }
}

/* ========================================
   Large Desktop (1400px+)
   ======================================== */
@media (min-width: 1400px) {
    :root {
        --container-max: 1320px;
    }

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

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .header,
    .footer,
    .hero-buttons,
    .cta,
    .menu-toggle {
        display: none !important;
    }

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

    .page-header {
        background: none;
        color: #000;
        padding: 20pt 0;
    }

    .page-header h1,
    .page-header p {
        color: #000;
    }

    .content-wrapper {
        max-width: 100%;
        padding: 0;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .section {
        padding: 20pt 0;
    }
}

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

/* ========================================
   Dark Mode Support (Optional)
   ======================================== */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode support
    :root {
        --background-color: #1a1a1a;
        --background-white: #2d2d2d;
        --text-dark: #f5f5f5;
        --text-light: #b0b0b0;
        --text-muted: #808080;
        --border-color: #404040;
        --shadow-color: rgba(0, 0, 0, 0.3);
    }
    */
}

/* ========================================
   High Contrast Mode
   ======================================== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #007a3d;
        --text-light: #333333;
        --border-color: #333333;
    }

    .btn {
        border: 2px solid currentColor;
    }

    .nav-link::after {
        height: 3px;
    }
}
