/* FactJO - Exact Tailwind Design Match */
@import url('https://fonts.googleapis.com/css2?family=Droid+Arabic+Kufi:wght@400;700&display=swap');

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

body {
    font-family: 'Droid Arabic Kufi', Arial, sans-serif;
    direction: rtl;
    background-color: #f8f9fa;
}

/* Exact Colors from React Project */
:root {
    --celtic: #102a1b;
    --totem-pole: #9b060e;
    --pink-swan: #c0b4b4;
    --hurricane: #8c7c7c;
}

/* Tailwind-like Utilities */
.bg-celtic { background-color: #102a1b !important; }
.bg-totem-pole { background-color: #9b060e !important; }
.bg-pink-swan { background-color: #c0b4b4 !important; }
.bg-hurricane { background-color: #8c7c7c !important; }
.text-celtic { color: #102a1b !important; }
.text-totem-pole { color: #9b060e !important; }
.text-pink-swan { color: #c0b4b4 !important; }
.border-celtic { border-color: #102a1b !important; }
.border-totem-pole { border-color: #9b060e !important; }

/* Container */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Grid System */
.row { display: flex; flex-wrap: wrap; margin: -0.5rem; }
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 992px) {
    .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
}

/* Spacing */
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.5rem !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { padding: 0.75rem !important; }
.m-4 { margin: 1rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-4 { margin-top: 1rem !important; }

/* Gap */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* Text */
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.fw-bold { font-weight: 700; }
.fw-medium { font-weight: 500; }
.text-white { color: #fff !important; }
.text-muted { color: #6c757d; }
.text-center { text-align: center; }

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }

@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
}

@media (max-width: 991px) {
    .d-lg-block { display: none !important; }
}

/* Backgrounds */
.bg-white { background-color: #fff !important; }
.bg-light { background-color: #f8f9fa !important; }
.bg-dark { background-color: #212529 !important; }

/* Borders */
.border { border: 1px solid #dee2e6; }
.border-bottom { border-bottom: 1px solid #dee2e6; }
.rounded { border-radius: 0.375rem !important; }
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.shadow { box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075); }
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075); }
.shadow-lg { box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15); }

/* Width & Height */
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

/* Position */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }

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

/* Card Component - EXACT Match */
.card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

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

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

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

/* Hero Section - EXACT Match from ModernHero */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 1rem 0;
}

.mobile-hero-section .mobile-main-article {
    margin-bottom: 1rem;
}

/* Article Card Main - Horizontal Layout */
.article-card-horizontal {
    display: flex;
    background: white;
    height: 60px;
    padding: 4px;
}

.article-card-horizontal img {
    width: 90px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.article-card-horizontal .content {
    flex: 1;
    padding-right: 12px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.article-card-horizontal .content h3 {
    color: #102a1b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Skeleton Loader - Animated */

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

.bg-gradient-to-t {
    background: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-black\/90 {
    --tw-gradient-from: rgba(0,0,0,0.9);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0,0,0,0));
}

.via-black\/50 {
    --tw-gradient-via: rgba(0,0,0,0.5);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to, rgba(0,0,0,0));
}

.to-transparent {
    --tw-gradient-to: transparent;
}

/* Object Fit */
.object-cover {
    object-fit: cover;
}

/* Hover Effects */
.hover-scale:hover {
    transform: scale(1.05);
}

.transition-all {
    transition: all 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

/* Grid Layouts - Removed to prevent conflicts with Tailwind CDN */
/* Tailwind CDN now handles all grid utilities including responsive breakpoints */

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

.top-bar {
    background: linear-gradient(135deg, #102a1b 0%, #0d1f15 100%);
    color: white;
    padding: 0.5rem 0;
}

/* Breaking News Bar - Exact Match */
.breaking-news-bar {
    background: #9b060e !important;
    padding: 0.5rem 0;
    overflow: hidden;
}

.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 */

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

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

/* Header Styles */
.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;
    color: #102a1b;
}

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

.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffd700;
}

.navbar-dark .nav-link i {
    font-size: 0.875rem;
}

.search-form .form-control {
    border-radius: 0.375rem 0 0 0.375rem;
    border: 1px solid #dee2e6;
}

.search-form .btn {
    border-radius: 0 0.375rem 0.375rem 0;
}

.header-ad .ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer - Match Original */
.footer {
    background: #102a1b;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer a {
    color: #c0b4b4;
    transition: color 0.3s ease;
}

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

.footer-widget h5 {
    color: white;
    font-size: 1.125rem;
}

.footer-widget .border-bottom {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

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

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

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
}

.newsletter-form .input-group {
    border-radius: 0.375rem;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
}

.newsletter-form .btn-warning {
    border: none;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .hero-section {
        padding: 0.5rem 0;
    }
}

/* Back to Top */
.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);
}

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