/* مدونة Tiger TV - ملف CSS */

:root {
    --tiger-primary: #ff6600;
    --tiger-secondary: #ff8533;
    --tiger-accent: #ffaa66;
    --tiger-dark: #cc5200;
    --tiger-light: #fff2e6;
    --tiger-gradient: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
}

/* Hero Section */
.blog-hero {
    background: var(--tiger-gradient);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/blog-pattern.png') repeat;
    opacity: 0.1;
}

.blog-stats .stat-item {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

/* Search and Filters */
.blog-filters {
    border-bottom: 1px solid #e9ecef;
}

.search-box .form-control {
    border-radius: 25px 0 0 25px;
    border: 2px solid var(--tiger-primary);
    padding: 12px 20px;
}

.search-box .btn {
    border-radius: 0 25px 25px 0;
    border: 2px solid var(--tiger-primary);
    border-left: none;
}

.category-filter .form-select {
    border-radius: 25px;
    border: 2px solid #e9ecef;
    padding: 12px 20px;
}

.category-filter .form-select:focus {
    border-color: var(--tiger-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.25);
}

/* Featured Article */
.featured-card {
    position: relative;
}

.featured-card .card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.featured-card .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.featured-card .card-img-top {
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.featured-card .card-title a {
    color: #333;
    transition: color 0.3s ease;
}

.featured-card .card-title a:hover {
    color: var(--tiger-primary);
}

/* Article Cards */
.article-card .card {
    border-radius: 15px;
    transition: all 0.3s ease;
    border: none;
}

.article-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.article-card .card-title a {
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-card .card-title a:hover {
    color: var(--tiger-primary);
}

/* Article Meta */
.article-meta .badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
}

.article-meta .text-muted {
    font-size: 0.85rem;
}

/* Article Actions */
.article-actions .btn {
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.85rem;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--tiger-gradient);
    position: relative;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/newsletter-pattern.png') repeat;
    opacity: 0.1;
}

.newsletter-form .form-control {
    border: none;
    border-radius: 50px 0 0 50px;
    padding: 15px 25px;
    font-size: 1.1rem;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 15px 30px;
    font-weight: 600;
    border: none;
}

/* Section Titles */
.section-title {
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--tiger-gradient);
    border-radius: 2px;
}

/* Load More Button */
#loadMoreBtn {
    border-radius: 30px;
    padding: 12px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

#loadMoreBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero .display-4 {
        font-size: 2rem;
    }
    
    .blog-stats {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .blog-stats .stat-item {
        justify-content: center;
    }
    
    .featured-card .card-img-top {
        height: 200px;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control {
        border-radius: 25px;
        margin-bottom: 10px;
    }
    
    .newsletter-form .btn {
        border-radius: 25px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.5s ease;
}

.slide-up.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Search Results */
.search-results {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.search-results .result-count {
    color: var(--tiger-primary);
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Category Badges */
.badge.bg-technical { background-color: #007bff !important; }
.badge.bg-sports { background-color: #28a745 !important; }
.badge.bg-entertainment { background-color: #ffc107 !important; color: #000 !important; }
.badge.bg-news { background-color: #dc3545 !important; }
.badge.bg-tips { background-color: #6f42c1 !important; }

/* Social Share Buttons */
.social-share {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-share .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.social-share .btn-facebook { background-color: #3b5998; border-color: #3b5998; }
.social-share .btn-twitter { background-color: #1da1f2; border-color: #1da1f2; }
.social-share .btn-linkedin { background-color: #0077b5; border-color: #0077b5; }
.social-share .btn-whatsapp { background-color: #25d366; border-color: #25d366; }

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--tiger-gradient);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Comments Section */
.comments-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
}

.comment-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--tiger-primary);
}

.comment-author {
    font-weight: 600;
    color: var(--tiger-primary);
}

.comment-date {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Tags */
.article-tags {
    margin-top: 20px;
}

.article-tags .tag {
    display: inline-block;
    background: var(--tiger-light);
    color: var(--tiger-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 5px 5px 5px 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-tags .tag:hover {
    background: var(--tiger-primary);
    color: white;
    transform: translateY(-2px);
}
