/**
 * style.css - 메인 스타일시트
 * 영어회화 단어장 (English Conversation Vocabulary)
 * 화(Anger) 배출구: 화나는 일을 영어로 욕하거나 소리치기
 *
 * Design Reference: Shopify (ecommerce, merchant-tools)
 * Color Scheme: Cosmic (purple, blue, pink gradients)
 */

/* ==========================================================================
   CSS Variables - Cosmic Color Scheme
   ========================================================================== */
:root {
    /* Primary Colors - Cosmic Theme */
    --primary: #667eea;
    --primary-dark: #5a6fd6;
    --primary-light: #8b9cf5;
    --secondary: #764ba2;
    --secondary-dark: #6a4291;
    --secondary-light: #8e5fb8;
    --accent: #f093fb;
    --accent-light: #f5b3fc;
    --accent-dark: #e066f5;

    /* Gradient Definitions */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-cosmic: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-anger: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    --gradient-calm: linear-gradient(135deg, #667eea 0%, #43e97b 100%);

    /* Text Colors */
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8888a8;
    --text-light: #b8b8d8;
    --text-white: #ffffff;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8f9ff;
    --bg-gray: #f0f2f8;
    --bg-dark: #1a1a2e;
    --bg-darker: #12121f;

    /* Border Colors */
    --border-light: #e8e8f0;
    --border-medium: #d0d0e0;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(102, 126, 234, 0.08);
    --shadow-md: 0 4px 20px rgba(102, 126, 234, 0.12);
    --shadow-lg: 0 8px 40px rgba(102, 126, 234, 0.16);
    --shadow-xl: 0 16px 60px rgba(102, 126, 234, 0.2);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
    --shadow-anger: 0 0 30px rgba(245, 87, 108, 0.4);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Typography */
    --font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-english: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 30px;
    --font-size-4xl: 36px;
    --font-size-5xl: 48px;
    --font-size-6xl: 60px;

    /* Line Height */
    --line-height-tight: 1.2;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;

    /* Container */
    --container-max: 1200px;
    --container-lg: 1400px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Antigravity Effects Canvas */
.antigravity-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
}

/* Skip Navigation */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-md) var(--space-lg);
    background: var(--primary);
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: var(--z-tooltip);
    transition: top var(--transition-fast);
}

.skip-nav:focus {
    top: 0;
}

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

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

strong, b {
    font-weight: 700;
}

/* English Text Styling */
.eng-text {
    font-family: var(--font-english);
}

/* Visually Hidden (for accessibility) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Container
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-lg {
    max-width: var(--container-lg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: inherit;
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-white);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--text-white);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-outline:hover {
    background: var(--text-white);
    color: var(--primary);
}

.btn-anger {
    background: var(--gradient-anger);
    color: var(--text-white);
    box-shadow: var(--shadow-anger);
}

.btn-anger:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(245, 87, 108, 0.6);
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-lg);
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
}

.btn-block {
    width: 100%;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn:hover svg {
    transform: translateX(4px);
}

/* Pulse Effect for CTA */
.pulse-effect {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: var(--shadow-md);
    }
    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
    }
}

