/**
 * aprenderfilosofia - Styles
 * Desenvolvido por B20 Conteúdo Digital
 * https://www.b20.com.br
 */

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Neumorphism Palette */
    --primary-color: #5B21B6;
    --primary-hover: #4C1D95;
    --primary-light: #7C3AED;
    --secondary-color: #A3B1C6;
    --accent-color: #D4AF37;
    --surface-color: #E0E5EC;
    --surface-dark: #D1D9E6;
    --text-color: #2D3748;
    --text-muted: #718096;
    --text-light: #A0AEC0;
    
    /* Background */
    --bg-color: #E0E5EC;
    --bg-paper: #F5F0E6;
    
    /* Neumorphism Shadows */
    --shadow-light: -6px -6px 14px rgba(255, 255, 255, 0.7);
    --shadow-dark: 6px 6px 14px rgba(163, 177, 198, 0.6);
    --shadow-inset-light: inset -3px -3px 7px rgba(255, 255, 255, 0.7);
    --shadow-inset-dark: inset 3px 3px 7px rgba(163, 177, 198, 0.5);
    
    /* Layout */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --spacing-unit: 8px;
    --header-height: 60px;
    --bottom-nav-height: 65px;
    
    /* Typography */
    --font-serif: 'Libre Baskerville', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index layers */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 1000;
    --z-modal: 2000;
    --z-toast: 3000;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0F0F23;
        --surface-color: #1A1A2E;
        --surface-dark: #16213E;
        --text-color: #F8F8F2;
        --text-muted: #CCCCCC;
        --text-light: #888888;
        --bg-paper: #242438;
        --shadow-light: -8px -8px 16px rgba(15, 15, 35, 0.3);
        --shadow-dark: 8px 8px 16px rgba(0, 0, 0, 0.6);
        --shadow-inset-light: inset -4px -4px 8px rgba(15, 15, 35, 0.3);
        --shadow-inset-dark: inset 4px 4px 8px rgba(0, 0, 0, 0.4);

    /* Enhanced contrast for interactive elements in dark mode */
    --primary-color: #8B5CF6;        /* Lighter purple for better contrast */
    --primary-hover: #A855F7;
    --primary-light: #C084FC;
    --accent-color: #F59E0B;         /* Brighter accent */
}
}

[data-theme="dark"] {
    --bg-color: #0F0F23;
    --surface-color: #1A1A2E;
    --surface-dark: #16213E;
    --text-color: #F8F8F2;
    --text-muted: #CCCCCC;
    --text-light: #888888;
    --bg-paper: #242438;
    --shadow-light: -8px -8px 16px rgba(15, 15, 35, 0.3);
    --shadow-dark: 8px 8px 16px rgba(0, 0, 0, 0.6);
    --shadow-inset-light: inset -4px -4px 8px rgba(15, 15, 35, 0.3);
    --shadow-inset-dark: inset 4px 4px 8px rgba(0, 0, 0, 0.4);

    /* Enhanced contrast for interactive elements in dark mode */
    --primary-color: #8B5CF6;        /* Lighter purple for better contrast */
    --primary-hover: #A855F7;
    --primary-light: #C084FC;
    --accent-color: #F59E0B;         /* Brighter accent */
}

/* ===== BASE STYLES ===== */
html {
    font-size: clamp(14px, 2.5vw, 16px);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 100%;
    padding: calc(var(--spacing-unit) * 2);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: calc(var(--spacing-unit) * 3);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1140px;
    }
}

/* ===== HEADER ===== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 calc(var(--spacing-unit) * 2);
    box-shadow: var(--shadow-dark);
    z-index: var(--z-fixed);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 0; /* Prevent flex items from overflowing */
}

.header-logo {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1.5);
    flex-shrink: 0;
}

.header-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.header-logo h1 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .header-logo img {
        height: 40px;
    }

    .header-logo h1 {
        font-size: 1.5rem;
    }
}

/* Large desktop adjustments */
@media (min-width: 1024px) {
    .header-logo img {
        height: 44px;
    }

    .header-logo h1 {
        font-size: 1.75rem;
    }
}

