/* =============================================
   ProWatchly - Education Use Case Styles
   Education 페이지 전용 스타일 (재사용 가능)
   기존 클래스명 지원 (backward compatible)
   ============================================= */

/* CSS Variables for Education Theme */
:root {
    --bg-dark: #0a0e1a;
    --bg-section: #0d1220;
    --bg-card: #141c2e;
    --accent-blue: #0ea5e9;
    --accent-cyan: #22d3ee;
    --accent-red: #ef4444;
    --accent-orange: #f97316;
    --accent-green: #10b981;
    --accent-yellow: #eab308;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #1e293b;
    --grid-line: rgba(14, 165, 233, 0.1);
}

/* Base Styles */
body {
    font-family: "Inter", -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation (legacy .nav only — shared header uses .header from common.css) */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav .nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav .logo img {
    height: 36px;
}

.nav .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.nav .nav-cta {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: var(--bg-dark);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav .nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

/* Shared header (.header from components.js) — match other use cases: white text */
.header .nav-links a,
.header .dropdown-toggle,
.header .nav-web-link {
    color: #fff !important;
}
.header .nav-links a:hover,
.header .dropdown-toggle:hover,
.header .nav-web-link:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}
.header .logo {
    color: #fff !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    background: radial-gradient(ellipse at 50% 30%, rgba(14, 165, 233, 0.15) 0%, transparent 50%), var(--bg-dark);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
    font-family: "JetBrains Mono", monospace;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: var(--bg-dark);
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Infographic Sections - Improved Spacing & Professional Layout */
.infographic-section {
    min-height: 100vh;
    padding: 6rem 2rem;
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    isolation: isolate;
}

.infographic-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(14, 165, 233, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.infographic-section:nth-child(even) {
    background: var(--bg-section);
}

.infographic-section:nth-child(even)::before {
    background: radial-gradient(ellipse at 50% 50%, rgba(34, 211, 238, 0.03) 0%, transparent 70%);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.section-container.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.section-container.reverse .section-content {
    order: 2;
}

.section-container.reverse .section-graphic {
    order: 1;
}

.section-number {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    color: var(--accent-blue);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Value Points */
.value-points {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.value-point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(14, 165, 233, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(14, 165, 233, 0.1);
    transition: all 0.3s;
}

.value-point:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateX(5px);
}

.value-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-icon.green {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
}

.value-icon.blue {
    background: rgba(14, 165, 233, 0.2);
    color: var(--accent-blue);
}

.value-icon.orange {
    background: rgba(249, 115, 22, 0.2);
    color: var(--accent-orange);
}

.value-icon.red {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
}

.value-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.value-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Read More Button */
.read-more-btn {
    background: none;
    border: none;
    color: var(--accent-cyan);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    transition: all 0.3s;
}

.read-more-btn:hover {
    color: var(--text-primary);
}

.read-more-btn svg {
    transition: transform 0.3s;
}

.read-more-btn.active svg {
    transform: rotate(180deg);
}

/* Expanded Content */
.expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s;
    opacity: 0;
}

.expanded-content.active {
    max-height: 1000px;
    opacity: 1;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.expanded-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.expanded-content ul {
    list-style: none;
    padding-left: 0;
}

.expanded-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.expanded-content li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

/* Section Graphics - Fixed Spacing & Professional Layout */
.section-graphic {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    isolation: isolate;
    will-change: transform;
}

.infographic-visual {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 1.5rem;
    background: rgba(13, 18, 32, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 233, 0.15);
    overflow: visible;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.infographic-visual svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
    max-width: 100%;
    transition: transform 0.3s ease;
}

.infographic-visual:hover svg {
    transform: scale(1.02);
}

/* Prevent SVG Element Overlap */
.infographic-visual svg * {
    pointer-events: none;
}

.infographic-visual svg text {
    pointer-events: none;
    user-select: none;
}

/* Final CTA */
.final-cta {
    padding: 8rem 2rem;
    background: radial-gradient(ellipse at 50% 50%, rgba(14, 165, 233, 0.2) 0%, transparent 60%), var(--bg-dark);
    text-align: center;
    position: relative;
}

.final-cta h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.final-cta p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Footer */
.footer {
    padding: 3rem 2rem;
    background: var(--bg-section);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.9));
    }
}

@keyframes shield-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

.glow {
    animation: glow 2s infinite;
}

.shield-pulse {
    animation: shield-pulse 3s infinite;
}

/* Section Animation on Scroll */
.infographic-section {
    animation: fadeInUp 0.8s ease-out;
}

.section-content {
    animation: slideInFromLeft 0.8s ease-out;
}

.section-container.reverse .section-content {
    animation: slideInFromRight 0.8s ease-out;
}

.section-graphic {
    animation: fadeInScale 0.8s ease-out 0.2s both;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .section-container,
    .section-container.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .section-container.reverse .section-content,
    .section-container.reverse .section-graphic {
        order: unset;
    }
    
    .section-graphic {
        min-height: 400px;
    }
    
    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 6rem 1rem 3rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .hero-stat-value {
        font-size: 2rem;
    }
    
    .infographic-section {
        padding: 4rem 1rem;
    }
    
    .section-container {
        gap: 3rem;
    }
    
    .section-graphic {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .infographic-section {
        padding: 3rem 1rem;
    }
    
    .section-graphic {
        min-height: 300px;
    }
}
