/* ===============================================
   TABAJETE - Responsive Design
   Mobile-First Approach for Minimalist Layout
   =============================================== */

/* Tablet Portrait */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px 0;
    }
    
    .nav-menu {
        gap: 2rem;
    }
    
    .story-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .story-stats {
        grid-column: span 2;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .heritage-intro {
        gap: 3rem;
    }
    
    .heritage-heading {
        font-size: 1.8rem;
    }
    
    .vors-intro {
        gap: 3rem;
    }
    
    .vors-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .collection-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
}

/* Tablet Portrait and Mobile Landscape */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
        --gutter: 1.5rem;
    }
    
    /* Navigation Mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--background-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: var(--transition-base);
        z-index: 999;
        padding: 2rem;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-link {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Language Switcher Mobile */
    .lang-switcher {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        margin: 1rem auto 0 auto !important;
        gap: 1rem;
        width: auto;
        position: relative;
    }
    
    .lang-link {
        width: 50px !important;
        height: 35px !important;
        position: relative !important;
    }
    
    .flag-icon {
        font-size: 0.85rem !important;
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 0 var(--gutter);
        min-height: 90vh;
        background-attachment: scroll;
    }
    
    .hero-title {
        margin-bottom: 1.5rem;
        line-height: 1;
    }
    
    .title-line.sub-title {
        font-size: 0.25em; /* 모바일에서는 더 작게 */
        margin-top: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    /* Story Section Mobile */
    .story-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .story-image {
        order: 1;
        margin: 0 0 2rem 0;
    }
    
    .story-text {
        order: 2;
    }
    
    .story-stats {
        order: 3;
    }
    
    .story-heading {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .story-paragraph {
        font-size: 1rem;
        text-align: left;
    }
    
    .story-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 0.75rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Heritage Section Mobile */
    .heritage-intro {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .heritage-heading {
        font-size: 1.75rem;
    }
    
    .heritage-description {
        font-size: 1rem;
        text-align: left;
    }
    
    /* VORS Section Mobile */
    .vors-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .vors-heading {
        font-size: 2rem;
    }
    
    .vors-description {
        font-size: 1rem;
        text-align: left;
    }
    
    .vors-features {
        grid-template-columns: 1fr;
    }
    
    .vors-feature {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1.25rem;
    }
    
    .feature-number {
        font-size: 2rem;
    }
    
    .certification-badge {
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.75rem;
    }
    
    .badge-icon {
        font-size: 2.5rem;
    }
    
    .vors-comparison {
        padding: 2rem 1rem;
    }
    
    .comparison-grid {
        gap: 1.5rem;
    }
    
    .bar-regular, .bar-vors {
        height: 35px;
        padding: 0 0.75rem;
    }
    
    .rarity-level {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .level-2 {
        transform: rotate(90deg);
        font-size: 1.25rem;
    }
    
    .vors-quote {
        font-size: 1.25rem;
    }
    
    .heritage-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .heritage-item {
        padding: 1.5rem 1rem;
    }
    
    .heritage-icon {
        width: 50px;
        height: 50px;
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .heritage-item h4 {
        font-size: 1.125rem;
    }
    
    /* Collection Section Mobile */
    .collection-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .wine-card {
        padding: 1.5rem;
    }
    
    .wine-name {
        font-size: 1.25rem;
    }
    
    .wine-details,
    .wine-specs {
        flex-wrap: wrap;
    }
    
    .tasting-notes,
    .aging-info {
        margin: 1rem 0;
        padding: 0.75rem;
    }
    
    .wine-specs span {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    /* Contact Section Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-info h3 {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .contact-details {
        gap: 1.5rem;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .bottles-image {
        max-width: 400px;
    }
    
    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
        --gutter: 1rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    /* Hero */
    .hero {
        min-height: 85vh;
    }
    
    .hero-title {
        font-size: clamp(2rem, 15vw, 3.5rem);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .scroll-indicator {
        bottom: 2rem;
    }
    
    /* Sections */
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    /* Story */
    .story-heading {
        font-size: 1.5rem;
    }
    
    .story-paragraph {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .story-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .stat-item {
        padding: 1.25rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Heritage */
    .heritage-item {
        padding: 1rem;
    }
    
    .heritage-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .heritage-item h4 {
        font-size: 1rem;
    }
    
    .heritage-item p {
        font-size: 0.9rem;
    }
    
    /* Collection */
    .wine-card {
        padding: 1.25rem;
    }
    
    .wine-type {
        font-size: 0.7rem;
    }
    
    .wine-name {
        font-size: 1.125rem;
    }
    
    .wine-description {
        font-size: 0.9rem;
    }
    
    .wine-details {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .wine-details span {
        padding: 0.2rem 0.5rem;
    }
    
    /* Contact */
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .contact-description {
        font-size: 0.95rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
        gap: 0.75rem;
    }
    
    .contact-item i {
        width: 18px;
    }
    
    .bottles-image {
        max-width: 300px;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-logo {
        font-size: 1.25rem;
    }
    
    .footer-tagline,
    .footer-copyright {
        font-size: 0.8rem;
    }
}

/* Ultra Small Mobile */
@media (max-width: 360px) {
    :root {
        --gutter: 0.75rem;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 12vw, 3rem);
    }
    
    .section-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    
    .story-stats {
        max-width: 160px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .wine-card {
        padding: 1rem;
    }
    
    .wine-name {
        font-size: 1rem;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    :root {
        --container-max-width: 1300px;
        --section-padding: 140px 0;
    }
    
    .hero-title {
        font-size: 7.5rem;
    }
    
    .section-title {
        font-size: 4.5rem;
    }
    
    .story-content {
        gap: 8rem;
    }
    
    .heritage-grid {
        gap: 4rem;
    }
    
    .collection-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Ultra Wide Desktop */
@media (min-width: 1800px) {
    :root {
        --container-max-width: 1400px;
    }
    
    .collection-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

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