/**
 * OrdinalNews Premium Cards Styles - Balanced Performance
 * Moderate animations with optimized performance
 */

/* Premium card base styles */
.ordinalnews-card.premium-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.4);
    background-clip: padding-box;
}

/* Animated golden border with moderate performance impact */
.premium-border-static {
    position: absolute;
    inset: -2px; /* Slightly larger than the card */
    z-index: -1;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #FFD700 0%, 
        #FFA500 35%, 
        #FFD700 50%, 
        #FFC107 65%,
        #FFD700 100%
    );
    opacity: 0.6;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    filter: blur(1px);
    animation: border-shine 3s infinite alternate;
}

/* New visible shine effect - diagonal sweep */
.premium-shine-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -150%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.15), 
        transparent
    );
    transform: skewX(-20deg);
    z-index: 2;
    pointer-events: none;
    animation: shine-sweep 3s ease-in-out infinite;
}

/* Hover effect with moderate animation */
.ordinalnews-card.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

/* Premium label styling */
.ordinalnews-card-label.premium-label {
    background-color: rgba(255, 215, 0, 0.9);
    color: #000;
    font-weight: bold;
}

/* Animation keyframes */
@keyframes border-shine {
    0% {
        opacity: 0.5;
        filter: blur(1px);
    }
    100% {
        opacity: 0.7;
        filter: blur(0.5px);
    }
}

@keyframes shine-sweep {
    0% {
        left: -150%;
    }
    50% {
        left: 150%;
    }
    100% {
        left: -150%;
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .ordinalnews-card.premium-card {
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
    }
    
    .ordinalnews-card.premium-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 3px 15px rgba(255, 215, 0, 0.3);
    }
}

@media (prefers-reduced-motion: reduce) {
    .premium-border-static,
    .premium-shine-effect {
        animation: none;
    }
} 