.header-actions {
    display: flex;
    gap: var(--spacing-unit);
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        gap: var(--spacing-unit);
    }
    
    .desktop-nav .nav-link {
        display: flex;
        align-items: center;
        gap: calc(var(--spacing-unit) * 0.75);
        padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
        border-radius: var(--border-radius-sm);
        color: var(--text-muted);
        font-size: 0.875rem;
        font-weight: 500;
        transition: all var(--transition);
        background: transparent;
    }
    
    .desktop-nav .nav-link:hover {
        color: var(--primary-color);
        background: var(--surface-dark);
    }
    
    .desktop-nav .nav-link.active {
        color: white;
        background: var(--primary-color);
        box-shadow: var(--shadow-dark);
    }
    
    .desktop-nav .nav-link i {
        font-size: 1rem;
    }
    
    .bottom-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--surface-color);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: var(--shadow-light), 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: var(--z-fixed);
    padding-bottom: env(safe-area-inset-bottom, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 1);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.5625rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    min-width: 48px;
    max-width: 72px;
    min-height: 40px;
    border-radius: calc(var(--border-radius) * 0.75);
    position: relative;
}

.nav-item i {
    font-size: 1rem;
    transition: all var(--transition-fast);
    margin-bottom: 1px;
}

.nav-item span {
    text-align: center;
    line-height: 1.2;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-item.active {
    color: var(--primary-color);
    background: rgba(91, 33, 182, 0.08);
    transform: translateY(-2px);
}

.nav-item.active i {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(91, 33, 182, 0.3));
}

.nav-item:hover:not(.active) {
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.04);
}

.nav-item:active {
    transform: scale(0.96) translateY(0);
    transition: transform 0.1s ease;
}

/* Improve spacing for longer text */
.nav-item:nth-child(4) span,
.nav-item:nth-child(6) span {
    font-size: 0.5rem;
    line-height: 1;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 1);
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    background: var(--surface-color);
    color: var(--text-color);
    box-shadow: var(--shadow-light), var(--shadow-dark);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 4px 4px 10px rgba(91, 33, 182, 0.3), var(--shadow-light);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--surface-dark);
    color: var(--text-color);
}

.btn-text {
    background: transparent;
    box-shadow: none;
    color: var(--primary-color);
    padding: calc(var(--spacing-unit) * 1);
}

.btn-text:hover {
    background: var(--surface-dark);
    transform: none;
}

.btn-text:active {
    box-shadow: none;
}

.btn-lg {
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    font-size: 1rem;
}

.btn-sm {
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    font-size: 0.8125rem;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

.btn-icon-text {
    background: transparent;
    box-shadow: none;
    color: var(--text-muted);
    font-size: 0.8125rem;
    padding: calc(var(--spacing-unit) * 1);
}

.btn-icon-text:hover {
    color: var(--primary-color);
    background: var(--surface-dark);
}

.btn-icon-text:active {
    box-shadow: none;
}

/* ===== SECTIONS ===== */
.section {
    display: none;
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
    padding: calc(var(--spacing-unit) * 2) 0;
    animation: fadeIn 0.3s ease;
}

.section.active {
    display: block;
}

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

.section-header {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1.5);
}

.section-header h2 i {
    color: var(--primary-color);
}

.section-header h3 {
    font-size: 1.25rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ===== HERO ===== */
.hero {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 4);
    margin-bottom: calc(var(--spacing-unit) * 4);
    padding: calc(var(--spacing-unit) * 3);
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light), var(--shadow-dark);
}

.hero-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent-color);
    font-size: 0.9375rem;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.hero-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    position: relative;
    width: 200px;
    height: 200px;
}

.thought-bubble {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-dark);
    animation: float 3s ease-in-out infinite;
}

.thought-bubble i {
    font-size: 1.5rem;
    color: white;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.philosopher-silhouette {
    width: 150px;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50% 50% 45% 45%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--shadow-dark);
}

.philosopher-silhouette::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: var(--surface-color);
    border-radius: 50%;
}

@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        align-items: center;
        padding: calc(var(--spacing-unit) * 5);
    }
    
    .hero-content {
        flex: 1;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-actions {
        flex-direction: row;
    }
    
    .hero-visual {
        flex: 0 0 250px;
    }
    
    .hero-illustration {
        width: 250px;
        height: 250px;
    }
}

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    padding: calc(var(--spacing-unit) * 2.5);
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    text-align: center;
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
}

.stat-value {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== CARDS ===== */
.card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
}

