/* Custom styles for Xiaomi Analysis Website */

:root {
    --primary-color: #ff6700;
    --secondary-color: #2d2d2d;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-gray);
    padding-top: 56px;
}

/* Navigation */
.navbar {
    background-color: var(--secondary-color) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/xiaomi_background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 80px;
    margin-bottom: 40px;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-section h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.hero-section .lead {
    font-size: 1.4rem;
    background-color: rgba(255, 103, 0, 0.8);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Section Styling */
.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

section {
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

/* Cards */
.card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    font-weight: 600;
}

.summary-card {
    background-color: var(--light-gray);
}

.projection-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

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

.projection-item span {
    color: var(--dark-gray);
}

.projection-item strong {
    font-weight: 700;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

/* Business Model Section */
.business-card {
    text-align: center;
}

.business-card .card-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

.business-card ul {
    text-align: left;
    padding-left: 20px;
}

.advantage-item {
    margin-bottom: 25px;
}

.advantage-item h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.financial-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
}

.highlight-item {
    flex: 1;
    min-width: 200px;
    background-color: var(--light-gray);
    padding: 20px;
    margin: 10px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.highlight-label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.highlight-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.highlight-desc {
    display: block;
    font-size: 0.9rem;
    color: #777;
}

/* Risks and Opportunities */
.risk-item, .opportunity-item {
    margin-bottom: 20px;
}

.risk-item h5, .opportunity-item h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.risk-item ul, .opportunity-item ul {
    padding-left: 20px;
}

/* Geopolitical Section */
.geo-item {
    margin-bottom: 25px;
}

.geo-item h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 15px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Projections Section */
.chart-container {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.scenario-card {
    text-align: center;
}

.scenario-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.scenario-return {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.scenario-cagr {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

.bullish .scenario-price, .bullish .scenario-return {
    color: var(--success-color);
}

.bearish .scenario-price, .bearish .scenario-return {
    color: var(--danger-color);
}

.base .scenario-price, .base .scenario-return {
    color: var(--primary-color);
}

/* Conclusion Section */
.final-summary {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-label {
    font-weight: 600;
}

.summary-value {
    font-weight: 700;
}

.recommendation {
    color: var(--success-color);
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 40px 0;
}

footer h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.4rem;
    }
    
    .financial-highlights {
        flex-direction: column;
    }
    
    .highlight-item {
        margin: 5px 0;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}
