/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --border-radius: 5px;
    --box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

a:hover {
    color: var(--accent-color);
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Navigation */
nav {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    padding: 1rem;
}

nav a {
    font-weight: 500;
    transition: color 0.3s;
}

/* Main Content */
main {
    padding: 2rem 0;
}

section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

section h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Overview Stats */
.overview-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.stat-box {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 1.5rem;
    margin: 0.5rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.stat-box i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.stat-box h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* Charts */
.chart-container {
    height: 300px;
    margin-bottom: 2rem;
}

/* Ranking Lists */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rank-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    transition: transform 0.3s;
}

.rank-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.rank {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.details {
    flex: 1;
}

.details h3 {
    margin-bottom: 0.3rem;
}

.percentage {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.details ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.details li {
    margin-bottom: 0.3rem;
}

/* Qualitative Grid */
.qualitative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.qual-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    transition: transform 0.3s;
}

.qual-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.qual-rank {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.qual-name {
    font-weight: 500;
}

/* Insights */
.insights-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.insight-card {
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.insight-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Outlook */
.outlook-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.outlook-item {
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

.outlook-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.outlook-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Sources */
.sources-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.sources-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .overview-stats {
        flex-direction: column;
    }
    
    .stat-box {
        margin-bottom: 1rem;
    }
    
    .insights-container,
    .outlook-container {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        padding: 0.5rem;
    }
    
    .rank-item {
        flex-direction: column;
    }
    
    .rank {
        margin-bottom: 1rem;
    }
    
    .qualitative-grid {
        grid-template-columns: 1fr;
    }
}
