/* signals.css - シグナルページ専用スタイル（サイトレイアウト統合版） */

/* ページヘッダーの拡張 */
#signals-page .page-header {
    position: relative;
    text-align: center;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #0a1628;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    margin-top: 1rem;
}

.lock-icon::before {
    content: "🔒";
    font-size: 1rem;
}

/* 免責事項ボックス */
.disclaimer-box {
    background: #f8f9fa;
    border: 1px solid #1a73e8;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.disclaimer-box.critical {
    border: 2px solid #ea4335;
    background: linear-gradient(to right, rgba(234, 67, 53, 0.02), rgba(234, 67, 53, 0.05));
}

.disclaimer-box h4 {
    color: #ea4335;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
}

.warning-icon::before {
    content: "⚠️";
    font-size: 1.25rem;
}

.disclaimer-box p {
    color: #5f6368;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}

.disclaimer-box p:last-child {
    margin-bottom: 0;
}

/* シグナル説明セクション */
.signal-explanation {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.signal-explanation h2 {
    color: #202124;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.75rem;
}

.explanation-content > p {
    color: #5f6368;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.signal-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.signal-type {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.signal-type:hover {
    border-color: #1a73e8;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.1);
}

.signal-type h3 {
    color: #1a73e8;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
}

.signal-type p {
    color: #5f6368;
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* シグナルアイコン */
.signal-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
}

.reversal-icon::before {
    content: "🔄";
}

.volatility-icon::before {
    content: "📊";
}

.momentum-icon::before {
    content: "🚀";
}

/* 市場セクション */
.market-sections {
    margin-bottom: 3rem;
}

.market-sections .section-title {
    color: #202124;
    font-size: 1.5rem;
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}

/* シグナルコンテナ */
.signal-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* シグナルカード */
.signal-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.signal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* カードヘッダー */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.market-name {
    color: #202124;
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
}

.market-price {
    text-align: right;
}

.current-price {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: #202124;
}

.price-change {
    font-size: 0.875rem;
    font-weight: 500;
}

.price-change.positive {
    color: #34a853;
}

.price-change.negative {
    color: #ea4335;
}

/* チャートコンテナ */
.chart-container {
    height: 250px;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* シグナルサマリー */
.signal-summary {
    margin-bottom: 1rem;
}

.signal-summary h4 {
    color: #202124;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.recent-signals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.signal-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 0.8125rem;
    color: #5f6368;
}

.signal-item.reversal {
    border-color: #ea4335;
    background: rgba(234, 67, 53, 0.05);
}

.signal-item.volatility {
    border-color: #fbbc04;
    background: rgba(251, 188, 4, 0.05);
}

.signal-item.momentum {
    border-color: #34a853;
    background: rgba(52, 168, 83, 0.05);
}

/* シグナル分析 */
.signal-analysis {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
}

.signal-analysis h4 {
    color: #1a73e8;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.analysis-text {
    color: #5f6368;
    line-height: 1.6;
    font-size: 0.875rem;
    margin: 0;
}

/* シグナル履歴セクション */
.signal-history {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.signal-history .section-title {
    text-align: center;
    margin-bottom: 2rem;
}

#signalHistoryContainer {
    max-width: 900px;
    margin: 0 auto;
}

.history-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 履歴アイテム */
.history-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.history-item:hover {
    border-color: #1a73e8;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.1);
}

.history-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.history-date {
    color: #5f6368;
    font-size: 0.875rem;
}

.history-market {
    color: #202124;
    font-weight: 600;
    font-size: 1.125rem;
}

.signal-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.signal-badge.reversal {
    background: #ea4335;
}

.signal-badge.volatility {
    background: #fbbc04;
    color: #202124;
}

.signal-badge.momentum {
    background: #34a853;
}

/* 履歴コンテンツ */
.history-content {
    color: #5f6368;
}

.history-content p {
    margin: 0.75rem 0;
}

.history-content strong {
    color: #202124;
}

.history-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
    list-style-type: disc;
}

.history-content li {
    margin: 0.25rem 0;
    color: #5f6368;
}

.advice {
    background: #e8f0fe;
    border-left: 4px solid #1a73e8;
    padding: 1rem;
    border-radius: 4px;
    color: #202124;
    font-style: normal;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* レスポンシブデザイン */
@media (max-width: 1200px) {
    .signal-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .signal-types {
        grid-template-columns: 1fr;
    }
    
    .signal-container {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .market-price {
        text-align: left;
    }
    
    .recent-signals {
        grid-template-columns: 1fr;
    }
    
    .history-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chart-container {
        height: 200px;
    }
}

/* チャートのカスタマイズ */
canvas {
    max-width: 100%;
    height: 100% !important;
}

/* アニメーション */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.signal-badge {
    animation: pulse 2s infinite;
}

/* 印刷対応 */
@media print {
    .premium-badge,
    .disclaimer-box {
        display: none;
    }
    
    .signal-card,
    .history-item {
        break-inside: avoid;
    }
}