/**
 * Trust Features Styles
 * Styles for prediction reasoning, buy score, and market condition components
 * v1.0.0
 */

/* ========== DISCLAIMER BANNER ========== */
.disclaimer-banner {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.disclaimer-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.disclaimer-banner p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========== PREDICTION REASONING ========== */
.reasoning-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reasoning-header h3 {
    margin: 0;
    color: var(--text-primary, #fff);
}

.confidence-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.reasoning-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color, #3b82f6);
}

.reasoning-summary p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-primary, #fff);
}

.reasoning-factors h4 {
    margin-bottom: 1rem;
    color: var(--text-primary, #fff);
}

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

.factor-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.factor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.factor-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.factor-content {
    flex: 1;
}

.factor-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #fff);
}

.factor-detail {
    font-size: 0.9rem;
    color: var(--text-muted, rgba(255, 255, 255, 0.7));
    line-height: 1.4;
}

/* ========== BUY SCORE CARD ========== */
.buy-score-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.score-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary, #fff);
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.score-max {
    font-size: 1rem;
    opacity: 0.8;
}

.score-label {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
}

/* Factors Breakdown */
.factors-breakdown {
    margin-top: 2rem;
}

.factors-breakdown h4 {
    margin-bottom: 1rem;
    color: var(--text-primary, #fff);
}

.factors-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.factor-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

.factor-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.factor-name {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.factor-points {
    font-weight: 600;
    color: var(--text-muted, rgba(255, 255, 255, 0.7));
}

.factor-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.factor-fill {
    height: 100%;
    transition: width 0.6s ease;
}

.factor-detail {
    font-size: 0.9rem;
    color: var(--text-muted, rgba(255, 255, 255, 0.7));
}

/* ========== MARKET CONDITION CARD ========== */
.market-condition-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.market-condition-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-primary, #fff);
}

.condition-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Educational Section */
.educational-section {
    margin-bottom: 2rem;
}

.educational-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary, #fff);
}

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

.educational-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
}

.edu-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.edu-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #fff);
}

.edu-text {
    font-size: 0.9rem;
    color: var(--text-muted, rgba(255, 255, 255, 0.7));
    line-height: 1.4;
}

/* Risk Warnings Section */
.risk-warnings-section {
    margin-bottom: 2rem;
}

.risk-warnings-section h4 {
    margin-bottom: 1rem;
    color: #e74c3c;
}

.warnings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.warning-card {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    padding: 1rem;
    border-radius: 4px;
    display: flex;
    gap: 1rem;
    align-items: start;
}

.warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-content {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary, #fff);
}

/* Considerations Section */
.considerations-section {
    margin-bottom: 2rem;
}

.considerations-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary, #fff);
}

.considerations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.considerations-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
    align-items: start;
}

.consideration-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Strategies Section */
.strategies-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary, #fff);
}

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

.strategy-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.strategy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.strategy-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color, #3b82f6);
}

.strategy-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--text-primary, #fff);
}

.strategy-suitable {
    font-size: 0.85rem;
    color: var(--text-muted, rgba(255, 255, 255, 0.7));
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {

    .factors-grid,
    .educational-grid,
    .strategies-grid {
        grid-template-columns: 1fr;
    }

    .score-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .disclaimer-banner {
        flex-direction: column;
        text-align: center;
    }
}