.card-content {
    padding: calc(var(--spacing-unit) * 2.5);
}

/* ===== FEATURED PHILOSOPHERS ===== */
.featured-philosophers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.philosopher-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.philosopher-card:hover {
    transform: translateY(-4px);
}

.philosopher-card-header {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 2.5);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.philosopher-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-dark);
}

.philosopher-info h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.philosopher-years {
    font-size: 0.8125rem;
    opacity: 0.9;
}

.philosopher-card-body {
    padding: calc(var(--spacing-unit) * 2.5);
}

.philosopher-bio {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: calc(var(--spacing-unit) * 2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.philosopher-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.875rem;
    color: var(--text-color);
    padding-left: calc(var(--spacing-unit) * 2);
    border-left: 3px solid var(--accent-color);
}

.philosopher-period {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 0.5);
    padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 1.5);
    background: var(--surface-dark);
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: calc(var(--spacing-unit) * 2);
}

/* ===== DAILY QUOTE ===== */
.daily-quote-card {
    position: relative;
    padding: calc(var(--spacing-unit) * 4);
    background: linear-gradient(135deg, var(--bg-paper) 0%, var(--surface-color) 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    margin-bottom: calc(var(--spacing-unit) * 4);
    text-align: center;
}

.quote-icon {
    position: absolute;
    top: calc(var(--spacing-unit) * 2);
    left: calc(var(--spacing-unit) * 2);
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.3;
}

.quote-text {
    font-size: 1.25rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quote-author {
    display: block;
    font-family: var(--font-sans);
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.quote-actions {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 2);
    flex-wrap: wrap;
}

/* ===== QUICK ACCESS ===== */
.quick-access {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.quick-access h3 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit) * 2);
}

.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    padding: calc(var(--spacing-unit) * 2.5);
    background: var(--surface-color);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    font-family: var(--font-sans);
}

.quick-card:hover {
    transform: translateY(-4px);
}

.quick-card:active {
    transform: translateY(0);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
}

.quick-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
}

.quick-card span {
    font-weight: 600;
    color: var(--text-color);
}

.quick-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

@media (min-width: 768px) {
    .quick-access-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== PROGRESS SECTION ===== */
.progress-section {
    padding: calc(var(--spacing-unit) * 3);
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light), var(--shadow-dark);
}

.progress-section h3 {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    margin-bottom: calc(var(--spacing-unit) * 3);
    font-size: 1.125rem;
}

.progress-section h3 i {
    color: var(--primary-color);
}

.progress-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 2);
}

.progress-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    text-align: center;
}

.progress-ring {
    position: relative;
    width: 80px;
    height: 80px;
}

.progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--surface-dark);
    stroke-width: 3;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray var(--transition-slow);
}

.progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
}

.progress-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== FILTERS ===== */
.filters-bar {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.search-box {
    position: relative;
    flex: 1;
}

.search-box i {
    position: absolute;
    left: calc(var(--spacing-unit) * 2);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
    padding-left: calc(var(--spacing-unit) * 5);
    border: none;
    border-radius: var(--border-radius);
    background: var(--surface-color);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-color);
    transition: box-shadow var(--transition);
}

.search-box input:focus {
    outline: none;
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark), 0 0 0 2px var(--primary-color);
}

.search-box input::placeholder {
    color: var(--text-light);
}

.filter-chips {
    display: flex;
    gap: calc(var(--spacing-unit) * 1);
    overflow-x: auto;
    padding-bottom: calc(var(--spacing-unit) * 1);
    -webkit-overflow-scrolling: touch;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.chip {
    flex-shrink: 0;
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    border: none;
    border-radius: var(--border-radius);
    background: var(--surface-color);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.chip.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 2px 2px 6px rgba(91, 33, 182, 0.3);
}

.filter-group {
    display: flex;
    gap: calc(var(--spacing-unit) * 1);
}

.filter-group select {
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
    border: none;
    border-radius: var(--border-radius);
    background: var(--surface-color);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--text-color);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: calc(var(--spacing-unit) * 4);
}

@media (min-width: 768px) {
    .filters-bar {
        flex-direction: row;
        align-items: center;
    }
    
    .search-box {
        max-width: 300px;
    }
}

/* ===== PHILOSOPHERS GRID ===== */
.philosophers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

