/* Newspaper Site - Custom Styles */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
}

/* Category Tabs */
.category-tabs .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-tabs .nav-link {
    white-space: nowrap;
    color: #333;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 15px;
}

.category-tabs .nav-link:hover {
    border-bottom-color: #dee2e6;
}

.category-tabs .nav-link.active {
    border-bottom-color: #0d6efd;
    color: #0d6efd;
    font-weight: 600;
}

/* Featured Card */
.featured-card {
    overflow: hidden;
}

.featured-img {
    height: 400px;
    object-fit: cover;
}

.gradient-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

/* Article Cards */
.article-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

.article-card-horizontal:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

/* Breaking News Ticker */
.breaking-news {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Rating Stars */
.rating-stars {
    display: inline-flex;
    gap: 2px;
}

.rating-options .form-check-inline {
    margin-right: 15px;
}

/* Article Detail */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 1.5rem;
}

/* Related Articles */
.related-article:hover {
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: -8px;
    padding: 8px;
}

/* Dashboard Stats */
.bg-primary.bg-opacity-10 {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.bg-success.bg-opacity-10 {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-warning.bg-opacity-10 {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Cards */
.card {
    border-radius: 10px;
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 15px 20px;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 5px 10px;
}

/* Pagination */
.pagination .page-link {
    color: #667eea;
    border: none;
    margin: 0 2px;
    border-radius: 5px;
}

.pagination .page-item.active .page-link {
    background-color: #667eea;
    color: white;
}

.pagination .page-link:hover {
    background-color: #f0f0f0;
    color: #667eea;
}

/* Footer */
footer a:hover {
    color: #667eea !important;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-img {
        height: 250px;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

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

/* Premium Badge */
.badge.bg-warning {
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%) !important;
}