/*
Theme Name: Qurani
Theme URI: http://example.com/muslimsejati
Author: Antigravity AI
Author URI: http://example.com
Description: A premium dark gold manuscript reader theme inspired by classical Islamic digital library interfaces.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: muslimsejati
Tags: dark, one-column, two-columns, translation-ready, accessibility-ready, custom-menu, featured-images, thread-comments

This theme is designed to work with Tailwind CSS and uses EB Garamond and Inter fonts.
*/

/* Custom styles not covered by Tailwind utility classes */


/* Force typewriter typography across the entire site (excluding icons) */
body, input, button, textarea, select, span:not(.material-symbols-outlined), p, a, div:not(.material-symbols-outlined), li, ul, ol, td, th, label, input::placeholder {
    font-family: 'Courier Prime', 'Courier New', Courier, monospace !important;
}

h1, h2, h3, h4, h5, h6, 
.font-display-lg, .font-headline-lg, .font-headline-lg-mobile,
h1 *, h2 *, h3 *, h4 *, h5 *, h6 * {
    font-family: 'Special Elite', Georgia, serif !important;
}

body {
    background-color: #111416;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 L52 28 L80 40 L52 52 L40 80 L28 52 L0 40 L28 28 Z' fill='none' stroke='rgba(242, 202, 80, 0.025)' stroke-width='1'/%3E%3Ccircle cx='40' cy='40' r='10' fill='none' stroke='rgba(242, 202, 80, 0.015)' stroke-width='1'/%3E%3Crect x='20' y='20' width='40' height='40' fill='none' stroke='rgba(242, 202, 80, 0.01)' stroke-width='1' transform='rotate(45 40 40)'/%3E%3C/svg%3E"),
        url("https://www.transparenttextures.com/patterns/cardboard-flat.png");
    background-repeat: repeat;
    background-attachment: fixed;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.paper-texture {
    background-image: url("https://www.transparenttextures.com/patterns/cardboard-flat.png");
    background-repeat: repeat;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #4d4635;
    border-radius: 10px;
}

/* Reading view width constraint */
.reading-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Arch motif divider */
.arch-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 4rem 0;
}
.arch-divider::before, .arch-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #4d4635, transparent);
}
.arch-motif {
    width: 24px;
    height: 12px;
    border: 1px solid #d4af37;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    margin: 0 16px;
    opacity: 0.5;
}

.nav-link-active {
    color: #f2ca50;
    border-left: 2px solid #f2ca50;
    background: rgba(242, 202, 80, 0.05);
}

/* Book Cover Styling for Post Cards in list view */
.book-cover-card {
    position: relative;
    background: linear-gradient(135deg, #1b1e22 0%, #111315 100%);
    border: 1.5px solid rgba(242, 202, 80, 0.15);
    border-left: 12px solid #d4af37; /* Thick Gold Spine */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 1px 1px 0 rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.book-cover-card:hover {
    transform: translateY(-8px) scale(1.015);
    border-color: rgba(242, 202, 80, 0.45);
    box-shadow: 0 20px 40px rgba(242, 202, 80, 0.12), 0 25px 60px rgba(0, 0, 0, 0.7);
}

/* Book Pages Stack visual effect on the right side of the cover card */
.book-cover-card::after {
    content: "";
    position: absolute;
    top: 4px;
    right: -5px;
    width: 5px;
    height: calc(100% - 8px);
    background: repeating-linear-gradient(to bottom, #d2c9b4 0px, #d2c9b4 1px, #1a1c1f 2px, #1a1c1f 3px);
    border-radius: 0 2px 2px 0;
    opacity: 0.65;
    border-right: 1px solid rgba(242, 202, 80, 0.2);
}

/* Typography and styling for elements inside WordPress post content (.article-body) */
.article-body {
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    line-height: 28px;
    color: #e2e2e6;
}
.article-body p, .article-body li {
    margin-bottom: 1.5rem;
    text-align: justify;
    text-justify: inter-word;
}
.article-body > p:first-of-type::first-letter {
    font-family: 'EB Garamond', serif;
    font-size: 4.5rem;
    float: left;
    margin-right: 1.25rem;
    margin-top: 0.25rem;
    color: #f2ca50;
    line-height: 0.8;
    font-weight: bold;
}
.article-body h2 {
    font-family: 'EB Garamond', serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
    color: #c9c6c0; /* primary-fixed-dim */
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(77, 70, 53, 0.3); /* outline-variant */
    padding-bottom: 0.5rem;
}
.article-body h3 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f2ca50; /* primary */
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.article-body blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background-color: rgba(26, 28, 31, 0.3); /* surface-container-low */
    border-left: 4px solid rgba(242, 202, 80, 0.4); /* primary */
    font-style: italic;
    color: #d0c5af; /* on-surface-variant */
}
.article-body ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}
.article-body ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}
.article-body li {
    margin-bottom: 0.5rem;
}
.article-body a {
    color: #f2ca50;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.article-body a:hover {
    color: #ffe088;
}

/* Print Stylesheet integration */
@media print {
    aside, header, footer, #heart-btn, #toc-container, .print-hidden, button, .arch-divider, #inline-book-toc {
        display: none !important;
    }
    .flex-1, main {
        margin-left: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .reading-container {
        max-width: 100% !important;
    }
    .text-primary, .text-primary-fixed, .text-primary-fixed-dim, h1, h2, h3 {
        color: #000000 !important;
    }
    .bg-background, .bg-surface, .bg-surface-container, .bg-surface-container-lowest, .bg-surface-container-high, .bg-surface-container-low {
        background: #ffffff !important;
        border-color: #cccccc !important;
    }
}
