/*
 * responsive.css - 청년누수 반응형 스타일시트
 * 위치: /assets/css/responsive.css
 */

/* ========== Large Desktop (1400px+) ========== */
@media (min-width: 1400px) {
    .container {
        padding: 0 40px;
    }

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

/* ========== Desktop (1200px - 1399px) ========== */
@media (max-width: 1399px) {
    :root {
        --section-padding: 80px;
    }

    .footer-main {
        gap: 40px;
    }
}

/* ========== Tablet Landscape (992px - 1199px) ========== */
@media (max-width: 1199px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-item:nth-child(2n) {
        border-right: none;
    }

    .feature-item:nth-child(n+3) {
        border-bottom: none;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        max-width: 100%;
        grid-column: span 2;
    }
}

/* ========== Tablet Portrait (768px - 991px) ========== */
@media (max-width: 991px) {
    :root {
        --section-padding: 60px;
    }

    .header-inner {
        height: 70px;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        padding: 40px 20px;
        transform: translateX(100%);
        transition: transform var(--transition-normal);
        overflow-y: auto;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list li a {
        padding: 16px 20px;
        font-size: 1.125rem;
        border-bottom: 1px solid var(--dark-border);
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 30px;
    }

    .nav-cta .btn {
        width: 100%;
        justify-content: center;
    }

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

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

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

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

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }

    .hero-stat {
        flex: 0 0 calc(50% - 15px);
    }

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

    .cta-phone {
        font-size: 2rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: auto;
        max-width: 100%;
    }

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

    .slide-image {
        height: 450px;
    }

    .slide-content {
        padding: 40px;
    }
}

/* ========== Mobile Landscape (576px - 767px) ========== */
@media (max-width: 767px) {
    :root {
        --section-padding: 50px;
        --card-radius: 12px;
    }

    html {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .hero-desc {
        font-size: 1.1rem;
        margin: 0 auto 30px;
    }

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

    .hero-stats {
        justify-content: center;
        text-align: center;
        border-top: none;
        padding-top: 0;
        margin-top: 40px;
    }

    .hero-stat {
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 30px;
    }

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

    .feature-item {
        border-right: none;
        border-bottom: 1px solid var(--dark-border);
        padding: 40px 20px;
    }

    .feature-item:last-child {
        border-bottom: none;
    }

    .cta-section {
        padding: 80px 0;
    }

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

    .cta-phone {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 8px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 1rem;
    }

    .card {
        padding: 30px;
    }

    .slide-image {
        height: 350px;
    }

    .slide-content {
        padding: 30px 20px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
    }

    .slider-nav.prev { left: 10px; }
    .slider-nav.next { right: 10px; }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

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

    .header-inner {
        height: 60px;
    }

    .logo img {
        height: 35px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .main-nav {
        top: 60px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 8px 16px;
    }

    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

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

    .section-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
        padding: 6px 16px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        border-radius: 16px;
    }

    .service-title {
        font-size: 1.25rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .cta-phone {
        font-size: 1.25rem;
    }

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

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

    .slide-image {
        height: 280px;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slider-pagination {
        bottom: 20px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }
}

/* ========== Small Mobile (0px - 375px) ========== */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }

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

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .card,
    .service-card {
        padding: 24px;
    }

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

/* ========== Height Adjustments for Short Screens ========== */
@media (max-height: 700px) and (min-width: 768px) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-stats {
        margin-top: 40px;
    }
}

/* ========== Print Styles ========== */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .scroll-progress,
    .slider-nav,
    .slider-pagination {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero,
    .section {
        padding: 30px 0;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}

/* ========== Dark Mode Preference (already dark by default) ========== */
@media (prefers-color-scheme: light) {
    /* Site is dark by design, no changes needed */
}

/* ========== High Contrast Mode ========== */
@media (prefers-contrast: high) {
    :root {
        --dark-border: #444444;
        --text-gray: #cccccc;
        --text-muted: #aaaaaa;
    }

    .btn-primary {
        border: 2px solid white;
    }

    .card,
    .service-card,
    .feature-item {
        border-width: 2px;
    }
}

/* ========== Landscape Orientation on Mobile ========== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .hero-stats {
        display: none;
    }
}
