/* assets/css/style.css */
/* Custom styles beyond Tailwind */

.prose {
    max-width: 100%;
    color: #374151;
}

.prose h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #1F2937;
}

.prose h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1F2937;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1F2937;
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.prose ul, .prose ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.prose li {
    margin-bottom: 0.25rem;
}

.prose a {
    color: #3366cc;
    text-decoration: underline;
}

.prose a:hover {
    color: #254a99;
}

.prose blockquote {
    border-left: 4px solid #3366cc;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #4B5563;
}

.prose img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 0.5rem;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.prose table th,
.prose table td {
    border: 1px solid #D1D5DB;
    padding: 0.5rem;
    text-align: left;
}

.prose table th {
    background-color: #F3F4F6;
    font-weight: 600;
}

/* Code blocks */
.prose pre {
    background-color: #F3F4F6;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.prose code {
    background-color: #F3F4F6;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .bg-white {
        background: white !important;
        box-shadow: none !important;
    }
    
    .prose {
        font-size: 12pt !important;
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Loading spinner */
.spinner {
    border: 3px solid #F3F4F6;
    border-top: 3px solid #3366cc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* Wikipedia-style article styles */
.article-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eaecf0;
}

.article-header h1 {
    font-size: 2.2rem;
    font-weight: 300;
    font-family: 'Georgia', serif;
    color: #000;
    margin-bottom: 0.5rem;
}

.article-body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #222;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 400;
    font-family: 'Georgia', serif;
    color: #000;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #eaecf0;
    padding-bottom: 0.3rem;
}

.article-body h3 {
    font-size: 1.2rem;
    font-weight: 400;
    font-family: 'Georgia', serif;
    color: #000;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
}

.article-body p {
    margin-bottom: 0.8rem;
    text-align: justify;
}

.article-body ul {
    margin: 0.5rem 0 1rem 2rem;
    list-style-type: disc;
}

.article-body li {
    margin-bottom: 0.3rem;
}

.article-body .bg-gray-50 {
    background-color: #f8f9fa;
}

.article-body .border-wikipedia {
    border-color: #3366cc;
}

.article-body .text-wikipedia {
    color: #3366cc;
}

.article-body .text-wikipedia:hover {
    text-decoration: underline;
}

.article-body blockquote {
    border-left: 4px solid #3366cc;
    padding-left: 1.5rem;
    margin: 1rem 0;
    color: #444;
    font-style: italic;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.article-body table th,
.article-body table td {
    border: 1px solid #ddd;
    padding: 0.5rem 0.8rem;
    text-align: left;
}

.article-body table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.article-body table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.article-body .infobox {
    float: right;
    clear: right;
    margin: 0 0 1rem 1.5rem;
    width: 280px;
    background-color: #f8f9fa;
    border: 1px solid #eaecf0;
    padding: 0.8rem;
    font-size: 0.9rem;
}

.article-body .infobox th {
    text-align: left;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    background-color: transparent;
}

.article-body .infobox td {
    padding: 0.2rem 0.5rem;
    border: none;
}

.article-body .infobox .infobox-header {
    background-color: #eaecf0;
    font-weight: 700;
    text-align: center;
    padding: 0.3rem;
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-body .infobox {
        float: none;
        margin: 1rem auto;
        width: 100%;
        max-width: 300px;
    }
    
    .article-header .flex-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .article-header img {
        float: none !important;
        margin: 0 auto 1rem !important;
        display: block;
    }
}