/* AI Daily Digest specific styles */
.digest-hero {
    background: var(--gradient-bg);
    padding: 6rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.digest-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3) 0%, rgba(139, 92, 246, 0.4) 50%, rgba(30, 58, 138, 0.3) 100%);
}

.digest-hero-content {
    position: relative;
    z-index: 10;
}

.digest-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.75rem;
    color: white;
    font-weight: 700;
}

.digest-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.4;
}

.news-container {
    padding: 4rem 0;
    background: rgba(30, 58, 138, 0.05);
}

.news-header {
    text-align: center;
    margin-bottom: 3rem;
}

.news-header h2 {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.news-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

#ai-news {
    font-family: var(--font-body);
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.news-item {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.08) 0%, rgba(139, 92, 246, 0.12) 50%, rgba(30, 58, 138, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

.news-item:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.news-item h3 {
    color: #a78bfa;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.news-header-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.favicon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    border-radius: 3px;
}

.news-link {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-normal);
}

.news-link:hover {
    color: #a78bfa;
    text-decoration: underline;
}

.news-summary {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    font-size: 0.95rem;
    color: #a78bfa;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: #8b5cf6;
    text-decoration: underline;
}

.read-more::after {
    content: "→";
    transition: var(--transition-normal);
}

.read-more:hover::after {
    transform: translateX(3px);
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.error {
    text-align: center;
    padding: 3rem;
    color: #ef4444;
    font-size: 1.1rem;
}

.refresh-btn {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    margin: 2rem auto;
    display: block;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .digest-hero {
        padding: 5rem 0 1.5rem;
    }
    
    .news-item {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .news-link {
        font-size: 1.1rem;
    }
    
    .news-summary {
        font-size: 0.95rem;
    }
}

/* Professional Footer Styles */
.footer {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(139, 92, 246, 0.9) 50%, rgba(30, 58, 138, 0.95) 100%);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    text-align: left;
    align-self: flex-start;
}

.footer-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-normal);
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: #a78bfa;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-normal);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.2);
}

.social-link .icon {
    width: 24px;
    height: 24px;
    fill: var(--text-secondary);
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.social-link:hover .icon {
    fill: #a78bfa;
    transform: scale(1.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: #a78bfa;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
