/* Additional Premium Enhancements */

/* Fade-in animation for content */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Initials Avatar Styles */
.initials-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--cnbc-blue), #1e40af);
    box-shadow: 0 4px 12px rgba(0, 102, 161, 0.2);
    font-size: 1.5rem;
}

.author-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.container {
    animation: fadeIn 0.5s ease-out;
}

/* Enhanced article cards with depth */
.article-card,
.modern-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.article-card:hover,
.modern-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Glowing effect on featured article */
.featured-article {
    position: relative;
}

.featured-article::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-accent);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-article:hover::after {
    opacity: 0.15;
}

/* Animated underline for navigation links */
.main-nav a {
    position: relative;
    display: inline-block;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav .active a::after {
    width: 100%;
}

/* Loading spinner for images */
img {
    animation: imageLoad 0.3s ease-in;
}

@keyframes imageLoad {
    from {
        opacity: 0;
        filter: blur(5px);
    }

    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* Enhanced category tags with glow */
.category-tag {
    position: relative;
    box-shadow: 0 2px 8px rgba(210, 45, 39, 0.3);
    animation: tagPulse 2s ease-in-out infinite;
}

@keyframes tagPulse {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(210, 45, 39, 0.3);
    }

    50% {
        box-shadow: 0 4px 16px rgba(210, 45, 39, 0.5);
    }
}

/* Sidebar enhancements */
.sidebar {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced footer */
/* Modern Footer Redesign */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #cbd5e1;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cnbc-red), transparent);
    opacity: 0.5;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

@media (min-width: 992px) {
    .footer-main {
        grid-template-columns: 1.5fr 2fr;
    }
}

.footer-brand {
    max-width: 450px;
}

.footer-logo {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo .logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    letter-spacing: -1px;
}

.footer-logo .logo-accent {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--cnbc-red);
    letter-spacing: -1px;
}

.brand-desc {
    line-height: 1.8;
    margin-bottom: 30px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-social-new {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    transform: translateY(-5px);
    background: var(--cnbc-red);
    border-color: var(--cnbc-red);
    box-shadow: 0 10px 20px rgba(210, 45, 39, 0.3);
}

.footer-nav-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.footer-column h4 {
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--cnbc-red);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.copyright-text {
    font-size: 0.85rem;
    color: #64748b;
}

.copyright-text .highlight {
    color: #94a3b8;
    font-weight: 600;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Mobile nav enhancements */
.mobile-bottom-nav-item {
    transition: all 0.3s ease;
}

.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item.active {
    transform: translateY(-3px);
    background: rgba(0, 102, 161, 0.1);
}

/* Enhanced buttons with shine effect */
.btn,
button {
    position: relative;
    overflow: hidden;
}

.btn::after,
button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:active::after,
button:active::after {
    width: 300px;
    height: 300px;
}

/* Scroll reveal effect */
@media (prefers-reduced-motion: no-preference) {
    .articles-grid>* {
        opacity: 0;
        animation: fadeInUp 0.6s ease forwards;
    }

    .articles-grid>*:nth-child(1) {
        animation-delay: 0.1s;
    }

    .articles-grid>*:nth-child(2) {
        animation-delay: 0.2s;
    }

    .articles-grid>*:nth-child(3) {
        animation-delay: 0.3s;
    }

    .articles-grid>*:nth-child(4) {
        animation-delay: 0.4s;
    }

    .articles-grid>*:nth-child(5) {
        animation-delay: 0.5s;
    }

    .articles-grid>*:nth-child(6) {
        animation-delay: 0.6s;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}