/* =============================================
   TrendForge Design System
   Dark Navy + Neon Green Accent Theme
   ============================================= */

/* === Custom Properties === */
:root {
    /* Background */
    --tf-bg: #0f172a;
    --tf-bg-secondary: #0b1120;
    --tf-surface: #1e293b;
    --tf-surface-hover: #334155;
    --tf-surface-elevated: #243247;

    /* Borders */
    --tf-border: #334155;
    --tf-border-light: #1e293b;
    --tf-border-glow: rgba(16, 185, 129, 0.3);

    /* Text */
    --tf-text: #e2e8f0;
    --tf-text-secondary: #94a3b8;
    --tf-text-muted: #64748b;
    --tf-text-inverse: #0f172a;

    /* Accent */
    --tf-accent: #10b981;
    --tf-accent-hover: #059669;
    --tf-accent-glow: rgba(16, 185, 129, 0.25);
    --tf-accent-soft: rgba(16, 185, 129, 0.12);

    /* Status Colors */
    --tf-hot: #ef4444;
    --tf-hot-bg: rgba(239, 68, 68, 0.15);
    --tf-rising: #10b981;
    --tf-rising-bg: rgba(16, 185, 129, 0.15);
    --tf-stable: #6b7280;
    --tf-stable-bg: rgba(107, 114, 128, 0.15);
    --tf-falling: #3b82f6;
    --tf-falling-bg: rgba(59, 130, 246, 0.15);
    --tf-warning: #f59e0b;
    --tf-warning-bg: rgba(245, 158, 11, 0.15);

    /* Source Colors */
    --tf-clien: #3b82f6;
    --tf-blind: #8b5cf6;
    --tf-fmkorea: #10b981;
    --tf-reddit: #ff4500;
    --tf-hackernews: #ff6600;
    --tf-ruliweb: #0076c0;

    /* Radius */
    --tf-radius: 12px;
    --tf-radius-sm: 8px;
    --tf-radius-lg: 16px;
    --tf-radius-xl: 24px;
    --tf-radius-pill: 999px;

    /* Shadows */
    --tf-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --tf-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --tf-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --tf-shadow-glow: 0 0 20px rgba(16, 185, 129, 0.15);
    --tf-shadow-glow-strong: 0 0 30px rgba(16, 185, 129, 0.25);

    /* Typography */
    --tf-font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Transitions */
    --tf-transition: 0.2s ease;
    --tf-transition-slow: 0.3s ease;

    /* Layout */
    --tf-header-height: 60px;
    --tf-content-width: 1200px;
}

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

body.trendforge-page {
    font-family: var(--tf-font);
    background: var(--tf-bg);
    color: var(--tf-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* === Scrollbar === */
body.trendforge-page::-webkit-scrollbar { width: 6px; }
body.trendforge-page::-webkit-scrollbar-track { background: var(--tf-bg); }
body.trendforge-page::-webkit-scrollbar-thumb { background: var(--tf-border); border-radius: 3px; }
body.trendforge-page::-webkit-scrollbar-thumb:hover { background: var(--tf-text-muted); }

/* === Utility === */
.tf-spin {
    animation: tf-spin 1s linear infinite;
}
@keyframes tf-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes tf-glow {
    0%, 100% { box-shadow: 0 0 5px var(--tf-accent-glow); }
    50% { box-shadow: 0 0 20px var(--tf-accent-glow), 0 0 40px rgba(16, 185, 129, 0.1); }
}

/* =============================================
   Header
   ============================================= */
.tf-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--tf-border);
    height: var(--tf-header-height);
}

.tf-header-inner {
    max-width: var(--tf-content-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.tf-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--tf-text);
    font-weight: 800;
    font-size: 1.25rem;
    white-space: nowrap;
    transition: opacity var(--tf-transition);
}

.tf-logo:hover {
    opacity: 0.85;
}

.tf-logo .material-icons-round {
    font-size: 26px;
    color: var(--tf-accent);
    filter: drop-shadow(0 0 6px var(--tf-accent-glow));
}

.tf-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tf-nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    color: var(--tf-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--tf-radius-sm);
    transition: color var(--tf-transition), background var(--tf-transition);
}

.tf-nav-link:hover {
    color: var(--tf-text);
    background: rgba(255, 255, 255, 0.06);
}

