/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --text-color: #333;
    --light-text: #7f8c8d;
    --border-color: #ddd;
    --highlight-bg: #e8f4f8;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
}

* {
    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 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

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

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

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

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

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

.subtitle {
    color: var(--light-color);
    font-size: 1.2rem;
    font-weight: 300;
}

/* Navigation */
nav {
    background-color: var(--dark-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

nav li {
    margin: 0 1rem;
}

nav a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

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

section {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.highlight {
    background-color: var(--highlight-bg);
    border-left: 4px solid var(--secondary-color);
}

/* Charts */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-container {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    min-height: 400px;
}

.chart-container h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.full-width {
    grid-column: 1 / -1;
}

/* Key Findings */
.key-findings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.finding {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.finding h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.finding p {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* Competitors List */
.competitors-list {
    list-style: none;
    margin: 1.5rem 0;
}

.competitors-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.competitors-list li:last-child {
    border-bottom: none;
}

/* Analysis Text */
.analysis-text {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

/* Reviews */
.reviews-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-stat {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}

.stars {
    color: var(--warning-color);
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.review-quotes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-quote {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}

.review-quote blockquote {
    font-style: italic;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.review-quote blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--light-text);
    position: absolute;
    left: -0.5rem;
    top: -1rem;
}

.review-quote cite {
    display: block;
    text-align: right;
    font-weight: 500;
    color: var(--light-text);
}

/* Differentiators */
.differentiators {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

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

th {
    background-color: var(--highlight-bg);
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

td ul {
    margin-left: 1.5rem;
}

/* Positioning */
.positioning ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

/* Recommendations */
.recommendations-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.recommendation {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

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

.recommendation h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.5rem 0;
    }
    
    .key-findings {
        grid-template-columns: 1fr;
    }
    
    .recommendations-container {
        grid-template-columns: 1fr;
    }
}