/* UnganishaNow — custom styles beyond Tailwind */

/* Hide Alpine.js elements until loaded */
[x-cloak] {
    display: none !important;
}

/* Line clamping for article cards */
.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;
}

/* Basic prose styles for article content (CKEditor output) */
.prose h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.prose p { margin-bottom: 1.25rem; line-height: 1.8; }
.prose ul, .prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.5rem; }
.prose blockquote {
    border-left: 4px solid #F59E0B;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #4B5563;
}
.prose img { border-radius: 0.5rem; margin: 1.5rem 0; }
.prose a { color: #D97706; text-decoration: underline; }
.prose a:hover { color: #B45309; }

/* Dark mode prose overrides */
.dark .prose { color: #D1D5DB; }
.dark .prose h2, .dark .prose h3 { color: #F3F4F6; }
.dark .prose blockquote { color: #9CA3AF; }
.dark .prose a { color: #F59E0B; }
.dark .prose a:hover { color: #FBBF24; }

/* Breaking news ticker marquee */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    animation: marquee 30s linear infinite;
}
.animate-marquee:hover {
    animation-play-state: paused;
}

/* Skeleton pulse animation */
@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.animate-pulse {
    animation: skeleton-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Carousel focus style */
section[aria-roledescription="carousel"]:focus {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
    border-radius: 1rem;
}

/* Touch target sizing — ensure 44px minimum on mobile */
@media (pointer: coarse) {
    header button,
    header nav a,
    .pagination a,
    .pagination span {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Smooth scroll */
html { scroll-behavior: smooth; }