.tf-nav-link.active {
    color: var(--tf-accent);
    background: var(--tf-accent-soft);
}

.tf-nav-link .material-icons-round {
    font-size: 20px;
}

.tf-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tf-demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    background: var(--tf-warning-bg);
    color: var(--tf-warning);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--tf-radius-pill);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.tf-user-name {
    color: var(--tf-text);
    font-size: 0.875rem;
    font-weight: 500;
}

/* =============================================
   Buttons
   ============================================= */
.tf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-family: var(--tf-font);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--tf-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--tf-transition);
    white-space: nowrap;
    line-height: 1.4;
    color: var(--tf-text-secondary);
    background: transparent;
    border-color: var(--tf-border);
}

.tf-btn:hover {
    color: var(--tf-text);
    background: var(--tf-surface-hover);
    border-color: var(--tf-text-muted);
}

.tf-btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
}

.tf-btn-primary {
    background: var(--tf-accent);
    color: var(--tf-text-inverse);
    border-color: var(--tf-accent);
}

.tf-btn-primary:hover {
    background: var(--tf-accent-hover);
    border-color: var(--tf-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--tf-accent-glow);
}

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

.tf-btn-outline:hover {
    color: var(--tf-text);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--tf-text-muted);
}

.tf-btn .material-icons-round {
    font-size: 18px;
}

/* =============================================
   Main Layout
   ============================================= */
.tf-main {
    min-height: calc(100vh - var(--tf-header-height));
}

.tf-content {
    max-width: var(--tf-content-width);
    margin: 0 auto;
    padding: 1.5rem;
}

.tf-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tf-content-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--tf-text);
}

.tf-content-title .material-icons-round {
    font-size: 26px;
    color: var(--tf-accent);
    filter: drop-shadow(0 0 4px var(--tf-accent-glow));
}

.tf-trend-count {
    font-size: 0.875rem;
    color: var(--tf-text-secondary);
}

.tf-trend-count strong {
    color: var(--tf-accent);
    font-weight: 700;
}

/* =============================================
   Category Filter Bar
   ============================================= */
.tf-category-bar {
    position: sticky;
    top: var(--tf-header-height);
    z-index: 50;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tf-border);
    padding: 0.75rem 0;
}

.tf-category-bar-inner {
    max-width: var(--tf-content-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tf-category-bar-inner::-webkit-scrollbar {
    display: none;
}

.tf-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.95rem;
    background: transparent;
    color: var(--tf-text-secondary);
    font-family: var(--tf-font);
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-pill);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--tf-transition);
    flex-shrink: 0;
}

.tf-category-chip:hover {
    color: var(--tf-text);
    background: var(--tf-surface-hover);
    border-color: var(--tf-text-muted);
}

.tf-category-chip.active {
    background: var(--tf-accent);
    color: var(--tf-text-inverse);
    border-color: var(--tf-accent);
    box-shadow: 0 0 12px var(--tf-accent-glow);
}

/* =============================================
   Grid Layout
   ============================================= */
.tf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* =============================================
   Trend Card
   ============================================= */
.tf-trend-card {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--tf-transition-slow);
    position: relative;
    overflow: hidden;
}

.tf-trend-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--tf-radius);
    border: 1px solid transparent;
    transition: border-color var(--tf-transition-slow);
    pointer-events: none;
}

.tf-trend-card:hover {
    transform: translateY(-4px);
    border-color: var(--tf-accent);
    box-shadow: var(--tf-shadow-glow), var(--tf-shadow-md);
}

.tf-trend-card:hover::before {
    border-color: var(--tf-accent);
}

.tf-trend-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tf-trend-keyword {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tf-text);
    line-height: 1.3;
    flex: 1;
}

/* Velocity Badge */
.tf-velocity-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--tf-radius-pill);
    white-space: nowrap;
    flex-shrink: 0;
}

.tf-velocity-HOT {
    background: var(--tf-hot-bg);
    color: var(--tf-hot);
    border: 1px solid rgba(239, 68, 68, 0.3);
    animation: tf-pulse 2s ease-in-out infinite;
}

