/* =====================================================
   옥보자기 - 반응형 스타일
   ===================================================== */

/* ----- 태블릿 (1024px 이하) ----- */
@media screen and (max-width: 1024px) {
    :root {
        --container-padding: 1.25rem;
    }

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

    /* 작품 갤러리 */
    .works-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 클래스 카드 */
    .class-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .class-cards .class-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }

    /* 경력 하이라이트 */
    .credentials-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----- 태블릿 세로 / 큰 모바일 (768px 이하) ----- */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 70px;
        --spacing-2xl: 3.5rem;
    }

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

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

    /* 헤더 */
    .nav {
        display: none;
    }

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

    /* 히어로 */
    .hero-title-main {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

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

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    /* 작가 소개 */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .about-image-wrapper::before {
        top: -15px;
        left: -15px;
    }

    .about-image .image-placeholder {
        min-height: 400px;
    }

    .about-text {
        text-align: center;
    }

    .about-highlights li {
        justify-content: center;
    }

    /* 작품 갤러리 */
    .works-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .works-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    /* 클래스 카드 */
    .class-cards {
        grid-template-columns: 1fr;
    }

    .class-cards .class-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    /* 경력 */
    .credentials-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .highlight-card {
        padding: var(--spacing-md);
    }

    .highlight-icon-large {
        font-size: 2rem;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-item::before {
        left: -34px;
        width: 10px;
        height: 10px;
    }

    .timeline-year {
        font-size: 1.25rem;
    }

    /* 연락처 */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .map-placeholder {
        min-height: 280px;
    }

    /* 푸터 */
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }

    /* 플로팅 바 */
    .floating-bar {
        bottom: 20px;
        right: 20px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
    }
}

/* ----- 모바일 (480px 이하) ----- */
@media screen and (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --spacing-2xl: 3rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    /* 히어로 */
    .hero {
        min-height: 550px;
    }

    .hero-title-main {
        font-size: 1.875rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

    /* 작가 소개 */
    .about-image .image-placeholder {
        min-height: 350px;
    }

    .about-description {
        font-size: 1rem;
    }

    .about-highlights li {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    /* 작품 갤러리 */
    .works-filter {
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-btn {
        flex: 0 0 auto;
    }

    .gallery-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.8));
    }

    .gallery-overlay h3 {
        font-size: 1rem;
    }

    /* 클래스 */
    .class-info {
        padding: var(--spacing-md);
    }

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

    .class-note {
        padding: var(--spacing-md);
    }

    /* 경력 */
    .credentials-highlights {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }

    .highlight-card {
        padding: var(--spacing-sm);
    }

    .highlight-card h3 {
        font-size: 1rem;
    }

    .highlight-card p {
        font-size: 0.75rem;
    }

    .highlight-icon-large {
        font-size: 1.75rem;
    }

    .timeline-content li {
        font-size: 0.875rem;
    }

    /* 연락처 */
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* 푸터 */
    .footer-info p {
        font-size: 0.8125rem;
    }
}

/* ----- 아주 작은 모바일 (360px 이하) ----- */
@media screen and (max-width: 360px) {
    .hero-title-main {
        font-size: 1.625rem;
    }

    .credentials-highlights {
        grid-template-columns: 1fr;
    }

    .works-gallery {
        grid-template-columns: 1fr;
    }
}

/* ----- 가로 모드 모바일 ----- */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: var(--spacing-lg) 0;
    }

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

    .hero-scroll {
        display: none;
    }
}

/* ----- 고해상도 디스플레이 ----- */
@media screen and (min-width: 1400px) {
    :root {
        --container-max: 1320px;
    }

    .section-title {
        font-size: 3rem;
    }

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

/* ----- 프린트 스타일 ----- */
@media print {
    .header,
    .floating-bar,
    .hero-scroll,
    .hero-cta {
        display: none;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: var(--spacing-xl) 0;
        background: var(--color-secondary);
        color: var(--color-white);
    }

    .hero-overlay {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }

    .credentials {
        background: var(--color-secondary);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ----- 다크모드 지원 (선택적) ----- */
@media (prefers-color-scheme: dark) {
    /*
    필요시 다크모드 스타일 추가
    현재는 전통적인 느낌을 위해 라이트 모드만 사용
    */
}

/* ----- 모션 감소 설정 ----- */
@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;
    }
}
