/* 태블릿 화면 (1024px 이하) */
@media screen and (max-width: 1024px) {
    .header-container {
        padding: 0 30px;
    }

    .hero h1 {
        font-size: 5rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .visit-grid {
        grid-template-columns: 1fr;
    }

    .visit-map {
        height: 400px;
    }

    .exhibition-grid {
        grid-template-columns: 1fr;
    }

    .exhibition-header {
        grid-template-columns: 1fr;
    }
    
    .exhibition-video-container {
        height: 350px;
    }
    
    .exhibition-intro {
        padding: 20px 0;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }

    /* Booking 페이지 반응형 */
    .booking-content {
        flex-direction: column;
    }
    
    .booking-summary {
        position: static;
    }
    
    .ticket-selection {
        grid-template-columns: 1fr;
    }
    
    .regular-tickets {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .special-passes {
        grid-template-columns: 1fr;
    }
}

/* 태블릿 화면 (768px 이하) */
@media screen and (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .about p {
        font-size: 1rem;
    }

    .highlight-video {
        width: 100%;
    }

    .exhibition-item h3 {
        font-size: 1.6rem;
    }

    .exhibition-details h4 {
        font-size: 1.1rem;
    }

    .ticket-options {
        grid-template-columns: 1fr;
    }

    .ticket-card.featured {
        transform: scale(1);
        order: -1;
    }

    .ticket-card.featured:hover {
        transform: translateY(-10px);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        margin-top: 20px;
    }

    .footer-logo h2 {
        text-align: center;
    }

    .newsletter form {
        flex-direction: column;
    }

    .newsletter input {
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .newsletter button {
        border-radius: 4px;
        width: 100%;
        padding: 12px;
    }

    .tab-btn {
        font-size: 0.9rem;
        padding: 12px 18px;
    }
    
    .exhibition-intro h3 {
        font-size: 2rem;
    }
    
    .exhibition-intro p {
        font-size: 1rem;
    }
    
    .detail-title {
        font-size: 1.5rem;
    }
    
    .detail-item {
        flex-direction: column;
    }
    
    .detail-image, .detail-content {
        width: 100%;
    }
    
    .detail-image {
        height: 200px;
    }

    .logo img {
        max-height: 40px;
    }
    
    .footer-logo img {
        max-height: 50px;
    }

    /* Booking 페이지 반응형 */
    .booking-container {
        padding: 0 20px;
        margin: 100px auto 60px;
    }
    
    .booking-header h1 {
        font-size: 2.2rem;
    }
    
    .booking-header p {
        font-size: 1rem;
    }
    
    .booking-character {
        height: 80px;
    }
    
    .ticket-character {
        width: 60px;
        height: 60px;
    }
    
    .summary-character {
        width: 80px;
        right: -10px;
        top: -20px;
    }
    
    .booking-form {
        padding: 20px;
    }
    
    .booking-summary {
        padding: 20px;
    }
    
    .form-section h3 {
        font-size: 1.2rem;
    }
    
    .ticket-type h4 {
        font-size: 1rem;
    }
    
    .ticket-type.vip-pass h4,
    .ticket-type.premium-pass h4 {
        font-size: 1.1rem;
    }
    
    .ticket-type.premium-pass h4 {
        font-size: 1.15rem;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .payment-method {
        min-width: auto;
    }
    
    .time-slots {
        justify-content: center;
    }
    
    .time-slot {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
}

/* 모바일 화면 (480px 이하) */
@media screen and (max-width: 480px) {
    .header-container {
        height: 70px;
    }

    .logo a {
        font-size: 24px;
    }

    .hero {
        height: 80vh;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }

    .btn {
        padding: 10px 20px;
    }

    section {
        padding: 60px 0;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .exhibition-video {
        height: 200px;
    }

    .exhibition-item h3 {
        font-size: 1.4rem;
    }

    .exhibition-details h4 {
        font-size: 1rem;
    }

    .exhibition-details li {
        font-size: 0.95rem;
    }

    .play-button {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .visit-map {
        height: 300px;
    }

    .news-image {
        height: 180px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .exhibition-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
    
    .exhibition-video-container {
        height: 250px;
    }
    
    .exhibition-intro h3 {
        font-size: 1.8rem;
    }
    
    .exhibition-details-container {
        padding: 20px 15px;
    }
    
    .detail-title {
        font-size: 1.3rem;
    }
    
    .detail-content h5 {
        font-size: 1.2rem;
    }
    
    .detail-content p {
        font-size: 0.9rem;
    }

    .logo img {
        max-height: 35px;
    }
    
    .footer-logo img {
        max-height: 45px;
    }

    /* Booking 페이지 반응형 */
    .booking-container {
        padding: 0 15px;
        margin: 80px auto 40px;
    }
    
    .booking-header h1 {
        font-size: 1.8rem;
    }
    
    .booking-header p {
        font-size: 0.9rem;
    }
    
    .booking-character {
        height: 60px;
    }
    
    .ticket-character {
        width: 50px;
        height: 50px;
    }
    
    .summary-character {
        width: 60px;
        right: -5px;
        top: -15px;
    }
    
    .booking-form {
        padding: 15px;
    }
    
    .booking-summary {
        padding: 15px;
    }
    
    .form-section h3 {
        font-size: 1.1rem;
    }
    
    .ticket-type {
        padding: 12px;
    }
    
    .ticket-type h4 {
        font-size: 0.95rem;
    }
    
    .ticket-type.vip-pass h4,
    .ticket-type.premium-pass h4 {
        font-size: 1rem;
    }
    
    .ticket-type.premium-pass h4 {
        font-size: 1.05rem;
    }
    
    .ticket-type p {
        font-size: 0.85rem;
    }
    
    .ticket-type.vip-pass p,
    .ticket-type.premium-pass p {
        font-size: 0.9rem;
    }
    
    .age-group {
        padding: 6px;
    }
    
    .age-price {
        font-size: 0.9rem;
    }
    
    .ticket-price {
        font-size: 1rem;
    }
    
    .quantity-btn {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
    
    .quantity-input {
        width: 35px;
        height: 25px;
    }
    
    .time-slot {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .payment-method {
        padding: 12px;
    }
    
    .payment-method i {
        font-size: 1.2rem;
    }
    
    .payment-method p {
        font-size: 0.9rem;
    }
    
    .summary-title {
        font-size: 1.1rem;
    }
    
    .summary-row {
        font-size: 0.9rem;
    }
    
    .summary-row.total {
        font-size: 1rem;
    }
    
    .ticket-list-title {
        font-size: 0.95rem;
    }
    
    .ticket-item {
        padding: 8px 10px;
    }
    
    .ticket-item-name {
        font-size: 0.9rem;
    }
    
    .ticket-item-age {
        font-size: 0.8rem;
    }
    
    .ticket-item-price {
        font-size: 0.9rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .special-passes-header h4 {
        font-size: 1.1rem;
    }
    
    .special-passes-header p {
        font-size: 0.85rem;
    }
    
    .pass-badge {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
}

/* 모바일 사용자 정보 스타일 */
.mobile-user-info {
    display: flex;
    align-items: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    border-radius: 0 0 20px 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
}

/* 모바일에서 로그인 전 user-menu 숨김 처리 */
@media (max-width: 768px) {
    .user-menu {
        display: none;
    }
}

.mobile-user-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.mobile-user-avatar i {
    font-size: 26px;
    color: white;
}

.mobile-user-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mobile-user-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.mobile-user-status {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 400;
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}

/* 모바일 메뉴 스타일 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 20px;
    z-index: 999;
    transform: translateY(-100%);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.mobile-menu.show {
    transform: translateY(0);
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    margin: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    color: var(--light-color);
    font-size: 15px;
    display: block;
    padding: 6px 0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.mobile-menu a:hover {
    color: var(--accent-color);
}

/* 모바일 언어 선택기 */
.mobile-language-selector {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-language-selector label {
    display: block;
    color: var(--light-color);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.mobile-language-selector select {
    width: 100%;
    background-color: transparent;
    color: var(--light-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 15px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
}

.mobile-language-selector select option {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 8px;
}

/* 다크모드 지원 */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #121212;
        --dark-color: #ffffff;
        --gray-color: #1e1e1e;
        --text-color: #f5f5f5;
        --text-light: #aaaaaa;
    }

    .exhibition-item,
    .ticket-card,
    .news-item,
    .visit-notes {
        background-color: #202020;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .highlight {
        color: #6e8fff;
    }

    .newsletter input {
        background-color: #333;
        color: var(--text-color);
    }
    
    .tab-btn {
        background-color: #2a2a2a;
        color: #f5f5f5;
    }
    
    .exhibition-details-container {
        background-color: #1a1a1a;
    }
    
    .detail-item {
        background-color: #2a2a2a;
    }

    /* Booking 페이지 다크모드 */
    .booking-form {
        background-color: #202020;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .booking-summary {
        background-color: #1a1a1a;
    }
    
    .ticket-type {
        background-color: #202020;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .ticket-type:hover {
        border-color: var(--accent-color);
    }
    
    .ticket-type.selected {
        background-color: rgba(0, 198, 255, 0.1);
    }
    
    .age-group {
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .ticket-item {
        background-color: #2a2a2a;
    }
    
    .form-control {
        background-color: #202020;
        border-color: rgba(255, 255, 255, 0.2);
        color: var(--text-color);
    }
    
    .form-control:focus {
        border-color: var(--accent-color);
    }
    
    .time-slot {
        background-color: #202020;
        border-color: rgba(255, 255, 255, 0.2);
        color: var(--text-color);
    }
    
    .payment-method {
        background-color: #202020;
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .no-tickets {
        background-color: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.2);
    }
} 