/* IsraelPress - Tailwind Custom Companion CSS */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Base Typography */
body {
    font-family: 'Inter', 'Open Sans', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Editorial Serif for Headlines */
.font-headline {
    font-family: Georgia, 'Times New Roman', Times, serif;
}

/* Ticker Animation */
@keyframes ticker-scroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

.animate-ticker {
    animation: ticker-scroll 60s linear infinite;
}

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

/* Smooth Sidebar Transition */
.sidebar-transition {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Article Prose Content Styling */
.article-content p {
    margin-bottom: 1.25em;
    line-height: 1.8;
}

.article-content h2 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.article-content h3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5em 0;
}

.article-content blockquote {
    border-left: 4px solid #c70000;
    padding-left: 1em;
    margin: 1.5em 0;
    font-style: italic;
    color: #4b5563;
}

.article-content ul, .article-content ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.article-content li {
    margin-bottom: 0.5em;
}

.article-content a {
    color: #c70000;
    text-decoration: underline;
}

.article-content a:hover {
    color: #a00000;
}

/* Line Clamp Utilities */
.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;
}

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

/* Print Styles */
@media print {
    .noprint {
        display: none !important;
    }
}

/* Image lazy load fade-in */
.lozad {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lozad[data-loaded="true"],
.lozad.loaded {
    opacity: 1;
}

/* Backdrop blur fallback for older browsers */
@supports not (backdrop-filter: blur(4px)) {
    .backdrop-blur-sm {
        background: rgba(0, 0, 0, 0.8);
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #1e3a5f;
    outline-offset: 2px;
}

/* Horizontal scroll container for mobile */
.scroll-snap-x {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.scroll-snap-x > * {
    scroll-snap-align: start;
}

/* Hide scrollbar for horizontal scroll */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
