/*
Theme Name: NewsPortal - Tailwind News Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A modern news portal WordPress theme built with Tailwind CSS featuring a professional layout for news websites, magazines, and blogs.
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: newsportal-theme
Tags: news, magazine, blog, tailwind, responsive, custom-menu, featured-images, post-formats
*/

/* Custom Styles - Tailwind will handle most styling */

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

/* Apply Bengali fonts to all elements EXCEPT icons */
body,
html,
h1, h2, h3, h4, h5, h6,
p, span, div, a, li, ul, ol,
input, textarea, select, button,
article, section, aside, nav, header, footer,
.font-bold,
.font-semibold,
.text-xl,
.text-2xl,
.text-3xl,
.text-4xl {
    font-family: 'Noto Sans', 'Noto Serif Bengali', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Headings use Noto Serif Bengali */
h1, h2, h3, h4, h5, h6,
.font-bold,
.font-semibold {
    font-family: 'Noto Serif Bengali', 'Noto Sans', serif !important;
}

/* Keep icon fonts intact - DO NOT override */
i, 
.fa, .fas, .far, .fal, .fab,
[class^="fa-"],
[class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 6 Pro" !important;
    font-style: normal;
}


.breaking-news-scroll {
    animation: scroll-left 20s linear infinite;
}

.breaking-news-scroll:hover {
    animation-play-state: paused;
}

/* Smooth Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Image Overlay Effect */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

.image-overlay img {
    transition: transform 0.3s ease;
}

.image-overlay:hover img {
    transform: scale(1.05);
}

/* Sticky Header Shadow */
.sticky-header {
    transition: all 0.3s ease;
}

.sticky-header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

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

/* Content Formatting */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.entry-content p {
    margin-bottom: 1.2em;
    line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

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

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

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5em 0;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: opacity 0.3s ease-in-out;
}

#mobile-menu .mobile-menu {
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.active {
    opacity: 1;
}

#mobile-menu.active .mobile-menu {
    transform: translateX(0);
}

/* Hide mobile menu on desktop */
@media (min-width: 1024px) {
    #mobile-menu {
        display: none !important;
    }
}

/* Category Badge Styles */
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

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