.tf-velocity-RISING {
    background: var(--tf-rising-bg);
    color: var(--tf-rising);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.tf-velocity-STABLE {
    background: var(--tf-stable-bg);
    color: var(--tf-stable);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.tf-velocity-FALLING {
    background: var(--tf-falling-bg);
    color: var(--tf-falling);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.tf-trend-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Score Bar */
.tf-score-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.tf-score-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--tf-accent), #34d399);
    transition: width 0.6s ease;
    box-shadow: 0 0 8px var(--tf-accent-glow);
}

.tf-trend-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.tf-trend-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tf-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8125rem;
    color: var(--tf-text-muted);
}

.tf-stat .material-icons-round {
    font-size: 16px;
}

.tf-trend-score {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--tf-accent);
}

/* =============================================
   Tags
   ============================================= */
.tf-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--tf-radius-pill);
    background: var(--tf-accent-soft);
    color: var(--tf-accent);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tf-tag-sm {
    padding: 0.15rem 0.5rem;
    font-size: 0.6875rem;
}

/* =============================================
   Idea Card
   ============================================= */
.tf-idea-card {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    padding: 1.5rem;
    transition: all var(--tf-transition-slow);
}

.tf-idea-card:hover {
    border-color: var(--tf-accent);
    box-shadow: var(--tf-shadow-glow), var(--tf-shadow-md);
    transform: translateY(-2px);
}

.tf-idea-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tf-idea-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tf-text);
    line-height: 1.4;
    flex: 1;
}

.tf-idea-trend-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    color: var(--tf-text-secondary);
}

.tf-idea-trend-tag a {
    color: var(--tf-accent);
    font-weight: 500;
    transition: opacity var(--tf-transition);
}

.tf-idea-trend-tag a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.tf-idea-sections {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.tf-idea-problem,
.tf-idea-solution {
    padding: 0.85rem 1rem;
    border-radius: var(--tf-radius-sm);
    border-left: 3px solid;
}

.tf-idea-problem {
    background: rgba(239, 68, 68, 0.06);
    border-color: var(--tf-hot);
}

.tf-idea-solution {
    background: rgba(16, 185, 129, 0.06);
    border-color: var(--tf-accent);
}

.tf-idea-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.tf-idea-problem .tf-idea-label {
    color: var(--tf-hot);
}

.tf-idea-solution .tf-idea-label {
    color: var(--tf-accent);
}

.tf-idea-problem .tf-idea-label .material-icons-round,
.tf-idea-solution .tf-idea-label .material-icons-round {
    font-size: 16px;
}

.tf-idea-problem p,
.tf-idea-solution p {
    font-size: 0.875rem;
    color: var(--tf-text-secondary);
    line-height: 1.6;
}

.tf-idea-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Viability Bar */
.tf-viability {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
    justify-content: flex-end;
}

.tf-viability-label {
    font-size: 0.75rem;
    color: var(--tf-text-muted);
    white-space: nowrap;
}

.tf-viability-bar {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.tf-viability-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--tf-accent), #34d399);
    transition: width 0.6s ease;
    box-shadow: 0 0 6px var(--tf-accent-glow);
}

.tf-viability-score {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--tf-accent);
    min-width: 36px;
    text-align: right;
}

/* Bookmark Button */
.tf-bookmark-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--tf-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--tf-transition);
    flex-shrink: 0;
    color: var(--tf-text-muted);
}

.tf-bookmark-btn .material-icons-round {
    font-size: 20px;
    transition: all var(--tf-transition);
}

.tf-bookmark-btn:hover {
    border-color: var(--tf-hot);
    color: var(--tf-hot);
    background: var(--tf-hot-bg);
}

.tf-bookmark-btn.active {
    border-color: var(--tf-hot);
    color: var(--tf-hot);
    background: var(--tf-hot-bg);
}

.tf-bookmark-btn.active .material-icons-round {
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* =============================================
   Source Badges
   ============================================= */
.tf-source-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: var(--tf-radius-pill);
    line-height: 1.4;
}

