﻿:root {
    --bg-color: #0c0f17;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --primary: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --accent: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --container-width: 1000px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 15, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    padding: 1.5rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.nav-links a:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    padding: 6rem 0 4rem;
    text-align: center;
    background: radial-gradient(circle at top center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.date-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.main-summary {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out;
}

.share-container {
    margin-top: 2rem;
    animation: fadeIn 1.5s ease-out;
}

.share-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.share-btn:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.share-btn i {
    width: 20px;
    height: 20px;
}

/* Indicators Grid */
.indicators-section {
    padding: 4rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
    overflow: hidden;
    /* ?곸뿭 諛?李⑦듃 ?④? */
}

/* Indicators Grid */
.indicator-card>*:not(.sparkline-container) {
    position: relative;
    z-index: 2;
    /* ?띿뒪?멸? 李⑦듃 ?꾩뿉 ?ㅻ룄濡?*/
}

.sparkline-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    /* 李⑦듃 ?믪씠 */
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.sparkline-svg {
    width: 100%;
    height: 100%;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px currentColor);
}

.sparkline-area {
    stroke: none;
    fill: url(#area-gradient);
}

.chart-metadata {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.6;
    pointer-events: none;
    z-index: 3;
}

.period-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

.currency-header .card-icon {
    margin-bottom: 0;
}

.currency-pills {
    display: flex;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem;
    border-radius: 1rem;
    border: 1px solid var(--card-border);
}

.pill {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill:hover {
    color: var(--text-main);
}

.pill.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.card .value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: opacity 0.2s ease;
}

.card .change {
    font-size: 0.9rem;
    font-weight: 600;
}

.change.up {
    color: var(--success);
}

.change.down {
    color: var(--danger);
}

/* About Section */
.about-section {
    padding: 4rem 0 8rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.value-item i {
    width: 32px;
    height: 32px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.value-item p {
    font-size: 1.1rem;
    font-weight: 500;
}


/* Data Source Section */
.data-section {
    padding-bottom: 6rem;
}

.section-divider {
    border: 0;
    height: 1px;
    background: var(--card-border);
    margin-bottom: 4rem;
}

.data-info-grid {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
}

.data-text h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--text-main);
}

.data-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.data-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.data-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.data-features li::before {
    content: '??;
    position: absolute;
    left: 0;
    color: var(--primary);
}

.data-features li strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 0.2rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 4rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

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

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

.copyright {
    color: #4b5563;
    font-size: 0.8rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.3s ease-out;
}

.toast.fade-out {
    opacity: 0;
    transform: translate(-50%, 20px);
    transition: all 0.5s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    header .container {
        padding: 0 1.5rem;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .main-summary {
        font-size: 1.8rem;
        padding: 0 1rem;
    }

    .indicators-grid {
        grid-template-columns: 1fr;
    }
    }
}

/* FAQ Section */
.faq-section { padding-bottom: 4rem; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.faq-item { background: rgba(255, 255, 255, 0.03); padding: 1.5rem; border-radius: 1rem; border: 1px solid var(--card-border); }
.faq-question { font-size: 1.1rem; color: var(--primary); margin-bottom: 0.8rem; font-weight: 600; }
.faq-answer { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* Lang Switch */
.lang-switch { margin-left: 1.5rem; }
#lang-btn { background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.4); color: var(--primary); padding: 0.4rem 1rem; border-radius: 1rem; font-size: 0.75rem; font-weight: 700; cursor: pointer; transition: all 0.3s; letter-spacing: 0.5px; }
#lang-btn:hover { background: var(--primary); color: white; box-shadow: 0 0 15px rgba(99, 102, 241, 0.3); transform: translateY(-2px); }
