/* YouTube Helper - 메인 CSS */

/* 새 페이지들을 위한 추가 스타일 - 설정 페이지와 동일한 디자인 */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    margin-top: 0;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.analysis-container {
    max-width: 1000px;
    margin: 0 auto;
}

.input-section,
.api-key-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.flex-grow {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-row .form-group label {
    margin-bottom: 8px;
    margin-top: 0;
    height: 20px;
    line-height: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-help {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

.form-actions {
    text-align: center;
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.form-row .form-group button,
.form-row .btn[type="submit"],
.form-row .btn-primary,
.form-row button {
    margin-top: 22px !important;
    margin-bottom: 17px !important;
}

.form-row .form-group {
    margin-bottom: 0;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

.guide-section {
    margin-bottom: 20px;
}

.guide-header {
    text-align: center;
    margin-bottom: 30px;
}

.guide-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

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

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.guide-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.guide-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.guide-card h4 {
    color: #2c3e50;
    margin: 15px 0;
}

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

.guide-card li {
    padding: 5px 0;
    color: #7f8c8d;
}

.results-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.result-header h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-danger {
    background-color: #fdf2f2;
    border-color: #e74c3c;
    color: #c0392b;
}

.alert-warning {
    background-color: #fef9e7;
    border-color: #f39c12;
    color: #d68910;
}

.alert-info {
    background-color: #eaf4fd;
    border-color: #3498db;
    color: #2980b9;
}

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

.status-indicator {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.status-ready {
    background: #d5f4e6;
    color: #27ae60;
}

.status-missing {
    background: #fadbd8;
    color: #e74c3c;
}

/* 키워드 분석 결과 스타일 */
.keyword-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.keyword-table th,
.keyword-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.keyword-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.keyword-section {
    margin-bottom: 30px;
}

.keyword-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.seo-score {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.seo-score.high {
    background: #d5f4e6;
    color: #27ae60;
}

.seo-score.medium {
    background: #fef9e7;
    color: #f39c12;
}

.seo-score.low {
    background: #fadbd8;
    color: #e74c3c;
}

/* 제목 최적화 결과 스타일 */
.title-optimization-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.optimized-title-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #3498db;
}

.title-rank-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}

.title-text-display {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 10px 0;
    line-height: 1.4;
}

.title-meta-info {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 12px;
    color: #7f8c8d;
}

/* AI 키워드 생성 결과 스타일 */
.keyword-category {
    margin-bottom: 25px;
}

.category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

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

.keyword-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.keyword-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.copy-button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background: #229954;
}

/* 경쟁자 분석 결과 스타일 */
.competitor-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.info-value {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.info-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    font-weight: 600;
}

.video-list {
    margin-top: 20px;
}

.video-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    align-items: center;
}

.video-thumbnail {
    width: 120px;
    height: 68px;
    border-radius: 6px;
    object-fit: cover;
}

.video-details {
    flex: 1;
}

.video-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.3;
}

.video-stats {
    font-size: 12px;
    color: #7f8c8d;
    display: flex;
    gap: 15px;
}

/* 키워드 정보 섹션 간격 */
.keyword-info .stat-item {
    margin-bottom: 5px;
}

.keyword-info .stat-item:last-child {
    margin-bottom: 0;
}

/* 빠른 키워드 예시 스타일 */
.quick-keywords {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.quick-keywords h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.keyword-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.keyword-example {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.keyword-example:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* 푸터 스타일 */
.main-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-top: 40px;
    padding: 20px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p {
    margin: 5px 0;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.footer-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* 반응형 */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
}

/* 경쟁자 분석 페이지 전용 스타일 - 메트릭 값들을 검은색으로 */
.metric-value {
    color: #000000 !important;
    font-weight: bold !important;
}

.video-metrics .metric-value {
    color: #000000 !important;
    font-weight: bold !important;
}

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

/* 영상 제목도 검은색으로 */
.video-title a,
.video-title-link {
    color: #000000 !important;
}

/* 구체적인 경쟁자 분석 결과 페이지 스타일 */
.results-section .metric-value,
.results-grid .metric-value,
.dashboard-card .metric-value {
    color: #000000 !important;
    font-weight: bold !important;
}
