/* ====================================
   반응형 최적화 - 태블릿 & 대형 PC
   ==================================== */

/* 태블릿 (769px ~ 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0 var(--space-5);
    }
    
    /* Hero 섹션 */
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.375rem;
    }
    
    /* 그리드 최적화 */
    .pain-points-grid,
    .beginner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-5);
    }
    
    .references-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .instructor-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 버튼 크기 */
    .btn {
        min-height: 54px;
        font-size: 1.0625rem;
    }
}

/* 대형 PC (1441px 이상) */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }
    
    /* Hero 섹션 */
    .hero-section {
        padding: 120px 20px;
    }
    
    .hero-title {
        font-size: 5rem;
        letter-spacing: -0.02em;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
    }
    
    /* 섹션 타이틀 */
    .section-title {
        font-size: 3rem;
    }
    
    .section-desc {
        font-size: 1.25rem;
        max-width: 800px;
    }
    
    /* 그리드 최적화 */
    .references-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-6);
    }
    
    .instructor-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }
    
    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 카드 크기 증가 */
    .reference-card,
    .testimonial-card,
    .showcase-item {
        padding: var(--space-6);
    }
    
    /* 버튼 */
    .btn-large {
        font-size: 1.25rem;
        padding: var(--space-5) var(--space-8);
    }
}

/* 초대형 PC (1920px 이상) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    .hero-title {
        font-size: 5.5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    /* 여백 증가 */
    :root {
        --section-padding: 140px 20px;
    }
}

/* 터치 기기 최적화 */
@media (hover: none) and (pointer: coarse) {
    /* 터치 영역 확대 */
    .btn,
    .faq-question,
    .floating-btn,
    .scroll-top {
        min-height: 48px;
        min-width: 48px;
    }
    
    /* 호버 효과 제거 (터치 기기) */
    .btn:hover,
    .reference-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    
    /* 활성 상태 피드백 */
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* 고해상도 디스플레이 (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* 이미지 선명도 향상 */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    /* 아이콘 선명도 */
    .fas,
    .fab {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* 프린트 최적화 */
@media print {
    /* 불필요한 요소 숨김 */
    .floating-contacts,
    .scroll-top,
    .hero-cta,
    footer {
        display: none !important;
    }
    
    /* 배경색 제거 */
    * {
        background: white !important;
        color: black !important;
    }
    
    /* 페이지 나누기 */
    section {
        page-break-inside: avoid;
    }
}

/* 다크모드 지원 (선택사항) */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg-primary: #0F172A;
        --color-bg-secondary: #1E293B;
        --color-text-primary: #F8FAFC;
        --color-text-secondary: #CBD5E1;
    }
    
    /* 이미지 밝기 조정 */
    img {
        opacity: 0.9;
    }
}
