/*
Theme Name: Catatan Realita Theme
Theme URI: https://catatanrealita.com
Template: generatepress
Author: Catatan Realita Team
Author URI: https://catatanrealita.com
Description: Child theme for Catatan Realita based on GeneratePress
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: catatanrealita
*/

/* Custom CSS from HTML template */

::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
    padding-left: 100%;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Tailwind-style utilities mapping or overrides if necessary */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* Pagination Styles (from buzzerid, useful for archives) */
.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.375rem;
    /* rounded-md */
    font-weight: 600;
    font-size: 0.875rem;
    color: #4b5563;
    /* text-gray-600 */
    background-color: #f3f4f6;
    /* bg-gray-100 */
    text-decoration: none;
    transition: all 0.2s;
}

.page-numbers:hover {
    background-color: #e5e7eb;
    /* bg-gray-200 */
    color: var(--primary-color);
    /* primary color */
}

.page-numbers.current {
    background-color: var(--primary-color);
    /* primary color */
    color: white;
}

.page-numbers .material-symbols-outlined {
    font-size: 1.25rem;
}

/* Article Typography Styles */
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    font-family: var(--font-display, "Newsreader", serif);
    font-weight: 700;
    color: #0f172a;
    /* text-slate-900 */
    margin-top: 2em;
    margin-bottom: 0.75em;
    line-height: 1.3;
}

.dark .prose h1,
.dark .prose h2,
.dark .prose h3,
.dark .prose h4,
.dark .prose h5,
.dark .prose h6 {
    color: #f8fafc;
    /* text-white */
}

.prose h1 {
    font-size: 2.25em;
}

.prose h2 {
    font-size: 1.8em;
}

.prose h3 {
    font-size: 1.5em;
}

.prose h4 {
    font-size: 1.25em;
}

.prose p {
    margin-bottom: 1.25em;
    line-height: 1.8;
}

.prose blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.25em;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    color: #475569;
    /* text-slate-600 */
    background: #f8fafc;
    /* bg-slate-50 */
    padding: 1em 1.25em;
    border-radius: 0 0.5rem 0.5rem 0;
}

.dark .prose blockquote {
    color: #cbd5e1;
    /* text-slate-300 */
    background: rgba(30, 41, 59, 0.5);
    /* bg-slate-800/50 */
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}

.prose li {
    margin-bottom: 0.5em;
}

.prose a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.prose a:hover {
    text-decoration: underline;
}

.prose img {
    border-radius: 0.5rem;
    max-width: 100%;
    height: auto;
    margin: 2em auto;
    display: block;
}