/* Main Styles for Shopify Analytics Single Page Website */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

section {
    border-radius: 8px;
    padding: 20px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #0d6efd;
}

/* Header Styles */
header {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stat-item {
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-right: 10px;
}

.stat-value {
    font-weight: 700;
    font-size: 1.2rem;
}

/* KPI Cards */
.kpi-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
}

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

.kpi-card .card-title {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.kpi-card .card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 0.25rem;
}

.kpi-card .card-subtitle {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Chart Containers */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Recommendation Cards */
.recommendation-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.recommendation-card .card-header {
    border-radius: 10px 10px 0 0;
}

.recommendation-card h5 {
    color: #0d6efd;
    margin-bottom: 1rem;
}

.recommendation-card ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.recommendation-card li {
    margin-bottom: 0.5rem;
}

.impact-box {
    background-color: #e8f4fe;
    border-left: 4px solid #0d6efd;
    padding: 15px;
    border-radius: 4px;
}

/* Roadmap Styles */
.roadmap {
    position: relative;
}

.roadmap-phase {
    margin-bottom: 30px;
    border-left: 2px solid #dee2e6;
    padding-left: 30px;
    position: relative;
}

.roadmap-phase:last-child {
    margin-bottom: 0;
}

.phase-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.phase-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    position: absolute;
    left: -16px;
}

.phase-header h5 {
    margin-bottom: 0;
    margin-left: 20px;
    color: #2c3e50;
}

.phase-content {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.total-impact {
    margin-top: 10px;
    font-weight: 500;
    color: #0d6efd;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .chart-container {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .chart-container {
        height: 200px;
    }
    
    .header-stats {
        align-items: flex-start;
        margin-top: 15px;
    }
    
    .roadmap-phase {
        padding-left: 20px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .chart-container {
        height: 180px;
    }
}