/* ===== CONCEPTS GRID ===== */
.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.concept-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    padding: calc(var(--spacing-unit) * 3);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.concept-card:hover {
    transform: translateY(-4px);
}

.concept-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--border-radius);
    color: white;
    font-size: 1.5rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.concept-card h4 {
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.concept-definition {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.concept-example {
    font-size: 0.875rem;
    color: var(--text-color);
    padding: calc(var(--spacing-unit) * 1.5);
    background: var(--surface-dark);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--accent-color);
}

.concept-example strong {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-color);
    margin-bottom: 4px;
}

/* ===== TIMELINE ===== */
.period-tabs {
    display: flex;
    gap: calc(var(--spacing-unit) * 1);
    overflow-x: auto;
    padding-bottom: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 3);
    -webkit-overflow-scrolling: touch;
}

.period-tabs::-webkit-scrollbar {
    display: none;
}

.period-tab {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2.5);
    border: none;
    border-radius: var(--border-radius);
    background: var(--surface-color);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all var(--transition);
}

.period-tab span {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-color);
}

.period-tab small {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.period-tab:hover {
    transform: translateY(-2px);
}

.period-tab.active {
    background: var(--primary-color);
    box-shadow: 2px 2px 6px rgba(91, 33, 182, 0.3);
}

.period-tab.active span,
.period-tab.active small {
    color: white;
}

.timeline-container {
    position: relative;
    padding-left: calc(var(--spacing-unit) * 4);
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: calc(var(--spacing-unit) * 4);
    padding-left: calc(var(--spacing-unit) * 3);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--surface-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: var(--shadow-dark);
}

.timeline-item.highlight::before {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.timeline-date {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.timeline-content {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    padding: calc(var(--spacing-unit) * 2.5);
}

.timeline-content h4 {
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.timeline-content p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
}

.timeline-period-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--surface-dark);
    border-radius: var(--border-radius-sm);
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: calc(var(--spacing-unit) * 1.5);
}

/* ===== QUIZ ===== */
.quiz-intro {
    display: flex;
    justify-content: center;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.quiz-intro-card {
    max-width: 500px;
    padding: calc(var(--spacing-unit) * 4);
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    text-align: center;
}

.quiz-intro-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    margin: 0 auto calc(var(--spacing-unit) * 3);
    box-shadow: var(--shadow-dark);
}

.quiz-intro-card h3 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.quiz-intro-card p {
    color: var(--text-muted);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.quiz-info {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 3);
    flex-wrap: wrap;
}

.quiz-info-item {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.quiz-info-item i {
    color: var(--primary-color);
}

.quiz-container {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-progress {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.quiz-progress-bar {
    height: 8px;
    background: var(--surface-dark);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: width var(--transition);
}

.quiz-progress-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    display: block;
}

.quiz-question-card {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    padding: calc(var(--spacing-unit) * 4);
}

.quiz-scenario {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 4);
    text-align: center;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.quiz-option {
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2.5);
    border: none;
    border-radius: var(--border-radius);
    background: var(--surface-color);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition);
}

.quiz-option:hover {
    transform: translateX(4px);
    background: var(--surface-dark);
}

.quiz-option:active {
    transform: translateX(0);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
}

.quiz-option.selected {
    background: var(--primary-color);
    color: white;
    box-shadow: 2px 2px 6px rgba(91, 33, 182, 0.3);
}

/* Quiz Results */
.quiz-results {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-results-card {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    padding: calc(var(--spacing-unit) * 4);
    text-align: center;
}

.quiz-results-header {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.quiz-results-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color) 0%, #F59E0B 100%);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    margin: 0 auto calc(var(--spacing-unit) * 2);
    box-shadow: var(--shadow-dark);
}

.quiz-results-school {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.quiz-results-school h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.quiz-results-school p {
    color: var(--text-muted);
}

.quiz-results-breakdown {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.quiz-results-breakdown h5 {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.result-bar {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.result-bar-label {
    flex: 0 0 120px;
    font-size: 0.8125rem;
    text-align: right;
    color: var(--text-color);
}

.result-bar-track {
    flex: 1;
    height: 8px;
    background: var(--surface-dark);
    border-radius: 4px;
    overflow: hidden;
}

.result-bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width var(--transition-slow);
}

.result-bar-value {
    flex: 0 0 40px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-color);
}

.quiz-results-actions {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 2);
    flex-wrap: wrap;
}

/* Quiz History */
.quiz-history {
    margin-top: calc(var(--spacing-unit) * 4);
    padding: calc(var(--spacing-unit) * 3);
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light), var(--shadow-dark);
}

.quiz-history h3 {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    font-size: 1rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.quiz-history h3 i {
    color: var(--primary-color);
}

.quiz-history-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1.5);
}

