/* ===================================
   Security Desk - Trending Keywords Styles
   트렌드 레이더 페이지 전용 스타일
   =================================== */

:root {
    --bg-body: #0B1120;
    --bg-card: #161F32;
    --border: #334155;
    --text-main: #F8FAFC;
    --text-sub: #94A3B8;
    --primary: #38BDF8;
    --accent: #22D3EE;
}

/* Trend Container */
.trend-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 5% 80px;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 40px 20px;
    background: radial-gradient(circle at 50% 10%, #1e293b 0%, var(--bg-body) 60%);
    margin-bottom: 30px;
    border-radius: 16px;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #94A3B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-sub);
    font-size: 1rem;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-sub);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--text-main);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--bg-body);
    border-color: var(--primary);
}

/* Trend Cloud */
.trend-cloud {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.keyword-tag {
    display: inline-block;
    margin: 8px 12px;
    padding: 6px 14px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.keyword-tag:hover {
    background: var(--primary);
    color: var(--bg-body);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.keyword-count {
    font-size: 0.75em;
    color: var(--text-sub);
    margin-left: 4px;
}

/* Trend List */
.trend-list h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.list-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: rgba(56, 189, 248, 0.05);
}

.list-rank {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #2563EB);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.list-item:nth-child(1) .list-rank {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.list-item:nth-child(2) .list-rank {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
}

.list-item:nth-child(3) .list-rank {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
}

.list-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.list-keyword {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.1rem;
}

.list-count {
    color: var(--accent);
    font-size: 0.9rem;
    padding: 2px 8px;
    background: rgba(34, 211, 238, 0.1);
    border-radius: 4px;
}

.list-date {
    color: var(--text-sub);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-sub);
}

.empty-state p {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .trend-container {
        padding: 30px 5% 60px;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

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

    .trend-cloud {
        padding: 25px;
    }

    .keyword-tag {
        margin: 6px 8px;
    }

    .list-item {
        padding: 15px;
        flex-wrap: wrap;
    }

    .list-rank {
        width: 35px;
        height: 35px;
        margin-right: 15px;
    }

    .list-info {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
