/* Custom Styles for SawNews */

/* Arabic Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700;800&family=Noto+Serif+Arabic:wght@400;500;600;700&display=swap');

/* Base Styles */
body {
    font-family: 'Noto Sans Arabic', system-ui, sans-serif;
    line-height: 1.6;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

.category-card:hover {
    transform: translateY(-5px);
}

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

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

/* Text Selection */
::selection {
    background-color: rgba(14, 165, 233, 0.3);
    color: #0c4a6e;
}

/* Custom Underline Animation */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    right: 0;
    background-color: #0ea5e9;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.hover-underline:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

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

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

/* Responsive Typography */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 1.125rem;
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, #0ea5e9 0%, #eab308 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Custom Border Radius */
.rounded-custom {
    border-radius: 1rem;
}

/* Box Shadow Custom */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Transition Utilities */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}