/* ===== RESET & BASE STYLES ===== */
.analysis-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    /* background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */
    min-height: 100vh;
}

/* ===== HEADER & SYMBOL INFO ===== */
.analysis-header {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.analysis-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

.symbol-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.symbol-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.symbol-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00b09b, #96c93d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.symbol-details h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
}

.symbol-details .subtitle {
    margin: 5px 0 0;
    opacity: 0.9;
    font-size: 16px;
}

.price-info {
    text-align: right;
}

.current-price {
    font-size: 36px;
    font-weight: 800;
    margin: 0;
}

.price-change {
    font-size: 20px;
    font-weight: 600;
    margin: 5px 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.price-change.positive {
    color: #10b981;
}

.price-change.negative {
    color: #ef4444;
}

/* ===== ANALYSIS SECTIONS ===== */
.analysis-section {
    /* background: white; */
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 6px solid #4a6491;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.analysis-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.analysis-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4a6491, #00b09b);
}

.analysis-section h3 {
    color: #2455c2;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eef2f7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analysis-section h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4a6491;
    border-radius: 50%;
    display: inline-block;
}

/* ===== CONTENT STYLING ===== */
.section-content {
    font-size: 16px;
}

.section-content p {
    margin-bottom: 15px;
    color: #4b5563;
}

.section-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.data-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.data-point {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #4a6491;
}

.data-point-label {
    font-weight: 600;
    color: #4a6491;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.data-point-value {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

/* ===== SUPPORT/RESISTANCE LEVELS ===== */
.levels-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.level-group {
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.level-group h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.level-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.level-item:last-child {
    border-bottom: none;
}

.level-name {
    font-weight: 600;
    color: #4b5563;
}

.level-price {
    font-weight: 700;
    font-size: 18px;
    color: #2c3e50;
}

.level-strength {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.strength-strong {
    background: #d1fae5;
    color: #065f46;
}

.strength-medium {
    background: #fef3c7;
    color: #92400e;
}

.strength-weak {
    background: #fee2e2;
    color: #991b1b;
}

/* ===== RISK/REWARD METRICS ===== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.metric-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: #4a6491;
    transform: translateY(-2px);
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    color: #2c3e50;
    margin: 10px 0;
}

.metric-label {
    font-size: 14px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== SUMMARY SECTION ===== */
.analysis-summary {
    background: linear-gradient(135deg, #2c3e50, #1a2530);
    color: white;
    border-radius: 15px;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.analysis-summary::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

.analysis-summary h3 {
    color: white;
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
}

.recommendation-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.2);
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.action-badge {
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-buy {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.badge-sell {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.badge-hold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.badge-limited {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.confidence-level {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
}

.confidence-high { color: #34d399; }
.confidence-medium { color: #fbbf24; }
.confidence-low { color: #f87171; }

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

.detail-item {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4a6491;
}

.detail-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

/* ===== COLOR CODING ===== */
.bullish {
    color: #10b981 !important;
}

.bearish {
    color: #ef4444 !important;
}

.positive-bg {
    background: #d1fae5 !important;
    color: #065f46 !important;
}

.negative-bg {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .analysis-container {
        padding: 15px;
    }
    
    .symbol-info {
        flex-direction: column;
        text-align: center;
    }
    
    .price-info {
        text-align: center;
    }
    
    .analysis-section, .analysis-summary {
        padding: 20px;
    }
    
    .analysis-section h3, .analysis-summary h3 {
        font-size: 20px;
    }
    
    .levels-container {
        grid-template-columns: 1fr;
    }
    
    .data-points {
        grid-template-columns: 1fr;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analysis-section, .analysis-summary {
    animation: fadeIn 0.6s ease-out;
}

/* ===== CUSTOM SCROLLBAR ===== */
.analysis-container::-webkit-scrollbar {
    width: 8px;
}

.analysis-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.analysis-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4a6491, #00b09b);
    border-radius: 4px;
}

.analysis-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3a5481, #009988);
}

/* ===== PRINT STYLES ===== */
@media print {
    .analysis-container {
        background: white !important;
        padding: 0 !important;
    }
    
    .analysis-section, .analysis-summary {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }
    
    .analysis-summary {
        background: white !important;
        color: black !important;
    }
}