/* Enhanced Card Effects for Carousel - Dashboard Style */

.enhanced-card {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 1px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Top-right corner gradient overlay */
.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 85% 15%,
        var(--card-gradient-color, #8b0000) 0%,
        rgba(var(--card-gradient-rgb, 139, 0, 0), 0.4) 25%,
        rgba(var(--card-gradient-rgb, 139, 0, 0), 0.2) 45%,
        rgba(var(--card-gradient-rgb, 139, 0, 0), 0.05) 65%,
        transparent 80%
    );
    border-radius: 20px;
    z-index: 1;
    opacity: 0.9;
    transition: all 0.4s ease;
}

/* Content background */
.enhanced-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, #1f1f1f 0%, #2a2a2a 100%);
    border-radius: 20px;
    z-index: 0;
}

.enhanced-card-content {
    position: relative;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 2;
    background: transparent;
    border-radius: 20px;
}

.enhanced-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.enhanced-card:hover::before {
    opacity: 1;
    background: radial-gradient(
        circle at 85% 15%,
        var(--card-gradient-color, #8b0000) 0%,
        rgba(var(--card-gradient-rgb, 139, 0, 0), 0.5) 25%,
        rgba(var(--card-gradient-rgb, 139, 0, 0), 0.3) 45%,
        rgba(var(--card-gradient-rgb, 139, 0, 0), 0.1) 65%,
        transparent 75%
    );
}

/* Default gradient color - will be overridden by JavaScript */
.enhanced-card {
    --card-gradient-color: #8b0000;
    --card-gradient-rgb: 139, 0, 0;
}

/* Card content styles */
.enhanced-card-content .game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.enhanced-card:hover .game-image {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.enhanced-card-content .game-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.enhanced-card-content .game-price {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.enhanced-card-content .game-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* Game meta information styling */
.enhanced-card-content .game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.enhanced-card-content .game-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.enhanced-card-content .game-platform {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.enhanced-card-content .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.enhanced-card-content .price-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enhanced-card-content .price-old {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.enhanced-card-content .game-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.enhanced-card-content .game-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .enhanced-card::before {
        width: 50%;
        height: 50%;
        border-radius: 0 20px 0 40px;
    }
    
    .enhanced-card-content {
        padding: 20px;
    }
    
    .enhanced-card-content .game-image {
        height: 160px;
    }
    
    .enhanced-card-content .game-title {
        font-size: 1.2rem;
    }
    
    .enhanced-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* Animation for card entrance */
@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.enhanced-card.slide-in {
    animation: cardSlideIn 0.6s ease-out forwards;
}

/* Enhanced effect for active card */
.carousel-slide.active .enhanced-card {
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.carousel-slide.active .enhanced-card::before {
    opacity: 1;
}

/* Dashboard-Style Card Elements */
.enhanced-card-content .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.enhanced-card-content .card-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 500;
}

.enhanced-card-content .card-menu {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.enhanced-card-content .card-menu:hover {
    color: #8b0000;
}

.enhanced-card-content .game-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Progress Section */
.enhanced-card-content .progress-section {
    margin-bottom: 1.5rem;
}

.enhanced-card-content .progress-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.enhanced-card-content .progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

.enhanced-card-content .progress-fill {
    height: 100%;
    background: var(--card-gradient-color, #8b0000);
    border-radius: 2px;
    transition: all 0.6s ease;
}

.enhanced-card-content .progress-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    font-weight: 600;
    text-align: right;
}

/* Card Footer */
.enhanced-card-content .user-avatars {
    display: flex;
    gap: -8px;
}

.enhanced-card-content .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(139, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    border: 2px solid #1a1a1a;
    margin-left: -8px;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
}

.enhanced-card-content .avatar:hover {
    transform: translateY(-2px);
    background: rgba(139, 0, 0, 0.4);
}

.enhanced-card-content .price-text {
    color: #8b0000;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
