/* Well-Architected Framework Calculator Styles */

/* Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: #e2e8f0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    margin: 0;
    padding: 0;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 5rem 0 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Navigation Tabs */
.nav-tabs {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 60px;
    z-index: 100;
}

.nav-tabs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 2rem;
    overflow-x: auto;
}

.nav-tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--gray);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-tab:hover {
    color: var(--primary);
}

.nav-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.section h3 {
    color: var(--secondary);
    margin: 2rem 0 1rem;
    font-size: 1.3rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-info {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

/* Pillar Cards */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.pillar-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pillar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.pillar-card.active {
    background: #f0f9ff;
    border-color: var(--primary);
}

.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.pillar-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

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

/* Questions */
.question-group {
    margin-bottom: 2rem;
}

.question {
    background: var(--light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.question-text {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 500;
}

.rating-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rating-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-btn:hover {
    background: #f0f9ff;
    border-color: var(--primary);
    color: var(--primary);
}

.rating-btn.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dashboard-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Score Chart */
.score-chart {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 1rem;
    background: var(--light);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.score-bar {
    width: 60px;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.score-bar:hover {
    transform: translateY(-5px);
}

.score-value {
    position: absolute;
    top: -30px;
    font-weight: bold;
    color: var(--primary);
}

.score-label {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* Maturity Levels */
.maturity-scale {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--light);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.maturity-level {
    flex: 1;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid var(--border);
    margin: 0 0.25rem;
}

.maturity-level.active {
    background: var(--primary);
    transform: scale(1.05);
    color: white;
    border-color: var(--primary);
}

.maturity-level h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.maturity-level .score-range {
    font-size: 0.8rem;
    color: var(--gray);
}

.maturity-level.active .score-range {
    color: rgba(255, 255, 255, 0.9);
}

/* Roadmap */
.roadmap-timeline {
    position: relative;
    padding: 2rem 0;
}

.roadmap-line {
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
}

.roadmap-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2rem;
}

.roadmap-marker {
    position: absolute;
    left: 20px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.roadmap-content {
    background: var(--light);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.roadmap-content h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.roadmap-content .timeline {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

/* Best Practices */
.best-practices {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.practice-item {
    background: var(--light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--success);
}

.practice-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.practice-item ul {
    margin-left: 1.5rem;
    color: var(--gray);
}

/* Results */
.results-summary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid var(--primary);
}

.overall-score {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.score-interpretation {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
}

/* Export Options */
.export-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.export-btn {
    padding: 0.75rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.export-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-tabs-container {
        padding: 0 1rem;
    }

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