.tf-source-clien,
.tf-source-클리앙 {
    background: rgba(59, 130, 246, 0.12);
    color: var(--tf-clien);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.tf-source-blind,
.tf-source-블라인드 {
    background: rgba(139, 92, 246, 0.12);
    color: var(--tf-blind);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.tf-source-fmkorea,
.tf-source-에펨코리아 {
    background: rgba(16, 185, 129, 0.12);
    color: var(--tf-fmkorea);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.tf-source-reddit,
.tf-source-Reddit,
.tf-source-REDDIT {
    background: rgba(255, 69, 0, 0.12);
    color: var(--tf-reddit);
    border: 1px solid rgba(255, 69, 0, 0.25);
}

.tf-source-hackernews,
.tf-source-HACKERNEWS {
    background: rgba(255, 102, 0, 0.12);
    color: var(--tf-hackernews);
    border: 1px solid rgba(255, 102, 0, 0.25);
}

.tf-source-ruliweb,
.tf-source-RULIWEB {
    background: rgba(0, 118, 192, 0.12);
    color: var(--tf-ruliweb);
    border: 1px solid rgba(0, 118, 192, 0.25);
}

/* =============================================
   Detail Page
   ============================================= */
.tf-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--tf-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: color var(--tf-transition);
}

.tf-back-link:hover {
    color: var(--tf-accent);
}

.tf-back-link .material-icons-round {
    font-size: 20px;
}

.tf-detail-header {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.tf-detail-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tf-detail-keyword {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tf-text);
    letter-spacing: -0.02em;
}

.tf-detail-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.tf-detail-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: var(--tf-text-secondary);
}

.tf-detail-stat .material-icons-round {
    font-size: 18px;
    color: var(--tf-text-muted);
}

.tf-detail-stat strong {
    color: var(--tf-text);
    font-weight: 700;
}

/* Section Blocks */
.tf-section-block {
    margin-bottom: 2rem;
}

.tf-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tf-text);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--tf-border);
}

.tf-section-title .material-icons-round {
    font-size: 22px;
    color: var(--tf-accent);
}

/* Source Items */
.tf-source-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tf-source-item {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    padding: 1.25rem;
    transition: border-color var(--tf-transition);
}

.tf-source-item:hover {
    border-color: var(--tf-text-muted);
}

.tf-source-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tf-source-relevance {
    font-size: 0.75rem;
    color: var(--tf-text-muted);
}

.tf-source-relevance strong {
    color: var(--tf-accent);
}

.tf-source-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tf-source-title a {
    color: var(--tf-text);
    transition: color var(--tf-transition);
}

.tf-source-title a:hover {
    color: var(--tf-accent);
}

.tf-source-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Idea List in Detail */
.tf-idea-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* =============================================
   Empty States
   ============================================= */
.tf-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.tf-empty-state .material-icons-round {
    color: var(--tf-text-muted);
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.tf-empty-state h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--tf-text);
    margin-bottom: 0.5rem;
}

.tf-empty-state p {
    font-size: 0.9rem;
    color: var(--tf-text-secondary);
    max-width: 400px;
    line-height: 1.6;
}

.tf-empty-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
    background: var(--tf-surface);
    border: 1px dashed var(--tf-border);
    border-radius: var(--tf-radius);
    color: var(--tf-text-muted);
}

.tf-empty-inline .material-icons-round {
    font-size: 28px;
    opacity: 0.5;
}

.tf-empty-inline p {
    font-size: 0.875rem;
}

/* Loader */
.tf-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 3rem;
    color: var(--tf-text-muted);
}

.tf-loader .material-icons-round {
    font-size: 32px;
    color: var(--tf-accent);
}

.tf-loader p {
    font-size: 0.875rem;
}

/* =============================================
   Login Page
   ============================================= */
.tf-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tf-bg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.tf-login-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--tf-accent-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: tf-glow 4s ease-in-out infinite;
    opacity: 0.4;
}

.tf-login-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    box-shadow: var(--tf-shadow-lg), var(--tf-shadow-glow);
    text-align: center;
    z-index: 1;
}

.tf-login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--tf-text);
    margin-bottom: 0.75rem;
}

.tf-login-logo .material-icons-round {
    font-size: 34px;
    color: var(--tf-accent);
    filter: drop-shadow(0 0 8px var(--tf-accent-glow));
}

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

.tf-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-family: var(--tf-font);
    font-size: 0.9375rem;
    font-weight: 600;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-sm);
    background: var(--tf-surface-elevated);
    color: var(--tf-text);
    cursor: pointer;
    transition: all var(--tf-transition);
    margin-bottom: 0.75rem;
}

.tf-login-btn:hover {
    background: var(--tf-surface-hover);
    border-color: var(--tf-text-muted);
    transform: translateY(-1px);
}

