/**
 * 싱잉볼 명상 - Responsive Stylesheet
 * Mobile First Approach
 */

/* ===== Mobile (default) ===== */

/* Header adjustments for mobile */
.user-menu .btn {
    display: none;
}

/* Hero Section */
.hero-section {
    min-height: auto;
    padding: calc(var(--header-height) + 40px) var(--spacing-md) 60px;
}

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

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

.hero-description {
    font-size: var(--font-size-base);
}

.hero-description br {
    display: none;
}

.hero-singing-bowl {
    display: none;
}

.scroll-indicator {
    display: none;
}

/* Challenge Section */
.challenge-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.challenge-visual {
    order: -1;
}

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

/* Footer */
.footer-top {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

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

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

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

/* Page container */
.page-container {
    padding: var(--spacing-lg) var(--spacing-md);
}

.page-header {
    padding: var(--spacing-lg) 0;
}

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

/* Section titles */
.section-title {
    font-size: var(--font-size-2xl);
}

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

/* Expert grid */
.experts-grid,
.directory-preview-grid {
    grid-template-columns: 1fr;
}

/* Testimonials */
.testimonials-slider {
    grid-template-columns: 1fr;
}

/* Course grid */
.courses-grid {
    grid-template-columns: 1fr;
}

/* Community layout */
.community-layout {
    display: flex;
    flex-direction: column;
}

.community-sidebar {
    order: -1;
    margin-bottom: var(--spacing-lg);
}

/* Products grid */
.products-grid {
    grid-template-columns: 1fr;
}

/* Live class cards */
.class-card {
    flex-direction: column;
}

.class-date {
    flex-direction: row;
    gap: var(--spacing-sm);
}

.class-action {
    margin-top: var(--spacing-md);
}

/* My page layout */
.mypage-wrapper {
    flex-direction: column;
}

.mypage-sidebar {
    width: 100%;
}

/* Auth pages */
.auth-card-wide {
    max-width: 100%;
}

.form-row-2 {
    grid-template-columns: 1fr;
}

/* Curriculum timeline */
.curriculum-timeline {
    padding-left: 0;
}

.curriculum-phase {
    flex-direction: column;
}

.phase-marker {
    flex-direction: row;
    width: 100%;
    margin-bottom: var(--spacing-md);
}

/* CTA buttons */
.cta-buttons {
    flex-direction: column;
}

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

/* Filter buttons */
.course-filter,
.store-categories,
.directory-filter {
    flex-wrap: wrap;
}

/* ===== Small Tablets (480px+) ===== */
@media (min-width: 480px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }

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

    .form-row-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .class-card {
        flex-direction: row;
    }

    .class-date {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .cta-buttons .btn {
        width: auto;
    }
}

/* ===== Tablets (768px+) ===== */
@media (min-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: calc(var(--header-height) + 60px) var(--spacing-lg) 80px;
    }

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

    .hero-description br {
        display: block;
    }

    .hero-singing-bowl {
        display: block;
        width: 150px;
    }

    .scroll-indicator {
        display: flex;
    }

    .page-container {
        padding: var(--spacing-2xl);
    }

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

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

    .challenge-content {
        grid-template-columns: 1fr 1fr;
    }

    .challenge-visual {
        order: 0;
    }

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

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

    .footer-bottom {
        flex-direction: row;
    }

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

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

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

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

    .community-layout {
        flex-direction: row;
        gap: var(--spacing-xl);
    }

    .community-main {
        flex: 1;
    }

    .community-sidebar {
        width: 280px;
        order: 0;
    }

    .mypage-wrapper {
        flex-direction: row;
        gap: var(--spacing-xl);
    }

    .mypage-sidebar {
        width: 280px;
    }

    .mypage-content {
        flex: 1;
    }

    .curriculum-phase {
        flex-direction: row;
    }

    .phase-marker {
        flex-direction: column;
        width: auto;
    }
}

/* ===== Large Tablets / Small Desktops (1024px+) ===== */
@media (min-width: 1024px) {
    .hero-section {
        min-height: 100vh;
    }

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

    .hero-singing-bowl {
        width: 200px;
    }

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

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

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

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

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

    .community-sidebar {
        width: 320px;
    }

    .mypage-sidebar {
        width: 300px;
    }
}

/* ===== Large Desktops (1200px+) ===== */
@media (min-width: 1200px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* ===== Print Styles ===== */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .mobile-menu-toggle,
    .btn {
        display: none !important;
    }

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

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
    }

    .page-container {
        padding: 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;
    }
}

/* ===== Dark Mode Support (Optional) ===== */
@media (prefers-color-scheme: dark) {
    /* Can be enabled later if needed */
}
