/**
 * responsive.css - 반응형 스타일시트
 * 영어회화 단어장 (English Conversation Vocabulary)
 * 화(Anger) 배출구
 *
 * Breakpoints:
 * - Mobile: < 576px
 * - Tablet: 576px - 992px
 * - Desktop: 992px - 1200px
 * - Large Desktop: > 1200px
 */

/* ==========================================================================
   Mobile First - Base Styles (< 576px)
   ========================================================================== */

/* Typography for Mobile */
h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

/* Section */
.section {
    padding: var(--space-2xl) 0;
}

.section-title {
    font-size: var(--font-size-2xl);
}

.section-desc {
    font-size: var(--font-size-base);
}

/* Grid - Mobile Stack */
.grid-2,
.grid-3,
.grid-4 {
    grid-template-columns: 1fr;
}

/* Stats Grid Mobile */
.stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.stat-number {
    font-size: var(--font-size-3xl);
}

/* Footer Grid Mobile */
.footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
}

.footer-brand {
    max-width: 100%;
    margin-bottom: var(--space-xl);
}

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

.footer-links,
.footer-contact {
    margin-bottom: var(--space-lg);
}

.contact-list {
    justify-content: center;
}

.contact-list li {
    justify-content: center;
}

/* Hero Section Mobile */
.hero-section {
    min-height: auto;
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.hero-content {
    text-align: center;
    max-width: 100%;
}

.hero-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-md);
}

.hero-desc {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-lg);
}

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

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

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

/* Slider Mobile */
.slide-content {
    min-height: 450px;
    padding: var(--space-2xl) 0;
}

.slide-inner {
    text-align: center;
    max-width: 100%;
}

.slide-title {
    font-size: var(--font-size-2xl);
}

.slide-desc {
    font-size: var(--font-size-base);
}

.slider-nav {
    display: none;
}

.slider-pagination {
    bottom: var(--space-md);
}

/* Expression Cards Mobile */
.expression-card {
    padding: var(--space-md);
}

.expression-eng {
    font-size: var(--font-size-xl);
}

.expression-play {
    opacity: 1;
    transform: scale(1);
    width: 36px;
    height: 36px;
}

/* Page Header Mobile */
.page-header {
    padding: 80px 0 var(--space-2xl);
}

.page-title {
    font-size: var(--font-size-2xl);
}

.page-subtitle {
    font-size: var(--font-size-base);
}

/* Category Tabs Mobile */
.category-tabs {
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.category-tab {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-sm);
}

/* Contact Grid Mobile */
.contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

/* Blog Grid Mobile */
.blog-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

/* Back to Top Mobile */
.back-to-top {
    width: 44px;
    height: 44px;
    bottom: var(--space-md);
    right: var(--space-md);
}

/* Header Top Mobile - Hide notice text */
.header-top {
    display: none;
}

/* ==========================================================================
   Small Tablets (>= 576px)
   ========================================================================== */
@media (min-width: 576px) {
    /* Typography */
    h1 { font-size: var(--font-size-4xl); }
    h2 { font-size: var(--font-size-3xl); }

    .section-title {
        font-size: var(--font-size-3xl);
    }

    /* Grid 2 columns on small tablets */
    .grid-2,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero */
    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .hero-actions .btn {
        width: auto;
    }

    /* Slider */
    .slide-title {
        font-size: var(--font-size-3xl);
    }

    /* Footer Grid */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .contact-list li {
        justify-content: flex-start;
    }

    /* Blog Grid */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Tablets (>= 768px)
   ========================================================================== */
@media (min-width: 768px) {
    /* Section */
    .section {
        padding: var(--space-3xl) 0;
    }

    /* Header Top - Show */
    .header-top {
        display: block;
    }

    /* Grid 3 columns */
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Stats Grid */
    .stats-grid {
        gap: var(--space-lg);
    }

    .stat-number {
        font-size: var(--font-size-4xl);
    }

    /* Hero */
    .hero-section {
        min-height: 70vh;
        padding: var(--space-3xl) 0;
    }

    .hero-title {
        font-size: var(--font-size-5xl);
    }

    .hero-desc {
        font-size: var(--font-size-lg);
    }

    /* Slider */
    .slide-content {
        min-height: 550px;
    }

    .slide-title {
        font-size: var(--font-size-4xl);
    }

    .slide-desc {
        font-size: var(--font-size-lg);
    }

    .slider-nav {
        display: flex;
        width: 44px;
        height: 44px;
    }

    /* Expression Cards */
    .expression-card {
        padding: var(--space-lg);
    }

    .expression-eng {
        font-size: var(--font-size-2xl);
    }

    /* Page Header */
    .page-header {
        padding: 100px 0 var(--space-2xl);
    }

    .page-title {
        font-size: var(--font-size-4xl);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Back to Top */
    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: var(--space-xl);
        right: var(--space-xl);
    }
}

/* ==========================================================================
   Large Tablets / Small Desktop (>= 992px)
   ========================================================================== */
@media (min-width: 992px) {
    /* Typography */
    h1 { font-size: var(--font-size-5xl); }
    h2 { font-size: var(--font-size-4xl); }
    h3 { font-size: var(--font-size-3xl); }
    h4 { font-size: var(--font-size-2xl); }

    /* Section */
    .section {
        padding: var(--space-4xl) 0;
    }

    .section-title {
        font-size: var(--font-size-4xl);
    }

    .section-desc {
        font-size: var(--font-size-lg);
    }

    /* Header */
    .header-main {
        padding: var(--space-lg) 0;
    }

    /* Navigation */
    .main-nav {
        display: block;
    }

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

    .mobile-nav {
        display: none !important;
    }

    /* CTA Button */
    .btn-cta {
        display: inline-flex;
    }

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

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

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

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-xl);
    }

    .stat-number {
        font-size: var(--font-size-5xl);
    }

    /* Hero */
    .hero-section {
        min-height: 90vh;
        padding: var(--space-4xl) 0;
    }

    .hero-content {
        text-align: left;
        max-width: 650px;
    }

    .hero-title {
        font-size: var(--font-size-5xl);
    }

    .hero-actions {
        justify-content: flex-start;
    }

    /* Hero Expression Bubble */
    .hero-expression {
        display: block;
    }

    /* Slider */
    .slide-content {
        min-height: 600px;
        padding: var(--space-4xl) 0;
    }

    .slide-inner {
        text-align: left;
        max-width: 600px;
    }

    .slide-title {
        font-size: var(--font-size-5xl);
    }

    .slide-desc {
        font-size: var(--font-size-xl);
    }

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

    /* Expression Cards - Show play on hover */
    .expression-play {
        opacity: 0;
        transform: scale(0.8);
    }

    .expression-card:hover .expression-play {
        opacity: 1;
        transform: scale(1);
    }

    /* Page Header */
    .page-header {
        padding: 120px 0 var(--space-3xl);
    }

    .page-title {
        font-size: var(--font-size-5xl);
    }

    /* Category Tabs */
    .category-tabs {
        margin-bottom: var(--space-2xl);
    }

    .category-tab {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--font-size-base);
    }

    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: var(--space-3xl);
    }

    /* Blog Grid */
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    }

    .footer-brand {
        max-width: 280px;
    }

    /* Back to Top */
    .back-to-top {
        width: 50px;
        height: 50px;
    }
}

