/**
 * RSS Curator Pro 公開側スタイル
 */

/* レーダーチャートコンテナ */
.rss-curator-radar-chart-container {
    float: right;
    max-width: 350px;
    margin: 0 0 20px 20px;
}

@media (max-width: 768px) {
    .rss-curator-radar-chart-container {
        float: none;
        max-width: 100%;
        margin: 20px auto;
    }
}

/* レーダーチャートカード */
.radar-chart-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.radar-chart-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* チャートヘッダー */
.chart-header {
    text-align: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

/* 総合スコア表示 */
.total-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.grade {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
}

.grade-a { background: linear-gradient(135deg, #4caf50, #45a049); }
.grade-b { background: linear-gradient(135deg, #2196f3, #1976d2); }
.grade-c { background: linear-gradient(135deg, #ff9800, #f57c00); }
.grade-d { background: linear-gradient(135deg, #ff5722, #d84315); }
.grade-e { background: linear-gradient(135deg, #f44336, #c62828); }

/* スコア詳細 */
.score-details {
    text-align: left;
}

.stars {
    font-size: 20px;
    color: #ddd;
    margin-bottom: 5px;
}

.stars .star.filled {
    color: #ffd700;
}

.score-number {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* チャートボディ */
.chart-body {
    margin: 20px 0;
    text-align: center;
}

#rss-curator-radar-chart {
    max-width: 100%;
    height: auto;
}

/* チャートフッター */
.chart-footer {
    text-align: center;
    margin-top: 20px;
}

.detail-button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.detail-button:hover {
    background: #135e96;
}

/* 要約セクション */
.rss-curator-summary {
    background: #f8f9fa;
    border-left: 4px solid #2271b1;
    padding: 20px;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

/* 元記事リンク */
.rss-curator-source-link {
    clear: both;
    text-align: center;
    margin: 30px 0;
}

.rss-curator-source-button {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.rss-curator-source-button:hover {
    background: #135e96;
    color: #fff;
}

/* モーダル */
.rss-curator-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rss-curator-modal .modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.rss-curator-modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.rss-curator-modal .close:hover,
.rss-curator-modal .close:focus {
    color: #000;
}

/* スコア詳細グリッド */
.score-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.score-detail-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.score-detail-item h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.score-value {
    font-size: 24px;
    font-weight: bold;
    color: #2271b1;
    margin-bottom: 10px;
}

.score-value .score {
    font-size: 32px;
}

.score-reason {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 総合評価サマリー */
.total-score-summary {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.total-score-summary h4 {
    margin: 0 0 10px 0;
    color: #1976d2;
}

.total-score-summary p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .score-details-grid {
        grid-template-columns: 1fr;
    }
    
    .total-score {
        flex-direction: column;
        gap: 15px;
    }
    
    .rss-curator-modal .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
}