/* The Book of Clarity by Paras Chopra - Book-specific styles */
/* Theme: Emerald/Green for clarity, growth, and entrepreneurship */

:root {
    --accent-color: #059669;
    --accent-color-dark: #047857;
    --accent-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --section-title-bg: #064e3b;
    --key-box-color: #059669;
    --key-box-bg: #ecfdf5;
    --verse-bg: #f0fdf4;
    --intro-bg: #ecfdf5;
}

/* Central node with clarity gradient */
.central-node {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

/* Section title backgrounds */
.section-title {
    background: var(--section-title-bg);
}

/* Chapter card hover effect */
.chapter-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.2);
}

/* Authors styling */
.authors {
    font-size: 1.3em;
    color: #64748b;
    margin-bottom: 10px;
}

/* Book subtitle */
.book-subtitle {
    font-size: 1.1em;
    color: #475569;
    font-style: italic;
    margin-bottom: 30px;
}

/* Mental model box - core concept styling */
.mental-model {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid var(--accent-color);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.mental-model h3,
.mental-model h4 {
    color: var(--accent-color-dark);
    margin-top: 0;
    margin-bottom: 10px;
}

.mental-model .model-number {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    margin-right: 10px;
}

/* First principles box */
.first-principles {
    background: #1e293b;
    color: #e2e8f0;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
}

.first-principles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #10b981, #059669);
}

.first-principles h4 {
    color: #10b981;
    margin-top: 0;
}

/* Startup example box */
.startup-example {
    background: #fefce8;
    border: 1px solid #fde047;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.startup-example h4 {
    color: #a16207;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Investor insight box */
.investor-insight {
    background: linear-gradient(135deg, #fdf4ff 0%, #f3e8ff 100%);
    border-left: 4px solid #a855f7;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.investor-insight h4 {
    color: #7c3aed;
    margin-top: 0;
}

/* Warning/pitfall box */
.pitfall-box {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.pitfall-box h4 {
    color: #dc2626;
    margin-top: 0;
}

/* Quote from Paras */
.paras-quote {
    background: #f8fafc;
    border-left: 4px solid #94a3b8;
    padding: 20px 25px;
    margin: 25px 0;
    font-style: italic;
    color: #475569;
}

.paras-quote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    color: #64748b;
    font-size: 0.9em;
}

/* Key principle styling */
.key-principle {
    background: var(--key-box-bg);
    border: 2px solid var(--accent-color);
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
}

.key-principle h4 {
    color: var(--accent-color-dark);
    margin-top: 0;
    border-bottom: 1px solid #a7f3d0;
    padding-bottom: 10px;
}

/* Chapter theme badge - models count */
.chapter-theme {
    display: inline-block;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    margin-top: 8px;
}

/* Models count display */
.models-count {
    color: #059669;
    font-size: 0.85em;
    margin-top: 10px;
    font-weight: 600;
}

/* Philosophy box */
.philosophy {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.philosophy blockquote {
    font-size: 1.2em;
    color: #047857;
    font-style: italic;
    margin: 0;
    line-height: 1.6;
}

.philosophy cite {
    display: block;
    margin-top: 15px;
    color: #64748b;
    font-style: normal;
}

/* Action insight box */
.action-insight {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px dashed #059669;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
}

.action-insight h4 {
    color: var(--accent-color-dark);
    margin-top: 0;
}

/* Intro section styling */
.intro {
    background: var(--intro-bg);
    border-left: 4px solid var(--accent-color);
}

/* Quick wins styling */
.quick-wins {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.quick-wins h3 {
    color: var(--accent-color-dark);
    margin-top: 0;
}

.quick-wins ul {
    list-style: none;
    padding-left: 0;
}

.quick-wins li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
}

.quick-wins li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Comparison table for B2C vs B2B etc */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.comparison-table th {
    background: var(--accent-color);
    color: white;
    padding: 12px;
    text-align: left;
}

.comparison-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table tr:nth-child(even) {
    background: #f0fdf4;
}

/* Framework box for structured thinking */
.framework-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #3b82f6;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
}

.framework-box h4 {
    color: #1d4ed8;
    margin-top: 0;
}

/* Steps list for processes */
.process-steps {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}

.process-steps li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.process-steps li:last-child {
    border-bottom: none;
}

.process-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
