/* ========================================
   Responsive Styles - 아신요신
   ======================================== */

/* Tablet Devices (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        padding: 2rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        gap: 0;
        z-index: 999;
    }
    
    body.dark-theme .nav-menu {
        background: rgba(30, 30, 30, 0.95);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 1rem;
        border-radius: var(--radius-sm);
        width: 100%;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }
    
    .logo span {
        font-size: 1.25rem;
    }
    
    .logo img {
        width: 35px;
        height: 35px;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .nav-actions .btn-primary {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 7rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Search Section */
    .search-box {
        padding: 1.5rem;
    }
    
    .search-header h2 {
        font-size: 1.5rem;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-input {
        padding: 1rem 1rem 1rem 3.5rem;
        font-size: 1rem;
    }
    
    .search-btn {
        position: static;
        width: 100%;
        padding: 1rem;
    }
    
    .search-suggestions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Category Section */
    .category-section {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .category-name {
        font-size: 1.25rem;
    }
    
    /* Features Section */
    .features-section {
        padding: 2rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    /* Pricing Section */
    .pricing-section {
        padding: 2rem 0;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-title {
        font-size: 1.5rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .pricing-features li {
        font-size: 0.875rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 2rem 0;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .cta-text h2 {
        font-size: 1.5rem;
    }
    
    .cta-text p {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Scroll to Top */
    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    /* Background Animation */
    .circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .circle-2 {
        width: 250px;
        height: 250px;
    }
    
    .circle-3 {
        width: 280px;
        height: 280px;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .search-box {
        padding: 1.25rem;
    }
    
    .pricing-card {
        padding: 1.25rem;
    }
    
    .cta-content {
        padding: 1.5rem;
    }
    
    .category-card {
        padding: 1.25rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 6rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

/* Large Desktop (min-width: 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .scroll-top,
    .background-animation,
    .cta-section {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .glass-effect,
    .glass-card {
        background: white;
        border: 1px solid #ddd;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .background-animation {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .glass-effect {
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid #000;
    }
    
    body.dark-theme .glass-effect {
        background: rgba(0, 0, 0, 0.95);
        border: 2px solid #fff;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link,
    .category-card,
    .feature-card,
    .pricing-card,
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .tag {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(196, 86, 61, 0.2);
    }
    
    /* Increase touch target sizes */
    .nav-link {
        min-height: 44px;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        min-height: 44px;
        padding: 0.875rem 2rem;
    }
    
    .btn-icon {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Retina Display */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Dark Theme Adjustments */
body.dark-theme {
    /* Adjust glassmorphism for dark theme */
}

@media (max-width: 768px) {
    body.dark-theme .nav-menu {
        background: rgba(20, 20, 20, 0.98);
    }
}

/* iPad Pro and similar tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Foldable Devices */
@media (min-width: 540px) and (max-width: 720px) {
    .container {
        max-width: 100%;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
