/* FactJO - Tailwind CSS Custom Styles with Celtic Theme */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Family - Exclude Font Awesome icons */
*:not([class*="fa-"]):not(i[class*="fa"]) {
    font-family: 'Droid Arabic Kufi', Arial, sans-serif !important;
}

:root {
    --celtic: #102a1b;
    --totem-pole: #9b060e;
    --pink-swan: #c0b4b4;
    --hurricane: #8c7c7c;
    /* Add color- prefix versions for mobile-enhancements.css compatibility */
    --color-celtic: #102a1b;
    --color-totem-pole: #9b060e;
    --color-pink-swan: #c0b4b4;
    --color-hurricane: #8c7c7c;
}

body {
    font-family: 'Droid Arabic Kufi', Arial, sans-serif !important;
    direction: rtl;
    background-color: #f8f9fa;
    line-height: 1.7;
    color: var(--celtic);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Animations */
@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}


/* Breaking News Ticker */
.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-weight: 500;
    color: white;
}

/* Removed yellow bullet - using logo banner instead */

.breaking-news-bar:hover .ticker-content {
    animation-play-state: paused;
}




/* Header Styles */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hover-yellow {
    transition: color 0.3s ease;
}

.hover-yellow:hover {
    color: #ffd700 !important;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    border-radius: 0.375rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #102a1b;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #9b060e;
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.show {
    max-height: 1000px;
}

/* Footer Styles */
.footer {
    background: #102a1b;
    color: white;
}

.footer a {
    color: #c0b4b4;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer a:hover {
    color: #ffd700;
}

.footer .social-links a {
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background-color: #ffd700;
    border-color: #ffd700;
    color: #102a1b;
    transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #102a1b;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background: #9b060e;
    transform: translateY(-5px);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #102a1b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Article Card Hover Effects */
.article-card {
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.article-card img {
    transition: transform 0.5s ease;
}

.article-card:hover img {
    transform: scale(1.05);
}

/* Gradient Overlays */
.gradient-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
}

/* Line Clamp Utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.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;
}

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

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

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

/* Hide scrollbar for mobile categories */
.mobile-categories-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-categories-scroll::-webkit-scrollbar {
    display: none;
}

/* Responsive Typography */
.responsive-text-xl {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
}

.responsive-text-2xl {
    font-size: clamp(1.5rem, 3.5vw, 1.875rem);
}

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus {
    outline: none;
    border-color: #102a1b;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