.quiz-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--spacing-unit) * 1.5);
    background: var(--surface-dark);
    border-radius: var(--border-radius-sm);
}

.quiz-history-item-school {
    font-weight: 600;
    color: var(--primary-color);
}

.quiz-history-item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== QUOTES ===== */
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.quote-card {
    background: var(--bg-paper);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    padding: calc(var(--spacing-unit) * 3);
    position: relative;
    transition: transform var(--transition);
}

.quote-card:hover {
    transform: translateY(-4px);
}

.quote-card-icon {
    position: absolute;
    top: calc(var(--spacing-unit) * 2);
    left: calc(var(--spacing-unit) * 2);
    font-size: 1.5rem;
    color: var(--accent-color);
    opacity: 0.3;
}

.quote-card-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 2);
    padding-top: calc(var(--spacing-unit) * 2);
}

.quote-card-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.quote-card-theme {
    display: inline-block;
    padding: 4px 12px;
    background: var(--surface-dark);
    border-radius: var(--border-radius-sm);
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.quote-card-actions {
    display: flex;
    gap: calc(var(--spacing-unit) * 1);
    border-top: 1px solid var(--surface-dark);
    padding-top: calc(var(--spacing-unit) * 2);
}

.quote-card-actions .btn-icon-text {
    flex: 1;
    justify-content: center;
}

.quote-card-actions .btn-icon-text.favorited {
    color: #EF4444;
}

.quote-card-actions .btn-icon-text.favorited i {
    font-weight: 900;
}

/* ===== PRACTICAL APPLICATION ===== */
.practical-intro {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--text-muted);
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.scenario-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    padding: calc(var(--spacing-unit) * 3);
    cursor: pointer;
    transition: transform var(--transition);
}

.scenario-card:hover {
    transform: translateY(-4px);
}

.scenario-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.scenario-card h4 {
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.scenario-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.scenario-detail {
    max-width: 700px;
    margin: 0 auto;
}

.scenario-content {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    padding: calc(var(--spacing-unit) * 4);
    margin-top: calc(var(--spacing-unit) * 2);
}

.scenario-content h3 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.scenario-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: calc(var(--spacing-unit) * 4);
    padding-bottom: calc(var(--spacing-unit) * 3);
    border-bottom: 1px solid var(--surface-dark);
}

.philosopher-perspective {
    margin-bottom: calc(var(--spacing-unit) * 3);
    padding: calc(var(--spacing-unit) * 2.5);
    background: var(--surface-dark);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.philosopher-perspective h4 {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    font-size: 1rem;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.philosopher-perspective h4 i {
    color: var(--primary-color);
}

.philosopher-perspective p {
    font-size: 0.9375rem;
    color: var(--text-color);
    margin: 0;
}

.reflection-prompt {
    margin-top: calc(var(--spacing-unit) * 4);
    padding: calc(var(--spacing-unit) * 3);
    background: var(--bg-paper);
    border-radius: var(--border-radius);
    text-align: center;
}

.reflection-prompt h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 1);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.reflection-prompt h4 i {
    color: var(--accent-color);
}

.reflection-prompt p {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-color);
    margin: 0;
}

/* ===== FAQ ===== */
.faq-container {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: calc(var(--spacing-unit) * 2);
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--spacing-unit) * 2.5);
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    transition: background var(--transition);
}

.faq-question:hover {
    background: var(--surface-dark);
}

.faq-icon {
    transition: transform var(--transition);
    color: var(--primary-color);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 2.5);
    animation: slideDown 0.3s ease;
}

.faq-answer p {
    color: var(--text-muted);
    margin: 0;
}

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

/* ===== MODALS ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: calc(var(--spacing-unit) * 2);
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-dark);
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: calc(var(--spacing-unit) * 2);
    right: calc(var(--spacing-unit) * 2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--surface-dark);
    color: var(--text-color);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 1;
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
}

/* Philosopher Detail Modal */
.philosopher-detail-header {
    padding: calc(var(--spacing-unit) * 4);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    text-align: center;
}

