/*
 * 헬로차트 - 프리미엄 다크 테마
 * Premium Dark Theme for HelloChart
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');
@import url('chart_animation.css');

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

:root {
    /* 배경 색상 */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #13131a;
    --bg-card-hover: #1a1a24;
    --bg-input: #1a1a24;
    --bg-glass: rgba(19, 19, 26, 0.85);

    /* 테두리 */
    --border: #2a2a3a;
    --border-light: #3a3a4a;

    /* 텍스트 */
    --text-white: #ffffff;
    --text-light: #e0e0e0;
    --text-gray: #a0a0a0;
    --text-muted: #666666;

    /* 주요 색상 */
    --gold: #fcd535;
    --gold-dark: #d4a800;
    --gold-glow: rgba(252, 213, 53, 0.3);

    --cyan: #00d4aa;
    --cyan-dark: #00a888;
    --cyan-glow: rgba(0, 212, 170, 0.3);

    /* 보조 색상 */
    --purple: #8b5cf6;
    --purple-dark: #7c3aed;
    --blue: #4dabf7;
    --orange: #f7a600;

    /* 상태 색상 */
    --success: #00d68f;
    --danger: #ff6b6b;
    --warning: #ffc107;

    /* 그라데이션 */
    --gradient-gold: linear-gradient(135deg, var(--gold), var(--gold-dark));
    --gradient-cyan: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    --gradient-purple: linear-gradient(135deg, var(--purple), var(--purple-dark));
    --gradient-premium: linear-gradient(135deg, #fcd535, #00d4aa);

    /* 기타 */
    --transition: all 0.3s ease;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--gold);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* ==========================================
   Container
   ========================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 800px;
}

.container-lg {
    max-width: 1400px;
}

/* ==========================================
   Navigation Bar
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
}

.navbar-brand .logo-icon {
    font-size: 1.8rem;
}

.navbar-brand span {
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-menu {
    display: flex;
    gap: 8px;
}

.navbar-menu li a {
    display: block;
    padding: 10px 18px;
    color: var(--text-gray);
    font-weight: 500;
    border-radius: 10px;
    transition: var(--transition);
}

.navbar-menu li a:hover,
.navbar-menu li a.active {
    color: var(--text-white);
    background: var(--bg-card);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-gold);
    color: #000000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--gold-glow);
    color: #000000;
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(0, 212, 170, 0.1);
}

.btn-cyan {
    background: var(--gradient-cyan);
    color: #000000;
}

.btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--cyan-glow);
    color: #000000;
}

.btn-purple {
    background: var(--gradient-purple);
    color: #ffffff;
}

.btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #e55555);
    color: #ffffff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    background: radial-gradient(ellipse at center, #15151a 0%, #000000 90%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, var(--gold-glow) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, var(--cyan-glow) 0%, transparent 40%);
    pointer-events: none;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

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

.hero p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 212, 170, 0.15);
    border: 1px solid var(--cyan);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--cyan);
    margin-bottom: 25px;
}

/* ==========================================
   Sections
   ========================================== */
.section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 14px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   Cards
   ========================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   Blog Cards
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyan);
    box-shadow: 0 15px 40px rgba(0, 212, 170, 0.15);
    color: inherit;
}

.blog-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg-input), var(--border));
}

.blog-card-body {
    padding: 20px;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-white);
    line-height: 1.4;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.6;
    height: 48px;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================
   Badges
   ========================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-free {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.2), rgba(0, 212, 170, 0.1));
    color: var(--cyan);
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.badge-premium {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    color: var(--purple);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-paid {
    background: linear-gradient(135deg, rgba(252, 213, 53, 0.2), rgba(252, 213, 53, 0.1));
    color: var(--gold);
    border: 1px solid rgba(252, 213, 53, 0.3);
}

.badge-purchased {
    background: rgba(0, 214, 143, 0.2);
    color: var(--success);
    border: 1px solid rgba(0, 214, 143, 0.3);
}

.badge-hot {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ==========================================
   Form Elements
   ========================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* ==========================================
   Alerts
   ========================================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: rgba(0, 214, 143, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

/* ==========================================
   Auth Pages
   ========================================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0f0f18 100%);
}

.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-gray);
}

.auth-footer {
    margin-top: 28px;
    text-align: center;
    color: var(--text-gray);
}

.auth-footer a {
    color: var(--gold);
    font-weight: 500;
}

/* ==========================================
   Dashboard
   ========================================== */
.dashboard {
    padding-top: 80px;
    min-height: 100vh;
}

.dashboard-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}

.dashboard-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.dashboard-header p {
    color: var(--text-gray);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    padding: 40px 0;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand span {
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.9rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================
   Floating Contact Buttons
   ========================================== */
.floating-buttons {
    position: fixed;
    bottom: 100px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 998;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn.telegram {
    background: linear-gradient(135deg, #0088cc, #00aced);
}

.floating-btn.email {
    background: linear-gradient(135deg, #EA4335, #FBBC05);
}

/* ==========================================
   Mobile Navigation
   ========================================== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 10px 0;
    z-index: 1000;
}

.mobile-nav-content {
    display: flex;
    justify-content: space-around;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.75rem;
    transition: var(--transition);
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--gold);
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 60px 0;
    }

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

    .auth-box {
        padding: 32px 24px;
    }

    .mobile-nav {
        display: block;
    }

    body {
        padding-bottom: 70px;
    }

    .floating-buttons {
        bottom: 85px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* ==========================================
   Animations & Effects
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--cyan-glow);
    }

    50% {
        box-shadow: 0 0 30px var(--cyan-glow), 0 0 40px var(--gold-glow);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease;
}

.animate-slideUp {
    animation: slideUp 0.5s ease;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-gold {
    color: var(--gold);
}

.text-cyan {
    color: var(--cyan);
}

.text-purple {
    color: var(--purple);
}

.text-gray {
    color: var(--text-gray);
}

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

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.flex {
    display: flex;
}

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

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

.flex-wrap {
    flex-wrap: wrap;
}

.gap-1 {
    gap: 10px;
}

.gap-2 {
    gap: 20px;
}

.hidden {
    display: none;
}