/* News Website Theme Customization */

:root {
    --news-primary-color: #1e3a8a;        /* Blue theme color from manifest */
    --news-secondary-color: #ffffff;       /* Lighter blue */
    --news-accent-color: #dc2626;          /* Red for breaking news */
    --news-text-color: #1f2937;           /* Dark gray for text */
    --news-light-bg: #f8fafc;             /* Light background */
    --news-white: #ffffff;                 /* Pure white */
    --news-border-color: #e5e7eb;         /* Light border */
}

/* Header and Navigation Styling */
.navbar-brand {
    color: var(--news-primary-color) !important;
    font-weight: 700;
}

.nav-link:hover {
    color: var(--news-primary-color) !important;
}

/* Breaking News Banner */
.breaking-news {
    background-color: var(--news-accent-color);
    color: var(--news-white);
    padding: 10px 0;
    font-weight: 600;
}

/* Article Cards */
.article-card {
    border: 1px solid var(--news-border-color);
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
}

/* Category Badges */
.category-badge {
    background-color: var(--news-primary-color);
    color: var(--news-white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.category-badge.politics {
    background-color: #7c3aed;
}

.category-badge.sports {
    background-color: #059669;
}

.category-badge.entertainment {
    background-color: #dc2626;
}

.category-badge.business {
    background-color: #d97706;
}

/* Footer Styling */
.footer {
    background-color: var(--news-primary-color);
    color: var(--news-white);
}

.footer a {
    color: var(--news-white);
    opacity: 0.95;
}

.footer a:hover {
    opacity: 1;
}

/* PWA Install Button */
.pwa-install-button {
    background-color: var(--news-primary-color);
    color: var(--news-white);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: none;
}

.pwa-install-button:hover {
    background-color: var(--news-secondary-color);
}

/* PWA Install Section in Footer */
.pwa-install-section {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    padding: 2rem 0;
    margin-bottom: 2rem;
    animation: slideInDown 0.5s ease-out;
}

.pwa-install-banner {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.pwa-banner-icon {
    color: #f8f9fa;
    flex-shrink: 0;
}

.pwa-banner-text {
    flex: 1;
    min-width: 250px;
    color: #f8f9fa;
}

.pwa-banner-text h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.pwa-banner-text p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #d1d5db;
}

.pwa-banner-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.pwa-install-button,
.pwa-dismiss-button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.pwa-install-button {
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pwa-install-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.pwa-dismiss-button {
    background: rgba(255, 255, 255, 0.1);
    color: #f8f9fa;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pwa-dismiss-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Animation */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for News Layout */
@media (max-width: 768px) {
    .article-card {
        margin-bottom: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .pwa-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .pwa-banner-icon {
        margin: 0 auto;
    }
    
    .pwa-banner-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .pwa-install-button,
    .pwa-dismiss-button {
        width: 100%;
        justify-content: center;
    }
    
    .pwa-banner-text h5 {
        font-size: 1.1rem;
    }
    
    .pwa-banner-text p {
        font-size: 0.9rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --news-light-bg: #1f2937;
        --news-text-color: #f9fafb;
        --news-border-color: #374151;
    }
}

/* Footer styling adjustments */
.footer-area {
    position: relative;
}

/* Enhanced Footer Styles */
.footer-area-content {
    padding: 3rem 0;
}

.footer-area-content .menu h6 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-area-content .menu h6::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--news-secondary-color);
    border-radius: 2px;
}

.footer-area-content .menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-area-content .menu ul li {
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease;
}

.footer-area-content .menu ul li:hover {
    transform: translateX(5px);
}

.footer-area-content .menu ul li a {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-area-content .menu ul li a:hover {
    color: var(--news-secondary-color) !important;
    opacity: 1 !important;
}

.footer-area-content .badge-count {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-left: 0.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-about {
    line-height: 1.7;
}

.footer-about p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Social Icons Styling */
.social-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--news-white) !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: var(--news-secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 1 !important;
}

.social-icon i {
    font-size: 1.2rem;
}

/* Social media in footer Quick Links */
.social-media-footer {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.social-media-footer .social-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Footer Copyright */
.footer-area-copyright {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-area-copyright .copyright p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Footer */
@media (max-width: 991px) {
    .footer-area-content {
        padding: 2rem 0;
    }
    
    .footer-area-content .menu {
        margin-bottom: 2rem;
    }
    
    .footer-about img {
        max-width: 120px !important;
    }
    
    /* Ensure columns stack nicely on tablets */
    .footer-area-content .col-md-6 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    .footer-area-content {
        padding: 1.5rem 0;
    }
    
    .footer-area-content .menu {
        text-align: center;
        margin-bottom: 2.5rem;
    }
    
    .footer-area-content .menu h6 {
        font-size: 1rem;
        text-align: center;
    }
    
    .footer-area-content .menu h6::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-area-content .menu ul li {
        text-align: center;
    }
    
    .footer-area-content .menu ul li:hover {
        transform: none;
    }
    
    .footer-about {
        text-align: center;
    }
    
    .footer-about img {
        margin: 0 auto;
        display: block;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-area-copyright .copyright {
        text-align: center;
    }
}

@media (max-width: 575px) {
    .footer-area-content {
        padding: 1rem 0;
    }
    
    .footer-area-content .menu {
        margin-bottom: 2rem;
    }
    
    .footer-area-content .menu h6 {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .footer-area-content .menu ul li {
        margin-bottom: 0.5rem;
    }
    
    .footer-area-content .menu ul li a {
        font-size: 0.9rem;
    }
    
    .footer-about p {
        font-size: 0.85rem;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
    
    .social-icon i {
        font-size: 1.1rem;
    }
}

/* Related Posts Mobile Responsive */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.related-posts .post-single-title h3 {
    margin-bottom: 2rem;
}

@media (max-width: 991px) {
    .related-posts {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
    }
    
    .related-posts .post-single-title h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767px) {
    .related-posts {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .related-posts .post-single-title h3 {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .related-posts .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    .related-posts .post-list-style4 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575px) {
    .related-posts {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .related-posts .post-single-title h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .related-posts .post-list-style4 .post-list-content h5 {
        font-size: 1rem;
    }
    
    .related-posts .post-list-style4 .entry-meta {
        font-size: 0.85rem;
    }
}