.philosopher-detail-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0 auto calc(var(--spacing-unit) * 2);
    box-shadow: var(--shadow-dark);
}

.philosopher-detail-header h3 {
    color: white;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.philosopher-detail-header .years {
    opacity: 0.9;
    font-size: 0.9375rem;
}

.philosopher-detail-body {
    padding: calc(var(--spacing-unit) * 3);
}

.philosopher-detail-section {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.philosopher-detail-section h4 {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    font-size: 1rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.philosopher-detail-section h4 i {
    color: var(--primary-color);
}

.philosopher-detail-section p {
    color: var(--text-muted);
    margin: 0;
}

.philosopher-detail-section ul {
    list-style: none;
    padding: 0;
}

.philosopher-detail-section li {
    position: relative;
    padding-left: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 1);
    color: var(--text-color);
}

.philosopher-detail-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
}

.philosopher-detail-quote {
    padding: calc(var(--spacing-unit) * 2.5);
    background: var(--bg-paper);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.philosopher-detail-quote blockquote {
    font-size: 1rem;
    margin: 0;
}

.mark-read-btn {
    width: 100%;
    margin-top: calc(var(--spacing-unit) * 2);
}

.mark-read-btn.read {
    background: #10B981;
    color: white;
}

/* Concept Detail Modal */
.concept-detail-content {
    padding: calc(var(--spacing-unit) * 4);
}

.concept-detail-header {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.concept-detail-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--border-radius);
    color: white;
    font-size: 1.75rem;
}

.concept-detail-section {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.concept-detail-section h4 {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1);
    font-size: 1rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.concept-detail-section h4 i {
    color: var(--primary-color);
}

.concept-detail-section p {
    color: var(--text-muted);
    margin: 0;
}

.concept-example-box {
    padding: calc(var(--spacing-unit) * 2.5);
    background: var(--surface-dark);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.concept-example-box p {
    color: var(--text-color);
}

.related-philosophers {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 1);
}

.related-philosopher-chip {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 0.5);
    padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.5);
    background: var(--surface-dark);
    border-radius: var(--border-radius-sm);
    font-size: 0.8125rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: var(--font-sans);
}

.related-philosopher-chip:hover {
    background: var(--primary-color);
    color: white;
}

.mark-studied-btn {
    width: 100%;
    margin-top: calc(var(--spacing-unit) * 2);
}

.mark-studied-btn.studied {
    background: #10B981;
    color: white;
}

/* ===== EMPTY STATES ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--spacing-unit) * 6);
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.empty-state h3 {
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--spacing-unit) * 2);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1);
    pointer-events: none;
}

@media (min-width: 768px) {
    .toast-container {
        bottom: calc(var(--spacing-unit) * 4);
    }
}

.toast {
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    background: var(--text-color);
    color: var(--bg-color);
    border-radius: var(--border-radius);
    font-size: 0.9375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition);
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #10B981;
    color: white;
}

.toast.error {
    background: #EF4444;
    color: white;
}

.toast.info {
    background: var(--primary-color);
    color: white;
}

/* ===== FOOTER ===== */
.app-footer {
    padding: calc(var(--spacing-unit) * 4) 0;
    background: var(--surface-dark);
    margin-top: calc(var(--spacing-unit) * 4);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 1);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.footer-brand i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.footer-brand span {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--primary-color);
}

.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.footer-credits {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.b20-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: all var(--transition);
}

.b20-link:hover {
    text-decoration: underline;
}

.footer-link {
    font-size: 0.75rem;
    margin: 0;
}

.footer-link a {
    color: var(--text-light);
}

/* ===== UTILITIES ===== */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== SKELETON LOADING ===== */
.skeleton {
    background: linear-gradient(90deg, var(--surface-color) 25%, var(--surface-dark) 50%, var(--surface-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.skeleton-text:last-child {
    width: 60%;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.skeleton-card {
    height: 200px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .app-header,
    .bottom-nav,
    .app-footer,
    .btn,
    .filters-bar {
        display: none !important;
    }
    
    body {
        padding: 0;
        background: white;
        color: black;
    }
    
    .section {
        display: block !important;
        page-break-inside: avoid;
    }
}
