/* Theme Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --brand-navy: #1E3A8A;
    --brand-saffron: #EA580C;
    --brand-green: #059669;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: #F8FAFC;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Poppins', 'Inter', sans-serif;
}

/* Reading Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1000;
}

.progress-bar {
    height: 3px;
    background: linear-gradient(90deg, #EA580C 0%, #F97316 50%, #FBBF24 100%);
    width: 0%;
    transition: width 0.25s ease;
}

/* Scheme Card Styles */
.scheme-card {
    transition: all 0.3s ease;
}

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

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Table of Contents */
.table-of-contents {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.table-of-contents::-webkit-scrollbar {
    width: 4px;
}

.table-of-contents::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.table-of-contents::-webkit-scrollbar-thumb {
    background: #EA580C;
    border-radius: 10px;
}

.toc-link {
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    display: block;
}

.toc-link:hover {
    color: #EA580C;
    border-left-color: #EA580C;
    padding-left: 0.5rem;
}

/* Scheme Content Styles */
.scheme-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #1e293b;
}

.scheme-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1E3A8A;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #EA580C;
    padding-bottom: 0.5rem;
}

.scheme-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E3A8A;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.scheme-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1E3A8A;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.scheme-content p {
    margin-bottom: 1rem;
}

.scheme-content ul, .scheme-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.scheme-content li {
    margin-bottom: 0.25rem;
}

.scheme-content ul li {
    list-style-type: disc;
}

.scheme-content ol li {
    list-style-type: decimal;
}

.scheme-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.scheme-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.875rem;
}

.scheme-content th {
    background: #1E3A8A;
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

.scheme-content td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
}

.scheme-content tr:nth-child(even) {
    background: #f8fafc;
}

.scheme-content blockquote {
    border-left: 4px solid #EA580C;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #475569;
}

.scheme-content a {
    color: #EA580C;
    text-decoration: underline;
}

.scheme-content a:hover {
    color: #1E3A8A;
}

/* Category Badge Hover */
.category-badge {
    transition: all 0.2s ease;
}

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

/* Stats Card Animation */
.stats-card {
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.15);
}

/* Breadcrumb Styles */
.breadcrumb-wrapper {
    font-size: 0.875rem;
}

.breadcrumb-wrapper a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-wrapper a:hover {
    color: #EA580C;
}

.breadcrumb-wrapper .last,
.breadcrumb-wrapper .current-item {
    color: #1E3A8A;
    font-weight: 500;
}

/* RankMath Breadcrumb Overrides */
.rank-math-breadcrumb {
    font-size: 0.875rem;
}

.rank-math-breadcrumb p {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.rank-math-breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

.rank-math-breadcrumb a:hover {
    color: #EA580C;
}

.rank-math-breadcrumb .separator {
    color: #cbd5e1;
    margin: 0 0.25rem;
}

.rank-math-breadcrumb .last {
    color: #1E3A8A;
    font-weight: 500;
}

/* Category Filter Active State */
.category-filter.active {
    background: #EA580C !important;
    color: white !important;
    border-color: #EA580C !important;
}

/* Print Styles */
@media print {
    .no-print, nav, footer, .sidebar, .breadcrumb, .share-buttons, .progress-container,
    .sidebar-card, .sticky, .fixed, .mobile-cta, .gradient-bg {
        display: none !important;
    }
    body {
        background: white;
    }
    .scheme-content {
        color: black;
    }
    .lg:w-2/3 {
        width: 100% !important;
    }
    a {
        text-decoration: none;
        color: black;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .scheme-content h1 {
        font-size: 1.5rem;
    }
    .scheme-content h2 {
        font-size: 1.25rem;
    }
    .scheme-content h3 {
        font-size: 1.125rem;
    }
    .scheme-content table {
        font-size: 0.75rem;
    }
    .scheme-content th, .scheme-content td {
        padding: 0.5rem;
    }
}