/**
 * responsive.css - Responsive Styles
 * 영어공부 혼자하기 - edu.soritune.com
 * Mobile-first responsive breakpoints
 * Location: /assets/css/responsive.css
 */

/* ========================================
   BREAKPOINTS
   - Mobile: < 640px
   - Tablet: 640px - 1023px
   - Desktop: 1024px+
   - Large: 1280px+
======================================== */

/* ========================================
   MOBILE STYLES (Default - Mobile First)
======================================== */
:root {
    --header-height: 64px;
}

/* Typography */
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Container */
.container {
    padding: 0 1rem;
}

/* Section Spacing */
.section {
    padding: 3rem 0;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 64px);
    padding: 2rem 0;
}

.hero-content {
    padding: 1.5rem;
}

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

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

.hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.hero-stat-value {
    font-size: 1.75rem;
}

.scroll-indicator {
    display: none;
}

/* Header */
.site-header {
    height: 64px;
}

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

.logo-img {
    height: 32px;
}

/* Features Grid */
.features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    padding: 1.5rem;
}

.feature-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
}

/* Slider */
.slider-section {
    padding: 2rem 0;
}

.slider-card-image {
    height: 200px;
}

.slider-card-content {
    padding: 1.25rem;
}

/* Footer */
.footer-top {
    padding: 2.5rem 0 1.5rem;
}

.footer-grid {
    gap: 2rem;
}

.footer-col {
    text-align: center;
}

.footer-company {
    text-align: center;
}

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

.footer-links,
.footer-contact {
    text-align: center;
}

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

/* Page Hero */
.page-hero {
    padding: 3rem 0;
}

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

/* Back to Top */
.back-to-top {
    width: 44px;
    height: 44px;
    right: 1rem;
    bottom: 1rem;
}

/* Forms */
.form-input,
.form-textarea,
.form-select {
    padding: 0.875rem;
}

/* VAK Test Mobile */
.vak-test-container {
    padding: 1rem;
}

.vak-question-card {
    padding: 1.5rem;
}

.vak-option {
    padding: 1rem;
}

.vak-result-chart {
    height: 250px;
}

/* Cards Grid */
.cards-grid {
    grid-template-columns: 1fr;
}

/* Team Grid */
.team-grid {
    grid-template-columns: 1fr;
}

/* Reviews Grid */
.reviews-grid {
    grid-template-columns: 1fr;
}

/* ========================================
   TABLET STYLES (640px+)
======================================== */
@media (min-width: 640px) {
    :root {
        --header-height: 72px;
    }

    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }

    /* Container */
    .container {
        padding: 0 1.5rem;
    }

    /* Section Spacing */
    .section {
        padding: 4rem 0;
    }

    /* Hero */
    .hero-content {
        padding: 2rem;
    }

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

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

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

    .scroll-indicator {
        display: flex;
    }

    /* Header */
    .site-header {
        height: 72px;
    }

    .logo-img {
        height: 36px;
    }

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

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

    /* Slider */
    .slider-card-image {
        height: 250px;
    }

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

    .footer-col {
        text-align: left;
    }

    .footer-company {
        text-align: left;
    }

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

    .footer-links,
    .footer-contact {
        text-align: left;
    }

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

    /* Page Hero */
    .page-hero {
        padding: 4rem 0;
    }

    .page-title {
        font-size: 2.25rem;
    }

    /* Hero CTA */
    .hero-cta {
        flex-direction: row;
    }

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

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

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

    /* VAK Test */
    .vak-test-container {
        padding: 1.5rem;
    }

    .vak-option {
        padding: 1.25rem;
    }

    .vak-result-chart {
        height: 300px;
    }
}

/* ========================================
   DESKTOP STYLES (1024px+)
======================================== */
@media (min-width: 1024px) {
    :root {
        --header-height: 80px;
    }

    /* Typography */
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 2rem; }

    /* Section */
    .section {
        padding: 5rem 0;
    }

    /* Hero */
    .hero {
        min-height: calc(100vh - 80px);
    }

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

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

    .hero-stat-value {
        font-size: 2.5rem;
    }

    /* Header */
    .site-header {
        height: 80px;
    }

    .logo-img {
        height: 40px;
    }

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

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

    /* Features */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .feature-card {
        padding: 2rem;
    }

    /* Slider */
    .slider-section {
        padding: 4rem 0;
    }

    .slider-card-image {
        height: 300px;
    }

    .slider-card-content {
        padding: 1.5rem;
    }

    /* Footer */
    .footer-top {
        padding: 4rem 0 2rem;
    }

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

    /* Page Hero */
    .page-hero {
        padding: 5rem 0;
    }

    .page-title {
        font-size: 2.75rem;
    }

    /* Back to Top */
    .back-to-top {
        width: 48px;
        height: 48px;
        right: 2rem;
        bottom: 2rem;
    }

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

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

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

    /* Two Column Layout */
    .two-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }

    /* Services Layout */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* VAK Test Desktop */
    .vak-test-container {
        padding: 2rem;
        max-width: 800px;
        margin: 0 auto;
    }

    .vak-result-chart {
        height: 350px;
    }
}

/* ========================================
   LARGE DESKTOP STYLES (1280px+)
======================================== */
@media (min-width: 1280px) {
    /* Typography */
    h1 { font-size: 3.5rem; }
    h2 { font-size: 3rem; }

    /* Container */
    .container {
        max-width: 1280px;
    }

    /* Hero */
    .hero-title {
        font-size: 4rem;
    }

    .hero-content {
        max-width: 1000px;
    }

    /* Section Spacing */
    .section {
        padding: 6rem 0;
    }

    /* Features */
    .features-grid {
        gap: 2.5rem;
    }

    .feature-card {
        padding: 2.5rem;
    }

    /* Footer */
    .footer-top {
        padding: 5rem 0 2.5rem;
    }
}

/* ========================================
   EXTRA LARGE DESKTOP (1440px+)
======================================== */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

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

/* ========================================
   LANDSCAPE MOBILE
======================================== */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-stats {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
======================================== */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .btn:hover {
        transform: none;
    }

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

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

    .nav-link:hover .dropdown-arrow {
        transform: none;
    }

    /* Increase tap target sizes */
    .btn {
        min-height: 48px;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .mobile-nav-toggle,
    .mobile-nav-link {
        min-height: 48px;
    }

    /* Show dropdown on tap */
    .nav-item.touched .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

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

    .scroll-indicator-icon::before {
        animation: none;
    }

    .btn-glow::before {
        display: none;
    }
}

/* ========================================
   HIGH CONTRAST MODE
======================================== */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #4a5fe8;
        --color-border: #333;
    }

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

    .feature-card {
        border: 2px solid var(--color-text);
    }
}

/* ========================================
   DARK MODE SUPPORT (Optional)
======================================== */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
    /* Currently using cosmic dark theme as default for hero/footer */
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    img {
        max-width: 100% !important;
    }

    .site-header,
    .site-footer,
    .back-to-top,
    .mobile-nav,
    .btn,
    .scroll-indicator {
        display: none !important;
    }

    .site-main {
        padding-top: 0;
    }

    .hero {
        min-height: auto;
        background: none;
        color: #000;
    }

    .section {
        padding: 1rem 0;
    }
}
