/* TraPay News Section - Minimal Design CSS */

/* News Cards Animation */
.news-card {
    opacity: 0;
    transform: translateY(20px);
    animation: newsSlideUp 0.6s ease-out forwards;
}

.news-card:nth-child(2) {
    animation-delay: 0.1s;
}

.news-card:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes newsSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Hover Effects */
.news-card:hover .group-hover\:text-trapay-primary {
    transform: translateX(-4px);
}

.news-card:hover .group-hover\:text-trapay-success {
    transform: translateX(-4px);
}

.news-card:hover .group-hover\:text-trapay-accent {
    transform: translateX(-4px);
}

/* Icon Hover Animation */
.news-card:hover .rounded-xl.flex.items-center.justify-center {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Badge Pulse Effect */
.news-card .rounded-full {
    animation: badgePulse 2s infinite;
}

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

/* Newsletter Form Enhancements */
form input:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 62, 126, 0.15);
}

form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 62, 126, 0.25);
}

/* Smooth Background Animation */
.absolute.inset-0 > div {
    animation: floatBackground 20s ease-in-out infinite;
}

.absolute.inset-0 > div:nth-child(2) {
    animation-delay: -10s;
}

@keyframes floatBackground {
    0%, 100% {
        transform: translate(var(--tw-translate-x), var(--tw-translate-y)) scale(1);
    }
    50% {
        transform: translate(var(--tw-translate-x), var(--tw-translate-y)) scale(1.1);
    }
}

/* Article Semantic Styling */
article {
    scroll-margin-top: 2rem;
}

/* Time Element Styling */
time {
    font-variant-numeric: tabular-nums;
}

/* Link Hover Enhancement */
.news-card a:hover i {
    transform: translateX(-2px);
    transition: transform 0.3s ease;
}

/* Focus States for Accessibility */
.news-card:focus-within {
    outline: 2px solid var(--trapay-primary);
    outline-offset: 4px;
    border-radius: 1rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .news-card {
        animation-delay: 0s !important;
    }
    
    .news-card:hover .rounded-xl.flex.items-center.justify-center {
        transform: scale(1.05);
    }
}

/* Newsletter Section Styling */
.newsletter-container {
    position: relative;
    overflow: hidden;
}

.newsletter-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--trapay-primary)/5 0%, transparent 100%);
    z-index: -1;
}

/* Enhanced Shadow System */
.news-card > div {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover > div {
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

/* Content Animation */
.news-card p {
    transition: color 0.3s ease;
}

.news-card:hover p {
    color: rgb(71, 85, 105);
}