/* Base styles */
:root {
    --primary-color: #1428a0; /* Samsung blue */
    --secondary-color: #75b7e7; /* Lighter blue */
    --accent-color: #34c759; /* Green for positive indicators */
    --warning-color: #ff3b30; /* Red for negative indicators */
    --neutral-color: #ffcc00; /* Yellow for neutral indicators */
    --text-color: #333;
    --light-text: #666;
    --background-color: #fff;
    --light-background: #f8f9fa;
    --border-color: #e1e4e8;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    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: var(--background-color);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: white;
}

.logo h2 {
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:hover {
    color: rgba(255, 255, 255, 0.8);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--neutral-color);
}

.mobile-menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

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

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: normal;
}

.recommendation-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.recommendation-badge.neutral {
    background-color: var(--neutral-color);
    color: var(--text-color);
}

.recommendation-badge.positive {
    background-color: var(--accent-color);
    color: white;
}

.recommendation-badge.negative {
    background-color: var(--warning-color);
    color: white;
}

.date {
    font-style: italic;
    opacity: 0.8;
}

/* Key Metrics Section */
.key-metrics {
    padding: 3rem 0;
    background-color: var(--light-background);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.metric-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.metric-card h3 {
    font-size: 1rem;
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Executive Summary Section */
.executive-summary {
    padding: 3rem 0;
}

/* Report Sections */
.report-sections {
    padding: 3rem 0;
    background-color: var(--light-background);
}

.section-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.section-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-card h3 {
    margin-bottom: 0.5rem;
}

.section-card p {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Key Visualizations Section */
.key-visualizations {
    padding: 3rem 0;
}

.visualization-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-button {
    background: none;
    border: none;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

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

.visualization-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.visualization-card h3 {
    margin-bottom: 1rem;
    text-align: center;
}

.visualization-card img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

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

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: var(--primary-color);
        padding: 2rem;
        transition: right 0.3s ease;
        z-index: 200;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 1rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .visualization-grid {
        grid-template-columns: 1fr;
    }
}

/* Section-specific styles */
.section-header {
    background-color: var(--light-background);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.section-header h1 {
    font-size: 2rem;
}

.content-section {
    padding: 2rem 0;
}

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

.content-card h2 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .two-column {
        grid-template-columns: 1fr;
    }
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--light-background);
    font-weight: bold;
}

tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* List styles */
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Chart container */
.chart-container {
    width: 100%;
    height: 400px;
    margin-bottom: 2rem;
}

/* Strengths and weaknesses */
.strengths-weaknesses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.strengths, .weaknesses {
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.strengths {
    background-color: rgba(52, 199, 89, 0.1);
    border-left: 4px solid var(--accent-color);
}

.weaknesses {
    background-color: rgba(255, 59, 48, 0.1);
    border-left: 4px solid var(--warning-color);
}

@media (max-width: 768px) {
    .strengths-weaknesses {
        grid-template-columns: 1fr;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top i {
    font-size: 1.2rem;
}