/* ==========================================================================
   Desktop (>= 1200px)
   ========================================================================== */
@media (min-width: 1200px) {
    /* Typography */
    h1 { font-size: var(--font-size-6xl); }

    /* Container */
    .container {
        padding: 0 var(--space-xl);
    }

    /* Header */
    .nav-list {
        gap: var(--space-sm);
    }

    /* Hero */
    .hero-title {
        font-size: var(--font-size-6xl);
    }

    .hero-expression {
        width: 450px;
    }
}

/* ==========================================================================
   Large Desktop (>= 1400px)
   ========================================================================== */
@media (min-width: 1400px) {
    .container-lg {
        max-width: var(--container-lg);
    }

    /* Hero Expression */
    .hero-expression {
        right: 10%;
    }
}

/* ==========================================================================
   Feature Cards Responsive
   ========================================================================== */
.feature-card {
    padding: var(--space-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
}

.feature-title {
    font-size: var(--font-size-lg);
}

@media (min-width: 768px) {
    .feature-card {
        padding: var(--space-xl);
    }

    .feature-icon {
        width: 70px;
        height: 70px;
    }

    .feature-icon svg {
        width: 35px;
        height: 35px;
    }
}

@media (min-width: 992px) {
    .feature-card {
        padding: var(--space-2xl);
    }

    .feature-icon {
        width: 80px;
        height: 80px;
    }

    .feature-icon svg {
        width: 40px;
        height: 40px;
    }

    .feature-title {
        font-size: var(--font-size-xl);
    }
}

/* ==========================================================================
   Team Section Responsive
   ========================================================================== */
.team-grid {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 576px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   FAQ Responsive
   ========================================================================== */
.faq-item {
    padding: var(--space-md);
}

.faq-question {
    font-size: var(--font-size-base);
    padding: var(--space-md);
}

@media (min-width: 768px) {
    .faq-item {
        padding: 0;
    }

    .faq-question {
        font-size: var(--font-size-lg);
        padding: var(--space-lg);
    }
}

/* ==========================================================================
   Testimonials Responsive
   ========================================================================== */
.testimonial-card {
    padding: var(--space-lg);
}

.testimonial-content {
    font-size: var(--font-size-base);
}

@media (min-width: 768px) {
    .testimonial-card {
        padding: var(--space-xl);
    }

    .testimonial-content {
        font-size: var(--font-size-lg);
    }
}

/* ==========================================================================
   Expression Grid Responsive
   ========================================================================== */
.expression-grid {
    display: grid;
    gap: var(--space-md);
}

@media (min-width: 576px) {
    .expression-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (min-width: 992px) {
    .expression-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
}

/* ==========================================================================
   Utility Classes - Mobile Display
   ========================================================================== */
.hide-mobile {
    display: none;
}

.show-mobile {
    display: block;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }

    .show-mobile {
        display: none;
    }
}

.hide-tablet {
    display: block;
}

.show-tablet {
    display: none;
}

@media (min-width: 768px) and (max-width: 991px) {
    .hide-tablet {
        display: none;
    }

    .show-tablet {
        display: block;
    }
}

.hide-desktop {
    display: block;
}

.show-desktop {
    display: none;
}

@media (min-width: 992px) {
    .hide-desktop {
        display: none;
    }

    .show-desktop {
        display: block;
    }
}

/* ==========================================================================
   Touch Device Optimizations
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Always show play button on touch devices */
    .expression-play {
        opacity: 1;
        transform: scale(1);
    }

    /* Reduce hover effects */
    .btn:hover {
        transform: none;
    }

    .card:hover {
        transform: none;
    }

    .expression-card:hover {
        transform: none;
    }
}

/* ==========================================================================
   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;
    }

    .hero-bg::before,
    .hero-bg::after,
    .pulse-effect,
    .expression-bubble {
        animation: none !important;
    }
}

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

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

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

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }

    .section {
        padding: 20pt 0;
        page-break-inside: avoid;
    }

    .expression-card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }

    .hero-section,
    .section-dark,
    .section-gradient {
        background: white !important;
        color: black !important;
    }
}
