/* KabaDaily.News - Authentic News Publication Styles */

:root {
    /* Core editorial colors */
    --primary-color: #c41e3a; /* Deep red - news authority */
    --primary-light: #dc3545;
    --primary-dark: #a71d2a;
    --secondary-color: #6c757d;
    --accent-color: #fd7e14; /* African sunset orange */
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #333333;
    --text-muted: #6c757d;

    /* African-inspired colors */
    --gold-color: #ffc107;
    --earth-color: #8b4513;
    --green-color: #198754;

    /* Typography scale */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layout */
    --max-width: 1200px;
    --border-radius: 4px;
    --box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Editorial Typography */
body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-color);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.display-4 {
    font-size: 2.25rem;
    line-height: 1.2;
}

/* Editorial elements */
.byline {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dateline {
    font-size: 13px;
    color: var(--text-muted);
}

.kicker {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* Authentic News Navigation */
.navbar {
    border-bottom: 3px solid var(--primary-color);
    padding: 1rem 0;
    background: white;
}

.navbar-brand {
    font-family: var(--font-serif) !important;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--dark-color) !important;
    text-decoration: none !important;
}

.navbar-brand .text-primary {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--dark-color) !important;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
    background: none;
}

.navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Editorial Hero Section */
.hero-section {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-article {
    background: white;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

.hero-article:hover {
    box-shadow: var(--box-shadow);
}

.hero-image {
    height: 300px;
    object-fit: cover;
    width: 100%;
}

.hero-article .p-4 {
    padding: 1.5rem !important;
}

.hero-article .display-5 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.hero-article .lead {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.category-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: inline-block;
}

.category-badge:hover {
    background-color: var(--primary-dark);
    color: white;
    text-decoration: none;
}

.article-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.article-meta i {
    margin-right: 0.25rem;
}

/* Editorial Article Cards */
.article-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    transition: box-shadow 0.2s ease;
    height: 100%;
}

.article-card:hover {
    box-shadow: var(--box-shadow);
}

.article-card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.article-card .card-body {
    padding: 1.25rem;
}

.article-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.article-card .card-title a {
    color: inherit;
    text-decoration: none;
}

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

.article-card .card-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Section Headers */
.section-header {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header .btn {
    font-size: 13px;
    padding: 0.375rem 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Editorial Trending Section */
.trending-list {
    background: white;
    border: 1px solid var(--border-color);
    padding: 1.25rem;
}

.trending-item {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.trending-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.trending-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.trending-item h4 a {
    color: var(--dark-color);
    text-decoration: none;
}

.trending-item h4 a:hover {
    color: var(--primary-color);
}

.trending-item .article-meta {
    margin-bottom: 0;
    font-size: 12px;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
}

.newsletter-section .display-6 {
    font-weight: 700;
    font-size: 1.75rem;
}

.newsletter-section .lead {
    font-size: 1.125rem;
    opacity: 0.95;
}

.newsletter-form .form-control {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1rem;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    box-shadow: none;
}

.newsletter-form .btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.newsletter-form .btn:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Social share buttons */
.social-share {
    gap: 0.5rem;
}

.social-share .btn {
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-whatsapp {
    background-color: #25d366;
    border-color: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    border-color: #1ebe57;
    color: white;
}

.btn-twitter {
    background-color: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

.btn-twitter:hover {
    background-color: #0d8bd9;
    border-color: #0d8bd9;
    color: white;
}

.btn-facebook {
    background-color: #1877f2;
    border-color: #1877f2;
    color: white;
}

.btn-facebook:hover {
    background-color: #166fe5;
    border-color: #166fe5;
    color: white;
}

.btn-linkedin {
    background-color: #0a66c2;
    border-color: #0a66c2;
    color: white;
}

.btn-linkedin:hover {
    background-color: #004182;
    border-color: #004182;
    color: white;
}

/* Enhanced Article Content Typography */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--dark-color);
    max-width: 65ch;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.article-content p {
    margin-bottom: 1.75rem;
    text-align: justify;
    hyphens: auto;
}

.article-content p:first-of-type {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem 0;
    color: var(--dark-color);
    position: relative;
}

.article-content h2 {
    font-size: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.article-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.article-content h4 {
    font-size: 1.25rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 2.5rem 0;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-slow);
}

.article-content img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.article-content blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-muted);
    border-left: 4px solid var(--accent-color);
    padding-left: 2rem;
    margin: 2rem 0;
    background: var(--light-color);
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--accent-color);
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-family: 'Playfair Display', serif;
}

.article-content ul,
.article-content ol {
    padding-left: 2rem;
    margin-bottom: 1.75rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: var(--transition);
}

.article-content a:hover {
    color: var(--primary-dark);
    text-decoration-color: var(--primary-color);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-image {
        height: 250px;
    }

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

    .article-card-img {
        height: 150px;
    }

    .trending-item {
        padding-left: 2.5rem;
    }

    .trending-item::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }
}

/* Language switcher */
.navbar .dropdown-toggle::after {
    display: none;
}

/* Footer Styling */
footer {
    background-color: #212529 !important;
}

footer h5, footer h6 {
    color: #fff !important;
}

footer .text-primary {
    color: var(--primary-color) !important;
}

footer .text-muted {
    color: #6c757d !important;
}

footer .text-light {
    color: #f8f9fa !important;
}

footer a {
    color: #6c757d;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

footer .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #f8f9fa;
}

footer .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* Professional Loading States & Micro-interactions */
.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

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

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

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

.slide-up {
    animation: slideUp 0.8s ease-out;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Button Enhancements */
.btn {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.btn-outline-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-outline-primary:hover::after {
    width: 100%;
}

.btn-outline-primary:hover {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

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

/* Focus styles */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .social-share,
    .newsletter-section {
        display: none !important;
    }

    .article-content {
        font-size: 12pt;
        line-height: 1.5;
    }
}