/* 
 * Responsive Design - Mobile Uyumlu Tasarım
 * Mobil, Tablet ve Masaüstü için optimize edilmiş
 */

/* Tablet (768px ve altı) */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Header */
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .separator {
        margin: 0 10px;
    }

    .navbar-content {
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 80%;
        max-width: 300px;
        height: 100vh;
        padding: 80px 20px 20px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: 0.3s;
        overflow-y: auto;
        z-index: 1001;
    }

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

    .nav-menu li {
        width: 100%;
        margin-bottom: 10px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }

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

    .dropdown > a i {
        float: right;
        transition: transform 0.3s;
    }

    .dropdown.active > a i {
        transform: rotate(180deg);
    }

    /* Mobile Menu Close Button */
    .nav-menu::before {
        content: '\f00d';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        color: var(--dark-color);
        cursor: pointer;
    }

    /* Hero Section */
    .hero {
        padding: 50px 20px;
        margin-bottom: 30px;
    }

    .hero h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* Section */
    .section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .section-title p {
        font-size: 16px;
    }

    /* Card Grid */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Calculator */
    .calculator-container {
        padding: 25px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .result-value {
        font-size: 36px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    /* Search Modal */
    .search-modal-content {
        margin: 20% auto;
        padding: 30px 20px;
    }

    .search-form {
        flex-direction: column;
    }

    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    /* Buttons */
    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* Mobile (480px ve altı) */
@media screen and (max-width: 480px) {
    /* Logo */
    .logo {
        font-size: 22px;
    }

    .logo i {
        font-size: 26px;
    }

    /* Hero */
    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 14px;
    }

    /* Section Title */
    .section-title h2 {
        font-size: 24px;
    }

    /* Card */
    .card-content {
        padding: 20px;
    }

    .card-title {
        font-size: 18px;
    }

    /* Calculator */
    .calculator-container {
        padding: 20px 15px;
    }

    .result-box {
        padding: 20px;
    }

    .result-box h3 {
        font-size: 20px;
    }

    .result-value {
        font-size: 32px;
    }

    /* Footer */
    .footer-section h3,
    .footer-section h4 {
        font-size: 18px;
    }

    .social-links a {
        margin-left: 10px;
    }

    /* Search Modal */
    .search-modal-content {
        width: 95%;
        padding: 25px 15px;
    }

    .search-form input {
        padding: 12px;
        font-size: 14px;
    }

    .search-form button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Large Desktop (1400px ve üzeri) */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero h1 {
        font-size: 56px;
    }

    .section-title h2 {
        font-size: 42px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .back-to-top,
    .search-icon,
    .mobile-menu-toggle {
        display: none;
    }

    body {
        background: white;
    }

    .card {
        break-inside: avoid;
    }
}

/* Landscape Orientation */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .nav-menu {
        padding: 20px;
    }

    .hero {
        padding: 30px 20px;
    }

    .hero h1 {
        font-size: 28px;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .card-image {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
    }

    .nav-menu a {
        padding: 15px;
    }

    .card {
        margin-bottom: 20px;
    }
}