.tf-login-google {
    background: #ffffff;
    color: #1f2937;
    border-color: #e5e7eb;
}

.tf-login-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.tf-login-kakao {
    background: #FEE500;
    color: #191919;
    border-color: #FEE500;
}

.tf-login-kakao:hover {
    background: #F5DC00;
    border-color: #F5DC00;
}

.tf-login-demo {
    color: var(--tf-accent);
    border-style: dashed;
    border-color: rgba(16, 185, 129, 0.3);
    background: transparent;
}

.tf-login-demo:hover {
    background: var(--tf-accent-soft);
    border-color: var(--tf-accent);
}

.tf-login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.75rem 0;
    color: var(--tf-text-muted);
    font-size: 0.8125rem;
}

.tf-login-divider::before,
.tf-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--tf-border);
}

.tf-login-help {
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: var(--tf-text-muted);
}

.tf-login-help a {
    color: var(--tf-accent);
    font-weight: 500;
    transition: opacity var(--tf-transition);
}

.tf-login-help a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* =============================================
   Footer
   ============================================= */
.tf-footer {
    background: var(--tf-bg-secondary);
    border-top: 1px solid var(--tf-border);
    padding: 2rem 1.5rem;
    text-align: center;
}

.tf-footer-inner {
    max-width: var(--tf-content-width);
    margin: 0 auto;
}

.tf-footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--tf-text);
    margin-bottom: 0.35rem;
}

.tf-footer-tagline {
    font-size: 0.8125rem;
    color: var(--tf-text-muted);
    margin-bottom: 1.25rem;
}

.tf-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.tf-footer-links a {
    color: var(--tf-text-muted);
    font-size: 0.8125rem;
    transition: color var(--tf-transition);
}

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

.tf-footer-copy {
    font-size: 0.75rem;
    color: var(--tf-text-muted);
}

.tf-footer-copy a {
    color: var(--tf-accent);
    transition: opacity var(--tf-transition);
}

.tf-footer-copy a:hover {
    opacity: 0.8;
}

/* =============================================
   Inputs
   ============================================= */
.tf-input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-family: var(--tf-font);
    font-size: 0.875rem;
    color: var(--tf-text);
    background: var(--tf-bg);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-sm);
    outline: none;
    transition: border-color var(--tf-transition), box-shadow var(--tf-transition);
}

.tf-input:focus {
    border-color: var(--tf-accent);
    box-shadow: 0 0 0 3px var(--tf-accent-soft);
}

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

/* =============================================
   Responsive Design
   ============================================= */

/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .tf-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .tf-content {
        padding: 1.25rem;
    }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
    .tf-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .tf-header-inner {
        padding: 0 1rem;
    }

    .tf-logo-text {
        display: none;
    }

    .tf-nav-link span:last-child {
        display: none;
    }

    .tf-nav-link {
        padding: 0.5rem;
    }

    .tf-content {
        padding: 1rem;
    }

    .tf-content-title {
        font-size: 1.15rem;
    }

    .tf-category-bar-inner {
        padding: 0 1rem;
    }

    .tf-category-chip {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }

    .tf-trend-card {
        padding: 1.15rem;
    }

    .tf-trend-keyword {
        font-size: 1.05rem;
    }

    .tf-idea-card {
        padding: 1.15rem;
    }

    .tf-detail-header {
        padding: 1.5rem;
    }

    .tf-detail-keyword {
        font-size: 1.5rem;
    }

    .tf-detail-meta {
        gap: 0.75rem;
    }

    .tf-viability {
        min-width: 160px;
    }

    .tf-login-card {
        padding: 2rem 1.5rem;
    }

    .tf-footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .tf-idea-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .tf-viability {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tf-detail-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .tf-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .tf-source-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .tf-trend-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .tf-trend-stats {
        gap: 0.65rem;
    }

    .tf-login-glow {
        width: 300px;
        height: 300px;
    }
}

/* =============================================
   Print Styles
   ============================================= */
@media print {
    .tf-header,
    .tf-category-bar,
    .tf-footer,
    .tf-bookmark-btn {
        display: none !important;
    }

    body.trendforge-page {
        background: #fff;
        color: #000;
    }

    .tf-trend-card,
    .tf-idea-card,
    .tf-source-item {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
        background: #fff;
    }
}
