/* India after Gandhi by Ramchandra Guha - Book-specific styles */
/* Theme: Saffron/Amber for India's heritage with Navy for gravitas */

:root {
    --accent-color: #f59e0b;
    --accent-color-dark: #d97706;
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    --section-title-bg: #1e3a5f;
    --key-box-color: #059669;
    --key-box-bg: #ecfdf5;
    --verse-bg: #fffbeb;
    --intro-bg: #fffbeb;
}

/* Central node with Indian theme gradient */
.central-node {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

/* Section title backgrounds - navy for historical gravitas */
.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(245, 158, 11, 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;
}

/* Era badge for chapters */
.era-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    margin-top: 8px;
}

/* Part labels in chapter cards */
.part-label {
    font-size: 0.75em;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

/* Historical event box */
.historical-event {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid var(--accent-color);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.historical-event h4 {
    color: var(--accent-color-dark);
    margin-top: 0;
    margin-bottom: 10px;
}

/* Key figure box - for important personalities */
.key-figure {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #3b82f6;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.key-figure h4 {
    color: #1d4ed8;
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.political-analysis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #ea580c, #f59e0b);
}

.political-analysis h4 {
    color: #fbbf24;
    margin-top: 0;
}

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

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

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

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

/* Achievement/Milestone box */
.milestone-box {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.milestone-box h4 {
    color: #16a34a;
    margin-top: 0;
}

/* Timeline for historical progression */
.timeline {
    position: relative;
    padding-left: 30px;
    margin: 25px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #f59e0b, #ea580c);
}

.timeline-item {
    position: relative;
    padding: 15px 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: #f59e0b;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #f59e0b;
}

.timeline-item h4 {
    color: var(--accent-color-dark);
    margin: 0 0 8px 0;
}

.timeline-item .year {
    font-weight: bold;
    color: var(--accent-color);
}

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

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

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

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

/* Quick wins styling - core themes */
.quick-wins {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 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;
}

/* Map/Geographic context box */
.geographic-context {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #059669;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
}

.geographic-context h4 {
    color: #047857;
    margin-top: 0;
}

/* Statistics/Data box */
.stats-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9em;
    color: #64748b;
}
