/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - 청록색 테마 */
    --primary-color: #1fa19f;
    --primary-dark: #178b89;
    --secondary-color: #f39c12;
    --accent-yellow: #ffc107;
    --accent-orange: #ff9800;
    --background-gradient: linear-gradient(135deg, #1fa19f 0%, #178b89 100%);
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    --hover-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --border-radius: 12px;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background-gradient);
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Main Container (Mobile Full Screen)
   =================================== */
.main-container {
    width: 100%;
    min-height: 100vh;
    background: var(--background-gradient);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 80px;
}

/* Custom Scrollbar */
html {
    -ms-overflow-style: none;  /* IE, Edge */
    scrollbar-width: none;     /* Firefox */
}
html::-webkit-scrollbar {
    display: none;             /* Chrome, Safari */
}

/* ===================================
   Event Badge (좌측 상단)
   =================================== */
.event-badge {
    position: fixed !important;
    top: 15px !important;
    left: 15px !important;
    right: auto !important;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    z-index: 1000;
    animation: pulse 2s infinite;
}

.event-badge i {
    animation: rotate 3s linear infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===================================
   Close Button (우측 상단)
   =================================== */
.close-button {
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-close 2s infinite;
    backdrop-filter: blur(5px);
}

.close-button:hover {
    background: rgba(255, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1) rotate(90deg);
}

.close-button:active {
    transform: scale(0.95) rotate(90deg);
}

.close-button i {
    animation: rotate-close 4s linear infinite;
}

@keyframes pulse-close {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }
}

@keyframes rotate-close {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(270deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    padding: 60px 20px 30px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

/* 확성기 아이콘 & 프로모션 메시지 */
.hero-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-icon i {
    font-size: 1.3rem;
    color: var(--accent-yellow);
    animation: megaphone 1.5s ease-in-out infinite;
}

@keyframes megaphone {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.hero-promo-text {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1rem;
}

/* 메인 타이틀 */
.hero-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-light);
    margin: 20px 0;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.brand-name {
    color: var(--text-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.collab-symbol {
    font-size: 1.5rem;
    color: var(--accent-yellow);
    font-weight: 900;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.title-suffix {
    width: 100%;
    font-size: 1.3rem;
    margin-top: 5px;
}

/* 부제목 */
.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 10px;
    line-height: 1.6;
    font-weight: 500;
}

/* ===================================
   Tab Navigation
   =================================== */
.tab-container {
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tab-navigation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.tab-button {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    border: 2px solid transparent;
    padding: 12px 8px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.tab-button i {
    font-size: 1.2rem;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.tab-button.active {
    background: white;
    color: var(--primary-color);
    border-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===================================
   Content Wrapper
   =================================== */
.content-wrapper {
    padding: 0 15px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Promotion Banner
   =================================== */
.promotion-banner {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}

.banner-highlight h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 800;
}

.price-info {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.price-highlight {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.3rem;
}

.free-period {
    color: #e74c3c;
    font-weight: 700;
    font-size: 0.95rem;
    margin-left: 5px;
}

/* ===================================
   Features Grid
   =================================== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* Feature Card */
.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--background-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(31, 161, 159, 0.3);
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-details {
    margin-bottom: 15px;
}

.feature-condition,
.feature-price {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.6;
}

.feature-price {
    font-weight: 600;
    padding-left: 10px;
}

.feature-note {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 8px;
}

/* Feature Badges */
.feature-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

.feature-badge.free {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
}

.feature-badge.price {
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
    color: white;
}

.feature-badge.highlight {
    background: linear-gradient(135deg, #fdcb6e 0%, #f39c12 100%);
    color: white;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    margin-top: 30px;
}

.footer-text {
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===================================
   Responsive Design
   =================================== */

/* Small phones */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .tab-button {
        font-size: 0.8rem;
        padding: 10px 6px;
    }
    
    .feature-card {
        padding: 15px;
    }
}

/* Tablets and larger */
@media (min-width: 600px) {
    .hero-section {
        padding: 80px 30px 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .tab-navigation {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .main-container {
        max-width: 1200px;
        margin: 0 auto;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    }
    
    .content-wrapper {
        max-width: 1000px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
