/* YouTube Helper - Main Stylesheet */

/* 상세 분석 섹션 스타일 */
.detailed-analysis-section {
    margin: 2rem 0;
    text-align: center;
}

.detailed-results {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 2rem 0;
    overflow: hidden;
    transition: var(--transition);
}

.detailed-results.hidden {
    display: none;
}

.detailed-header {
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detailed-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.btn-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.detailed-content {
    padding: 0;
}

.analysis-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background: var(--light-color);
}

.analysis-tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.analysis-tab-btn:hover {
    background: rgba(255,68,68,0.1);
}

.analysis-tab-btn.active {
    background: white;
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.analysis-tab-content {
    display: none;
    padding: 2rem;
}

.analysis-tab-content.active {
    display: block;
}

.analysis-tab-content h4 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 트렌드 분석 스타일 */
.trend-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.trend-stat {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.trend-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.trend-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.trend-value.positive {
    color: var(--success-color);
}

.trend-value.negative {
    color: var(--danger-color);
}

.trend-value.difficulty-쉬움 {
    color: var(--success-color);
}

.trend-value.difficulty-보통 {
    color: var(--warning-color);
}

.trend-value.difficulty-어려움 {
    color: var(--danger-color);
}

.trend-insights {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.trend-insights h5 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.trend-insights ul {
    list-style: none;
    padding: 0;
}

.trend-insights li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.trend-insights li:before {
    content: "💡";
    position: absolute;
    left: 0;
}

.trend-insights li:last-child {
    border-bottom: none;
}

/* 관련 키워드 스타일 */
.keyword-categories {
    display: grid;
    gap: 2rem;
}

.keyword-category h5 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    border: 2px solid transparent;
}

.keyword-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.keyword-tag.popular {
    background: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
}

.keyword-tag.popular:hover {
    background: #ffcdd2;
}

.keyword-tag.longtail {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #bbdefb;
}

.keyword-tag.longtail:hover {
    background: #bbdefb;
}

.keyword-tag.opportunity {
    background: #e8f5e8;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.keyword-tag.opportunity:hover {
    background: #c8e6c9;
}

.keyword-tag small {
    opacity: 0.7;
    font-size: 0.8rem;
}

/* 제목 제안 스타일 */
.title-categories {
    display: grid;
    gap: 2rem;
}

.title-category h5 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.title-list {
    display: grid;
    gap: 1rem;
}

.title-suggestion {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.title-suggestion:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.title-text {
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    line-height: 1.4;
}

.title-metrics {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.metric {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.metric.seo {
    background: #e3f2fd;
    color: #1565c0;
}

.metric.ctr {
    background: #e8f5e8;
    color: #2e7d32;
}

.metric.length {
    background: #fff3e0;
    color: #ef6c00;
}

.title-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-copy, .btn-optimize {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-copy {
    background: var(--info-color);
    color: white;
}

.btn-copy:hover {
    background: #138496;
}

.btn-optimize {
    background: var(--warning-color);
    color: white;
}

.btn-optimize:hover {
    background: #e0a800;
}

/* 경쟁 분석 스타일 */
.competitor-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.competitor-video {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: start;
    transition: var(--transition);
}

.competitor-video:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.video-rank {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.video-info {
    flex: 1;
}

.video-title a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.3;
}

.video-title a:hover {
    color: var(--primary-color);
}

.video-title-link {
    color: #000000 !important;
    text-decoration: none;
    font-weight: 500;
}

.video-title-link:hover {
    color: #333333 !important;
}

.video-channel {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.video-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0.5rem 0;
}

.video-metrics .metric {
    background: var(--light-color);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #666;
}

.insight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.insight-tag {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.video-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-analyze {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-analyze:hover {
    background: #0056b3;
}

.competitor-insights {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.competitor-insights h5 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.competitor-insights ul {
    list-style: none;
    padding: 0;
}

.competitor-insights li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.competitor-insights li:before {
    content: "🎯";
    position: absolute;
    left: 0;
}

.competitor-insights li:last-child {
    border-bottom: none;
}

/* 오류 및 로딩 메시지 */
.loading-placeholder {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-style: italic;
}

.error-message {
    text-align: center;
    padding: 2rem;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: var(--border-radius);
    color: #c53030;
}

.btn-retry {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-retry:hover {
    background: #e03a3a;
}

/* 분석 액션 섹션 */
.analysis-actions-section {
    margin: 2rem 0;
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.analysis-actions-section .btn-large {
    min-width: 200px;
}

/* 키워드 정보 패널 */
.keyword-info-panel {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border: 1px solid #bbdefb;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1rem 0;
}

.keyword-info-panel.hidden {
    display: none;
}

.keyword-info-panel h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

.keyword-metric {
    display: flex;
    flex-direction: column;
    text-align: center;
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #000000 !important;
}

/* 경쟁자 분석 페이지의 메트릭 값들 */
.video-metrics .metric-value {
    color: #000000 !important;
    font-weight: bold;
}

.stat-number {
    color: #000000 !important;
    font-weight: bold;
}

/* AI 추천 제목 미리보기 */
.ai-suggestions-preview {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.ai-suggestions-preview.hidden {
    display: none;
}

.ai-suggestions-preview h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.suggestion-list {
    display: grid;
    gap: 1rem;
}

.preview-suggestion {
    background: white;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.preview-suggestion:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.preview-suggestion.selected {
    border-color: var(--success-color);
    background: #e8f5e8;
}

.preview-title {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    line-height: 1.4;
}

.preview-metrics {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.preview-metric {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.preview-metric.seo {
    background: #e3f2fd;
    color: #1565c0;
}

.preview-metric.ctr {
    background: #e8f5e8;
    color: #2e7d32;
}

.preview-metric.length {
    background: #fff3e0;
    color: #ef6c00;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.error {
    text-align: center;
    padding: 1rem;
    color: var(--danger-color);
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: var(--border-radius);
}

/* 경쟁자 분석 가이드 섹션 */
.competitor-guide-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin: 2rem 0;
}

.guide-header {
    text-align: center;
    margin-bottom: 3rem;
}

.guide-header h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.guide-header p {
    color: #666;
    font-size: 1.1rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.guide-card {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.guide-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.guide-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.guide-card h4 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.guide-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.guide-card li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.guide-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

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

.step {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-text {
    color: var(--secondary-color);
    line-height: 1.4;
}

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

.example-item {
    padding: 0.75rem;
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #666;
    line-height: 1.4;
}

.example-item strong {
    color: var(--primary-color);
}

/* 인기 채널 추천 섹션 */
.popular-channels-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 2px solid #dee2e6;
}

.popular-channels-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
}

.popular-channels-section > p {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

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

.channel-example {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.channel-example:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.channel-category {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.channel-info {
    margin-bottom: 1.5rem;
}

.channel-name {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.channel-id {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: #666;
    word-break: break-all;
}

.btn-analyze-sample {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    min-width: 120px;
}

.btn-analyze-sample:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* 모바일 최적화 - 향상된 반응형 디자인 */
@media (max-width: 768px) {
    /* 헤더 모바일 최적화 */
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 20px;
    }
    
    .header-content h1 {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .main-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* 본문 상단 여백 조정 */
    body {
        padding-top: 120px;
    }
    
    /* 컨테이너 조정 */
    .container {
        padding: 1rem 10px;
    }
    
    /* 탭 네비게이션 모바일 최적화 */
    .analysis-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .analysis-tab-btn {
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .analysis-tab-btn:first-child {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
    
    .analysis-tab-btn:last-child {
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        border-bottom: none;
    }
    
    /* 폼 최적화 */
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group {
        width: 100% !important;
    }
    
    .btn-large {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* 분석 액션 섹션 */
    .analysis-actions-section {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .analysis-actions-section .btn-large {
        min-width: auto;
    }
    
    /* 트렌드 정보 */
    .trend-info {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .trend-stat {
        padding: 1rem;
    }
    
    /* 키워드 정보 패널 */
    .keyword-metrics {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .keyword-metric {
        padding: 0.75rem;
    }
    
    /* 경쟁자 분석 */
    .competitor-video {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.75rem;
    }
    
    .video-rank {
        margin: 0 auto;
    }
    
    .video-metrics {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .video-metrics .metric {
        font-size: 0.75rem;
    }
    
    /* 제목 관련 */
    .title-metrics {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .title-suggestion {
        padding: 1rem;
    }
    
    .title-actions {
        justify-content: center;
        gap: 0.5rem;
    }
    
    /* 가이드 카드 */
    .guide-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .guide-card {
        padding: 1.5rem;
    }
    
    .guide-icon {
        font-size: 2.5rem;
    }
    
    /* 채널 예시 */
    .channel-examples {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .channel-example {
        padding: 1rem;
    }
    
    /* 푸터 최적화 */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    /* 텍스트 크기 조정 */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.1rem; }
    
    /* 터치 영역 확대 */
    .btn, .nav-link, .tab-btn, .analysis-tab-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* 작은 모바일 디바이스 (320px-480px) */
@media (max-width: 480px) {
    .header-content {
        padding: 0.75rem 15px;
    }
    
    .header-content h1 {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0.75rem 15px;
    }
    
    body {
        padding-top: 100px;
    }
    
    .main-nav {
        gap: 0.25rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* 더 작은 카드 */
    .guide-card, .channel-example, .title-suggestion {
        padding: 1rem;
    }
    
    /* 더 작은 폰트 */
    .guide-icon {
        font-size: 2rem;
    }
    
    /* 채널 ID 줄바꿈 */
    .channel-id {
        word-break: break-all;
        font-size: 0.8rem;
    }
    
    /* 메트릭 크기 조정 */
    .metric, .preview-metric {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* 태블릿 세로 모드 (768px-1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-content h1 {
        font-size: 1.6rem;
    }
    
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .channel-examples {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trend-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .keyword-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 가로 모드 모바일 */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        padding-top: 80px;
    }
    
    .header-content {
        flex-direction: row;
        padding: 0.75rem 20px;
    }
    
    .header-content h1 {
        font-size: 1.2rem;
    }
    
    .main-nav {
        width: auto;
    }
    
    .analysis-tabs {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .analysis-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .analysis-tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* 고해상도 디스플레이 최적화 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .guide-icon, .step-number, .video-rank {
        transform: translateZ(0);
        -webkit-font-smoothing: antialiased;
    }
}

/* 다크 모드 지원 - 부드럽고 자연스러운 색상 */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #ff6b6b;
        --secondary-color: #2c3e50;
        --light-color: #f8f9fa;
        --border-color: #dee2e6;
        --shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    body {
        background-color: #f5f7fa;
        color: #2c3e50;
    }
    
    .guide-card, .channel-example, .title-suggestion {
        background: #ffffff;
        border-color: #dee2e6;
        color: #2c3e50;
    }
    
    .guide-card h4 {
        color: #2c3e50;
    }
    
    .guide-card li {
        color: #666;
    }
    
    .step-text {
        color: #2c3e50;
    }
    
    .example-item {
        background: #ffffff;
        color: #666;
    }
    
    .example-item strong {
        color: #ff6b6b;
    }
    
    .guide-card p {
        color: #666;
    }
    
    /* 카드들을 깔끔한 흰색으로 유지 */
    .dashboard-card,
    .tab-container,
    .settings-card,
    .detailed-results,
    .title-suggestion,
    .competitor-video,
    .channel-example,
    .preview-suggestion {
        background: #ffffff;
        color: #2c3e50;
        border: 1px solid #dee2e6;
    }
    
    .dashboard-card h2,
    .title-suggestion h4,
    .competitor-video h4,
    .channel-example h4 {
        color: #2c3e50;
    }
    
    .input-section,
    .input-section-full {
        background: linear-gradient(135deg, #ffffff, #f8f9fa);
    }
    
    .tab-btn.active {
        background: #ffffff;
        color: #ff6b6b;
        border-bottom-color: #ff6b6b;
    }
    
    .analysis-tab-btn.active {
        background: #ffffff;
        color: #ff6b6b;
        border-bottom-color: #ff6b6b;
    }
    
    /* 폼 라벨은 자연스러운 어두운 색상 */
    .form-group label,
    .analysis-form .form-group label {
        color: #2c3e50;
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 포커스 가시성 개선 */
.btn:focus, .nav-link:focus, .analysis-tab-btn:focus, input:focus, textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

:root {
    --primary-color: #ff4444;
    --secondary-color: #333333;
    --accent-color: #007bff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - 100% 폭 */
.main-header {
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    color: white;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-container {
    width: 100%;
    padding: 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.main-nav {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
}

.nav-link.active {
    background: rgba(255,255,255,0.2);
    font-weight: 600;
}

/* 본문 상단 여백 조정 */
body {
    padding-top: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

/* Footer - 100% 폭 */
.main-footer {
    background: var(--dark-color);
    color: white;
    width: 100%;
    margin-top: 4rem;
}

.footer-container {
    width: 100%;
    padding: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info p {
    margin: 0.25rem 0;
    color: #ccc;
}

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

.footer-link {
    color: #ccc;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.footer-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

nav a:hover,
nav a.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.dashboard-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.feature-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

.feature-card:hover {
    background: linear-gradient(135deg, var(--accent-color), #0056b3);
    color: white;
    transform: scale(1.05);
    text-decoration: none;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-color), #0056b3);
    color: white;
    border-radius: var(--border-radius);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Activity List */
.activity-list {
    max-height: 200px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-type {
    font-weight: bold;
    color: var(--primary-color);
}

.activity-time {
    font-size: 0.9rem;
    color: #6c757d;
}

.no-activity {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem 0;
}

/* Guide List */
.guide-list {
    space-y: 1rem;
}

.guide-item {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.guide-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

/* Alerts */
.alert {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border-left: 4px solid;
}

.alert-warning {
    background: #fff3cd;
    border-color: var(--warning-color);
    color: #856404;
}

.alert-success {
    background: #d4edda;
    border-color: var(--success-color);
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-color: var(--danger-color);
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border-color: var(--info-color);
    color: #0c5460;
}

/* Setup Steps */
.setup-steps {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,68,68,0.3);
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background: var(--light-color);
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--border-color);
    text-decoration: none;
    color: var(--secondary-color);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
    text-decoration: none;
}

/* Forms */
.quick-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* Settings Specific Styles */
.settings-grid {
    display: grid;
    gap: 2rem;
}

.settings-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.settings-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 0.5rem;
}

.card-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.api-section {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.api-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.api-header h3 {
    color: var(--secondary-color);
    margin: 0;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-connected {
    background: #d4edda;
    color: #155724;
}

.status-disconnected {
    background: #f8d7da;
    color: #721c24;
}

.optional-badge {
    background: #e2e3e5;
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.form-help {
    margin-top: 0.5rem;
}

.form-help a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.form-help a:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Test Results */
.test-results {
    margin-bottom: 1.5rem;
}

.test-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.test-status {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.test-ready {
    background: #d4edda;
    color: #155724;
}

.test-not-ready {
    background: #f8d7da;
    color: #721c24;
}

.test-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

/* Security Info */
.security-info {
    margin-bottom: 1.5rem;
}

.security-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.security-item h4 {
    color: var(--success-color);
    margin-bottom: 0.25rem;
}

/* Guide Tabs */
.guide-tabs {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.guide-tab {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.guide-tab.active,
.guide-tab:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.guide-content {
    display: none;
}

.guide-content.active {
    display: block;
}

.guide-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.guide-content li {
    margin-bottom: 0.5rem;
}

.guide-note {
    background: #e7f3ff;
    border-left: 4px solid var(--info-color);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    width: 100%;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Tab Container Styles */
.tab-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.tab-navigation {
    display: flex;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #6c757d;
    min-width: 200px;
    justify-content: center;
}

.tab-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    color: var(--primary-color);
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-icon {
    font-size: 1.2rem;
}

.tab-text {
    font-weight: inherit;
}

.tab-content {
    display: none;
    padding: 0;
}

.tab-content.active {
    display: block;
}

.tab-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.tab-layout-full {
    display: block;
    width: 100%;
}

.input-section {
    padding: 2rem;
    border-right: 1px solid var(--border-color);
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.input-section-full {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-bottom: 1px solid var(--border-color);
}

.form-row {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.flex-grow {
    flex: 1;
}

.results-section-full {
    padding: 2rem;
    background: #fafbfc;
}

.result-summary {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.summary-item {
    padding: 0.5rem 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 0.9rem;
}

/* 분석 테이블 스타일 */
.metrics-table {
    margin: 2rem 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.analysis-table thead {
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    color: white;
}

.analysis-table th,
.analysis-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.analysis-table th {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analysis-table tbody tr:hover {
    background: rgba(255, 68, 68, 0.05);
}

.analysis-table tbody tr:last-child td {
    border-bottom: none;
}

/* 레벨 배지 */
.level-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-badge.low {
    background: #d4edda;
    color: #155724;
}

.level-badge.medium {
    background: #fff3cd;
    color: #856404;
}

.level-badge.high {
    background: #f8d7da;
    color: #721c24;
}

/* 추가 결과 그리드 */
.additional-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.additional-results-grid .dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* 테스트 API 페이지 링크 */
.api-test-link {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
    z-index: 1000;
    transition: var(--transition);
    font-weight: 500;
}

.api-test-link:hover {
    background: #ff6b6b;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

.result-section {
    padding: 2rem;
    background: #fafbfc;
    overflow-y: auto;
    max-height: 600px;
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.result-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.result-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-placeholder {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.result-placeholder h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.result-placeholder p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.feature-list li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #495057;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    margin-top: 1rem;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

/* Enhanced Form Styles */
.analysis-form .form-group {
    margin-bottom: 1.5rem;
}

.analysis-form .form-group label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.analysis-form input,
.analysis-form select,
.analysis-form textarea {
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: white;
}

.analysis-form input:focus,
.analysis-form select:focus,
.analysis-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
    outline: none;
}

.analysis-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Enhanced Alert Styles */
.alert {
    margin: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .quick-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .guide-tabs {
        flex-direction: column;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    nav {
        flex-direction: column;
        align-items: center;
    }
    
    /* Tab Responsive */
    .tab-layout {
        grid-template-columns: 1fr;
    }
    
    .input-section {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .result-section {
        max-height: none;
    }
    
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .result-summary {
        gap: 1rem;
    }
    
    .analysis-table {
        font-size: 0.85rem;
    }
    
    .analysis-table th,
    .analysis-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .tab-btn {
        min-width: auto;
        padding: 1rem;
        flex: 1;
    }
    
    .tab-text {
        display: none;
    }
    
    .tab-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .dashboard-card,
    .settings-card {
        padding: 1rem;
    }
    
    .api-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .input-section,
    .result-section {
        padding: 1rem;
    }
    
    .result-placeholder {
        padding: 2rem 1rem;
    }
    
    .placeholder-icon {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
}