/* ==========================================================================
   Header Styles (Shopify-inspired)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: var(--bg-white);
    transition: all var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

/* Header Top */
.header-top {
    background: var(--gradient-dark);
    padding: var(--space-sm) 0;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-notice {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.notice-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent);
    color: var(--text-white);
    font-size: var(--font-size-xs);
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notice-text {
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Header Main */
.header-main {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-light);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
}

.logo-icon svg {
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: var(--font-size-xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.logo-sub {
    font-family: var(--font-english);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Main Navigation */
.main-nav {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-xs);
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-item > a:hover,
.nav-item.active > a {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.08);
}

/* Submenu */
.nav-item.has-submenu > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform var(--transition-fast);
}

.nav-item.has-submenu:hover > a::after {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: var(--space-sm);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    list-style: none;
    z-index: var(--z-dropdown);
}

.nav-item.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.submenu li a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.submenu li a:hover {
    color: var(--primary);
    background: var(--bg-light);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.btn-cta {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    padding: var(--space-lg);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-list > li {
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-list > li > a {
    display: block;
    padding: var(--space-md) 0;
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--text-primary);
}

.mobile-nav-list > li > a.active {
    color: var(--primary);
}

.mobile-submenu {
    list-style: none;
    padding: 0 0 var(--space-md) var(--space-lg);
    display: none;
}

.mobile-nav-list .has-submenu.open .mobile-submenu {
    display: block;
}

.mobile-submenu li a {
    display: block;
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.mobile-nav-cta {
    margin-top: var(--space-xl);
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.site-main {
    min-height: 60vh;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
.section {
    padding: var(--space-4xl) 0;
}

.section-sm {
    padding: var(--space-3xl) 0;
}

.section-lg {
    padding: 120px 0;
}

.section-dark {
    background: var(--gradient-dark);
    color: var(--text-white);
}

.section-gray {
    background: var(--bg-gray);
}

.section-gradient {
    background: var(--gradient-cosmic);
    color: var(--text-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-label {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-dark .section-label {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-title {
    color: var(--text-white);
}

.section-dark .section-desc {
    color: var(--text-light);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--gradient-dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 60%);
    animation: hero-glow 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.2) 0%, transparent 60%);
    animation: hero-glow 10s ease-in-out infinite reverse;
}

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

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
}

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

.hero-label-text {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: 900;
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero-title .highlight {
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .anger-word {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero-title .anger-word::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--gradient-anger);
    opacity: 0.5;
    z-index: -1;
}

.hero-desc {
    font-size: var(--font-size-xl);
    color: var(--text-light);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-2xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Hero Expression Preview */
.hero-expression {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    z-index: 2;
    display: none;
}

.expression-bubble {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: float 4s ease-in-out infinite;
}

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

.expression-bubble::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    border: 15px solid transparent;
    border-right-color: var(--bg-white);
    transform: translateY(-50%);
}

.expression-eng-large {
    font-family: var(--font-english);
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.expression-kor-large {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.expression-category {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--gradient-anger);
    color: var(--text-white);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   Slider Styles
   ========================================================================== */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    flex-shrink: 0;
    width: 100%;
    position: relative;
}

.slide-content {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: var(--space-4xl) 0;
    background: var(--gradient-dark);
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.slide-inner {
    position: relative;
    z-index: 2;
    color: var(--text-white);
    max-width: 650px;
}

.slide-label {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
}

.slide-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
    color: var(--text-white);
}

.slide-desc {
    font-size: var(--font-size-xl);
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    line-height: var(--line-height-relaxed);
}

.slide-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.slider-nav:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: var(--space-lg);
}

.slider-next {
    right: var(--space-lg);
}

/* Slider Pagination */
.slider-pagination {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-dot.active {
    width: 36px;
    background: var(--text-white);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.card-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-body {
    padding: var(--space-lg);
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.card-text {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* Feature Card */
.feature-card {
    padding: var(--space-xl);
    text-align: center;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-glow);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    color: var(--text-white);
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.feature-desc {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

/* Expression Card (for anger expressions) */
.expression-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    border: 2px solid var(--border-light);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.expression-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-cosmic);
    opacity: 0.05;
    transition: left var(--transition-base);
}

.expression-card:hover::before {
    left: 0;
}

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

.expression-card.active {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(240, 147, 251, 0.05) 100%);
}

.expression-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.expression-eng {
    font-family: var(--font-english);
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.expression-kor {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.expression-level {
    display: inline-block;
    padding: 4px 12px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expression-level.mild {
    background: #dcfce7;
    color: #166534;
}

.expression-level.moderate {
    background: #fef3c7;
    color: #92400e;
}

.expression-level.strong {
    background: #fee2e2;
    color: #991b1b;
}

.expression-level.extreme {
    background: var(--gradient-anger);
    color: var(--text-white);
}

.expression-example {
    padding: var(--space-md);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

.expression-example-eng {
    font-family: var(--font-english);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: var(--space-xs);
}

.expression-example-kor {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* Play Button on Expression Card */
.expression-play {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-fast);
}

.expression-card:hover .expression-play {
    opacity: 1;
    transform: scale(1);
}

.expression-play:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Grid System
   ========================================================================== */
.grid {
    display: grid;
    gap: var(--space-xl);
}

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

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

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

/* ==========================================================================
   Testimonial / Review Cards
   ========================================================================== */
.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: var(--space-md);
    left: var(--space-lg);
    font-size: 80px;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-content {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--primary);
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.testimonial-role {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    color: #fbbf24;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.stat-number {
    font-family: var(--font-english);
    font-size: var(--font-size-5xl);
    font-weight: 800;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.stat-label {
    font-size: var(--font-size-base);
    color: var(--text-light);
    font-weight: 500;
}

/* ==========================================================================
   Category Tabs
   ========================================================================== */
.category-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
    justify-content: center;
}

.category-tab {
    padding: var(--space-sm) var(--space-lg);
    font-family: inherit;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-tab:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.category-tab.active {
    color: var(--text-white);
    background: var(--gradient-primary);
    border-color: transparent;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.faq-question {
    width: 100%;
    padding: var(--space-lg);
    background: none;
    border: none;
    text-align: left;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ==========================================================================
   Page Header (Subpages)
   ========================================================================== */
.page-header {
    background: var(--gradient-dark);
    padding: 120px 0 var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 50%);
    animation: page-header-glow 15s linear infinite;
}

@keyframes page-header-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.page-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: var(--space-md);
}

.page-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-sm);
}

.breadcrumb a {
    color: var(--text-light);
    opacity: 0.7;
}

.breadcrumb a:hover {
    color: var(--text-white);
    opacity: 1;
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-white);
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-light);
}

.footer-main {
    padding: var(--space-4xl) 0 var(--space-3xl);
}

.footer-grid {
    display: grid;
    gap: var(--space-xl);
}

/* Footer Brand */
.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    text-decoration: none;
}

.footer-logo .logo-text {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-white);
}

.footer-desc {
    color: var(--text-light);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Footer Links */
.footer-links h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--space-md);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
}

/* Footer Contact */
.footer-contact h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--space-md);
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.contact-list svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Footer Bottom */
.footer-bottom {
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    text-align: center;
}

.copyright {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.footer-legal a {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--text-white);
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-fixed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.form-label.required::after {
    content: ' *';
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: var(--space-md);
    font-family: inherit;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
}

.contact-info h3 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-md);
}

.contact-info > p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.contact-details .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: var(--text-white);
    flex-shrink: 0;
}

.contact-details .info h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.contact-details .info p {
    margin: 0;
    color: var(--text-muted);
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Blog Article Styles
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.blog-card-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: var(--space-lg);
}

.blog-card-meta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.blog-card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-md);
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.blog-card-link:hover {
    gap: var(--space-sm);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-white); }
.text-accent { color: var(--accent); }

.bg-primary { background: var(--primary); }
.bg-gradient { background: var(--gradient-primary); }
.bg-light { background: var(--bg-light); }
.bg-dark { background: var(--bg-dark); }
.bg-white { background: var(--bg-white); }

.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-extrabold { font-weight: 800; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* Image utilities */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Scrollbar Styling
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   Selection
   ========================================================================== */
::selection {
    background: var(--primary);
    color: var(--text-white);
}
