/* AI News - Bright & Vibrant Visual Styles */

/* Light theme navbar override */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar .logo {
    color: #1e293b;
}

.nav-links a {
    color: #64748b;
}

.nav-links a:hover,
.nav-links a.active {
    color: #6366f1;
}

:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-accent: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --gradient-hero: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* News Hero Section - Bright Gradient */
.news-hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #ffa95c 100%);
    padding: 100px 0 80px;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.news-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

.news-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.news-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.news-hero .hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto 2rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
}

.hero-badge.pulse {
    background: #ffffff;
    color: #ec4899;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: badgePulseLight 2s ease-in-out infinite;
}

@keyframes badgePulseLight {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
    50% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2.5rem 0;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-4px);
}

/* Featured News Section - Light */
.featured-news {
    padding: 60px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.title-icon {
    font-size: 1.5rem;
}

.view-all {
    color: #6366f1;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    transition: all 0.3s;
}

.view-all:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #4f46e5;
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
}

.featured-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.hero-feature {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.featured-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.hero-feature .featured-image {
    height: 280px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
}

.breaking-badge, .featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.breaking-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    animation: pulseBadge 2s infinite;
}

.breaking-badge.danger {
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

.featured-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.featured-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-feature .featured-content {
    padding: 2rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.news-tag {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-tag.anthropic {
    background: rgba(212, 165, 116, 0.2);
    color: #9a6b3c;
}

.news-tag.openai {
    background: rgba(16, 163, 127, 0.15);
    color: #059669;
}

.news-tag.openclaw {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.news-tag.nvidia {
    background: rgba(118, 185, 0, 0.15);
    color: #65a30d;
}

.news-tag.google {
    background: rgba(66, 133, 244, 0.15);
    color: #2563eb;
}

.featured-content h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.hero-feature .featured-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.news-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    flex: 1;
}

.news-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.highlight {
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6366f1;
}

.highlight.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    transition: all 0.3s;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.read-more-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.read-more-btn svg {
    transition: transform 0.3s;
}

.read-more-btn:hover svg {
    transform: translateX(4px);
}

.read-more {
    color: #6366f1;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.read-more:hover {
    color: #4f46e5;
}

/* News Section */
.news-section {
    padding: 60px 0;
}

.section-alt {
    background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
}

/* Masonry Grid */
.news-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.news-card-masonry {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.news-card-masonry:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-masonry:hover .card-image img {
    transform: scale(1.1);
}

.card-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-tag.openai {
    background: #10a37f;
    color: white;
}

.card-tag.anthropic {
    background: #d4a574;
    color: #1a1a2e;
}

.card-tag.xiaomi {
    background: #ff6900;
    color: white;
}

.card-tag.nvidia {
    background: #76b900;
    color: white;
}

.card-tag.google {
    background: #4285f4;
    color: white;
}

.card-tag.deepseek {
    background: #4f46e5;
    color: white;
}

.card-tag.mistral {
    background: #f97316;
    color: white;
}

.card-body {
    padding: 1.25rem;
}

.card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 500;
}

.card-body h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.card-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.card-stats {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.card-stats span {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    color: #6366f1;
    font-weight: 600;
}

.card-link {
    font-size: 0.85rem;
    color: #6366f1;
    font-weight: 700;
    transition: all 0.2s;
}

.card-link:hover {
    color: #4f46e5;
}

/* Horizontal Scroll Section */
.horizontal-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}

.scroll-card {
    flex: 0 0 320px;
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.scroll-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.scroll-image {
    height: 160px;
    overflow: hidden;
}

.scroll-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.scroll-card:hover .scroll-image img {
    transform: scale(1.1);
}

.scroll-content {
    padding: 1.25rem;
}

.scroll-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.scroll-tag.nvidia {
    background: rgba(118, 185, 0, 0.15);
    color: #65a30d;
}

.scroll-tag.openclaw {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.scroll-content h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.scroll-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.scroll-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Industry Grid */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.industry-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.industry-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.industry-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 12px;
}

.industry-content {
    flex: 1;
}

.industry-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.industry-content h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0.25rem 0 0.5rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.industry-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.industry-content a {
    font-size: 0.8rem;
    color: #6366f1;
    font-weight: 700;
}

.industry-content a:hover {
    color: #4f46e5;
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.newsletter-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.newsletter-content h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.newsletter-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    min-width: 400px;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* Enhanced Footer */
.footer {
    background: #ffffff;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.2s;
    font-weight: 500;
}

.footer-links a:hover {
    color: #6366f1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-feature {
        grid-row: span 1;
        grid-column: span 2;
    }
    
    .news-masonry {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 80px 0 60px;
    }
    
    .news-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .stat-item {
        padding: 1rem 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-feature {
        grid-column: span 1;
    }
    
    .news-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .industry-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-box {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .newsletter-form {
        min-width: unset;
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .news-masonry {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}
