.trend-content {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 32px 200px;
}

.period-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.period-btn {
    padding: 8px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.period-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.period-btn:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.trend-section {
    margin-bottom: 32px;
}

.trend-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.trend-list, .prediction-list {
    display: grid;
    gap: 12px;
}

.trend-item, .prediction-item {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.trend-item:hover, .prediction-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.growth-chart {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    min-height: 300px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.trend-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.trend-tab {
    padding: 8px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.trend-tab.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.trend-tab:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.trend-tab-content {
    display: none;
    margin-bottom: 24px;
}

.trend-tab-content.active {
    display: block;
}

.chart-container {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    min-height: 400px;
    margin-top: 24px;
    position: relative;
}

.trend-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.trend-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.trend-rank {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 40px;
    text-align: center;
}

.trend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.trend-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trend-value {
    font-size: 13px;
    color: var(--text-secondary);
}

.trend-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.trend-stats span {
    font-size: 12px;
    color: var(--text-tertiary);
}

.trend-growth {
    font-size: 16px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

.trend-growth.trend-up {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
}

.trend-growth.trend-down {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.trend-rank-change {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.trend-rank-change.trend-up {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
}

.trend-rank-change.trend-down {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.trend-meta {
    font-size: 12px;
    color: var(--text-tertiary);
}

.prediction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.prediction-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.prediction-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.prediction-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.prediction-text {
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    display: inline-block;
    width: fit-content;
}

.prediction-text.prediction-up {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
}

.prediction-text.prediction-down {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.prediction-text.prediction-stable {
    color: var(--text-secondary);
    background: rgba(100, 116, 139, 0.1);
}

.prediction-confidence {
    font-size: 12px;
    color: var(--text-tertiary);
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.btn-generate-report {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-generate-report:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* 플랜 정보 섹션 */
.plan-info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.plan-info-card,
.custom-analysis-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.plan-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.plan-info-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-upgrade-plan {
    padding: 8px 16px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-upgrade-plan:hover {
    background: var(--primary-hover);
}

.plan-info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-name-display {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.plan-usage,
.plan-remaining {
    font-size: 14px;
    color: var(--text-secondary);
}

.plan-usage strong,
.plan-remaining strong {
    font-size: 18px;
    color: var(--text-primary);
}

.custom-analysis-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-analysis-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input,
.form-select {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-analyze {
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-analyze:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-analyze:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* AI 인사이트 섹션 */
.ai-insight-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 32px;
}

.ai-insight-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.update-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.ai-insight-content {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.insight-summary {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.insight-detail {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.insight-list {
    margin-bottom: 20px;
}

.insight-list h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.insight-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insight-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.insight-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--primary-color);
    font-weight: 700;
}

.hot-brands {
    margin-top: 20px;
}

.hot-brands h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.brand-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.brand-tag {
    padding: 6px 12px;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
}

/* 외부 트렌드 섹션 */
.external-trend-section {
    margin-bottom: 32px;
}

.external-trend-content {
    min-height: 200px;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.loading-placeholder {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}
