/* Vision to Execution Framework - Styles */

:root {
    --primary: rgb(30, 75, 105);
    --accent: rgb(70, 180, 200);
    --bg: #f5f7fa;
    --font: 'Segoe UI', system-ui, sans-serif;

    --vision: #7c3aed;
    --vision-light: #ede9fe;
    --strategy: #3b82f6;
    --strategy-light: #dbeafe;
    --roadmap: #22c55e;
    --roadmap-light: #dcfce7;
    --execution: #f59e0b;
    --execution-light: #fef3c7;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

h1 {
    text-align: center;
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.subtitle {
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.framework {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Level cards */
.level {
    position: relative;
    border-radius: 12px;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.level:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.level.expanded {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.level-vision {
    width: 100%;
    background: var(--vision-light);
    border-color: var(--vision);
}

.level-strategy {
    width: 88%;
    background: var(--strategy-light);
    border-color: var(--strategy);
}

.level-roadmap {
    width: 76%;
    background: var(--roadmap-light);
    border-color: var(--roadmap);
}

.level-execution {
    width: 64%;
    background: var(--execution-light);
    border-color: var(--execution);
}

.level-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
}

.level-vision .level-badge { background: var(--vision); }
.level-strategy .level-badge { background: var(--strategy); }
.level-roadmap .level-badge { background: var(--roadmap); }
.level-execution .level-badge { background: var(--execution); }

.level-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.level-icon {
    font-size: 1.3rem;
}

.level-vision .level-icon { color: var(--vision); }
.level-strategy .level-icon { color: var(--strategy); }
.level-roadmap .level-icon { color: var(--roadmap); }
.level-execution .level-icon { color: var(--execution); }

.level-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    flex: 1;
}

.level-vision .level-header h2 { color: var(--vision); }
.level-strategy .level-header h2 { color: var(--strategy); }
.level-roadmap .level-header h2 { color: #16a34a; }
.level-execution .level-header h2 { color: #d97706; }

.timeframe {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    color: white;
}

.level-vision .timeframe { background: var(--vision); }
.level-strategy .timeframe { background: var(--strategy); }
.level-roadmap .timeframe { background: var(--roadmap); }
.level-execution .timeframe { background: var(--execution); }

.level-question {
    font-style: italic;
    color: #475569;
    margin: 8px 0;
    font-size: 0.92rem;
}

.level-example {
    font-size: 0.85rem;
    color: #64748b;
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 6px;
}

.level-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.level.expanded .level-detail {
    max-height: 300px;
    opacity: 1;
    margin-top: 12px;
}

.level-detail p {
    font-size: 0.88rem;
    color: #334155;
    margin-bottom: 8px;
}

.level-detail ul {
    padding-left: 20px;
    font-size: 0.84rem;
    color: #475569;
}

.level-detail li {
    margin-bottom: 3px;
}

/* Arrows */
.arrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 4px 0;
    position: relative;
}

.arrow-down,
.arrow-up {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.arrow-down:hover svg polygon,
.arrow-down:hover svg line {
    filter: brightness(1.3);
}

.arrow-up:hover svg polygon,
.arrow-up:hover svg line {
    filter: brightness(1.3);
}

.arrow-label-down {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.arrow-label-up {
    font-size: 0.68rem;
    color: var(--accent);
    font-style: italic;
    white-space: nowrap;
}

/* Tooltip */
.tooltip {
    position: fixed;
    padding: 10px 14px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 0.82rem;
    max-width: 280px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
}

.tooltip.visible {
    opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 16px 12px 32px;
    }

    h1 {
        font-size: 1.3rem;
    }

    .level {
        padding: 14px 16px;
    }

    .level-strategy { width: 94%; }
    .level-roadmap { width: 88%; }
    .level-execution { width: 82%; }

    .level-header h2 {
        font-size: 0.95rem;
    }

    .arrow-container {
        gap: 20px;
    }
}
