:root {
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.04);
    --secondary: #db2777;
    --secondary-glow: rgba(219, 39, 119, 0.04);
    --bg-page: #f8fafc;
    --text-main: #0f172a;
    --text-sub: #475569;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(15, 23, 42, 0.06);
    --card-hover-border: rgba(79, 70, 229, 0.25);
    --card-hover-shadow: 0 12px 30px rgba(79, 70, 229, 0.06);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    padding: 0 0 60px 0;
    background-image: 
        radial-gradient(at 0% 0%, var(--primary-glow) 0px, transparent 40%),
        radial-gradient(at 100% 100%, var(--secondary-glow) 0px, transparent 40%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar style */
.navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.8);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.back-btn {
    font-size: 0.85rem;
    color: var(--text-sub);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.back-btn:hover {
    color: var(--primary);
}
.nav-menu {
    display: flex;
    gap: 24px;
    align-items: center;
}
.nav-menu-link {
    font-size: 0.9rem;
    color: var(--text-sub);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.nav-menu-link:hover {
    color: var(--primary);
}

/* Glass Panel base class */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

/* Header / Biography Section */
.bio-header {
    margin-top: 48px;
    padding: 32px;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 768px) {
    .bio-header {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        padding: 24px;
    }
}

.author-avatar, .author-image-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
}

.author-avatar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: white;
}

.author-image-avatar {
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.author-info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.author-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.author-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}
@media (max-width: 768px) {
    .author-meta-row {
        justify-content: center;
    }
}

.meta-pill, .meta-link-pill {
    font-size: 0.75rem;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--glass-border);
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--text-sub);
}
.meta-link-pill {
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 600;
}
.meta-link-pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.bio-text {
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.6;
}

/* Quotes Grid Layout */
.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 48px 0 24px 0;
    letter-spacing: -0.01em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.quotes-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quote-card {
    padding: 24px 32px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.quote-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
}

.quote-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.quote-icon {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    color: rgba(79, 70, 229, 0.08);
    line-height: 1;
    font-style: italic;
}
.copy-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-sub);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.copy-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}
.tooltip {
    visibility: hidden;
    background-color: var(--primary);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 4px 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
}
.copy-btn:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Quote actions and numbers */
.quote-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.quote-number {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.06);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    letter-spacing: 0.02em;
    user-select: none;
}


.quote-content {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-main);
}
.quote-citation {
    display: block;
    font-size: 0.85rem;
    color: var(--text-sub);
    font-style: italic;
}

/* Quote tags styling */
.quote-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.quote-tag {
    font-size: 0.7rem;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--text-sub);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Score Pills styling */
.quote-scores {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dotted var(--glass-border);
}
.score-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}
.score-label {
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
.score-val {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-main);
}

/* Accordion additional biography */
.bio-accordion {
    margin-top: 24px;
    padding: 24px 32px;
}
.bio-accordion .section-title {
    margin-top: 0;
    margin-bottom: 16px;
}
.bio-accordion-section {
    border-top: 1px dashed var(--glass-border);
    padding: 16px 0;
}
.bio-accordion-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}
.bio-accordion-content {
    font-size: 0.875rem;
    color: var(--text-sub);
    line-height: 1.5;
}

/* Quote Meta Details (Title, Takeaway, Application) */
.quote-meta-details {
    margin-top: 16px;
    padding: 16px;
    background: rgba(79, 70, 229, 0.02);
    border-left: 4px solid var(--primary);
    border-radius: 4px 12px 12px 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.quote-meta-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.01em;
    margin: 0;
}
.quote-meta-takeaway, .quote-meta-application, .quote-meta-meaning, .quote-meta-context, .quote-meta-usage {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.5;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.quote-meta-details .meta-icon {
    font-size: 1.1rem;
    line-height: 1.2;
    flex-shrink: 0;
}

/* Metrics section styling */
.metrics-section, .dimensions-section {
    margin-top: 24px;
    padding: 24px 32px;
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.metric-card {
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--glass-border);
}
.metric-icon {
    font-size: 2rem;
}
.metric-info {
    display: flex;
    flex-direction: column;
}
.metric-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.2;
}
.metric-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-sub);
    letter-spacing: 0.05em;
}

/* Dimensions table breakdown */
.dimensions-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}
.dimensions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}
.dimensions-table th, .dimensions-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    text-align: left;
}
.dimensions-table th {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    background: rgba(15, 23, 42, 0.01);
}
.dimensions-table td {
    color: var(--text-main);
    font-size: 0.9rem;
}
.dimensions-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .dimensions-table {
        min-width: 600px;
    }
    .metrics-section, .dimensions-section {
        padding: 20px 16px;
    }
}

/* Table of Contents */
.toc-section {
    margin-top: 24px;
    padding: 24px 32px;
}
.toc-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--primary);
}
.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toc-link {
    font-size: 0.95rem;
    color: var(--text-sub);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.toc-link::before {
    content: "→";
    color: var(--primary);
    font-weight: bold;
    transition: transform 0.2s ease;
}
.toc-link:hover {
    color: var(--primary);
    padding-left: 4px;
}
.toc-link:hover::before {
    transform: translateX(2px);
}

.toc-sublist {
    list-style: none;
    padding-left: 24px;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.toc-sublink {
    font-size: 0.85rem;
    color: var(--text-sub);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.toc-sublink::before {
    content: "•";
    color: var(--primary);
    opacity: 0.5;
    transition: opacity 0.2s ease;
}
.toc-sublink:hover {
    color: var(--primary);
    padding-left: 2px;
}
.toc-sublink:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .toc-section {
        padding: 20px 16px;
    }
}

/* Book Accordion Styles */
.book-accordion {
    margin-top: 20px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.book-accordion-header {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Hide default arrow */
    user-select: none;
}
.book-accordion-header::-webkit-details-marker {
    display: none; /* Hide Safari arrow */
}
.book-accordion-header .section-theme-title {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 700;
    margin: 0;
}
.book-accordion-header .accordion-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--primary);
    transition: all 0.3s ease;
}
.book-accordion-header .accordion-icon::after {
    content: "↓";
    font-weight: bold;
    font-size: 0.95rem;
}
.book-accordion[open] .book-accordion-header .accordion-icon {
    transform: rotate(180deg);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.book-accordion-content {
    padding: 0 24px 24px 24px;
    border-top: 1px dashed var(--glass-border);
    background: rgba(15, 23, 42, 0.005);
}

/* Footer */
.footer {
    margin-top: 80px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-sub);
    border-top: 1px dashed var(--glass-border);
    padding-top: 24px;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}
.footer-link {
    color: var(--text-sub);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.footer-link:hover {
    color: var(--primary);
}


