/**
 * 호주장터 클래스 - Modern Design System
 * 완전히 새로운 현대적 디자인
 */

:root {
    /* Primary Colors - 밝은 주황색 */
    --primary: #FF7E00;
    --primary-dark: #E66A00;
    --primary-light: #FF9933;
    --primary-pale: #FFF3E6;
    
    /* Neutral Colors - 밝은 톤 */
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    
    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    line-height: 1.7;
    color: var(--gray-600);
}

/* ===== Hero Section - Bright & Modern ===== */
.hero-ultra-modern {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF8F0 100%);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--gray-200);
}

.hero-ultra-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,126,0,0.08), transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero-ultra-modern::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,126,0,0.05), transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, -30px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-pale);
    border: 2px solid var(--primary);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-title-modern {
    font-size: 4rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title-modern .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 18px 48px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    box-shadow: 0 8px 24px rgba(255,126,0,0.35);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255,126,0,0.45);
    color: white;
}

.btn-hero-secondary {
    background: white;
    color: var(--primary);
    padding: 18px 48px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.125rem;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn-hero-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255,126,0,0.35);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.stat-card-modern {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.stat-card-modern:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number-modern {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label-modern {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 600;
}

/* ===== Category Section ===== */
.section-modern {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-pale);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-title-modern {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Category Grid */
.category-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    max-width: 100%;
}

.category-item-modern {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 2px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.category-item-modern:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-2xl);
    transform: translateY(-8px);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF8F0 100%);
}

.category-icon-modern {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.category-item-modern:hover .category-icon-modern {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.category-name-modern {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.3;
}

.category-count {
    font-size: 0.9375rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* ===== Course Cards ===== */
.course-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.course-card-ultra {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card-ultra:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-8px);
}

.course-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.course-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card-ultra:hover .course-image-wrapper img {
    transform: scale(1.1);
}

.course-badge-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

.course-content-modern {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-category-badge {
    display: inline-block;
    background: var(--primary-pale);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.course-title-modern {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
}

.course-rating .star {
    color: #FFA500;
}

.course-students {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.course-price-modern {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.course-price-original {
    font-size: 1rem;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-left: 8px;
}

/* ===== CTA Section ===== */
.cta-modern {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE8CC 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--primary);
    border-bottom: 3px solid var(--primary);
}

.cta-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,126,0,0.1), transparent 70%);
    border-radius: 50%;
}

.cta-content-modern {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--gray-900);
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.cta-description {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta-white {
    background: var(--primary);
    color: white;
    padding: 18px 48px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    box-shadow: 0 4px 15px rgba(255,126,0,0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cta-white:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255,126,0,0.4);
    color: white;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-ultra-modern {
        padding: 80px 0 60px;
    }
    
    .hero-title-modern {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin-top: 40px;
    }
    
    .stat-card-modern {
        padding: 20px 12px;
    }
    
    .stat-number-modern {
        font-size: 2rem;
    }
    
    .stat-label-modern {
        font-size: 0.75rem;
    }
    
    .section-modern {
        padding: 60px 0;
    }
    
    .section-title-modern {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .category-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .category-item-modern {
        padding: 28px 20px;
        min-height: 160px;
    }
    
    .category-icon-modern {
        width: 56px;
        height: 56px;
        font-size: 26px;
        margin-bottom: 16px;
    }
    
    .category-name-modern {
        font-size: 0.9375rem;
    }
    
    .category-count {
        font-size: 0.8125rem;
    }
    
    .course-grid-modern {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .course-image-wrapper {
        height: 160px;
    }
    
    .course-content-modern {
        padding: 20px;
    }
    
    .course-title-modern {
        font-size: 1rem;
    }
    
    .course-price-modern {
        font-size: 1.25rem;
    }
    
    .cta-modern {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .btn-cta-white {
        padding: 14px 32px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
}

/* ===== Utilities ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.shadow-soft {
    box-shadow: var(--shadow-lg);
}

.rounded-modern {
    border-radius: var(--radius-lg);
}
