﻿/* ===================================================
   HOTMART-STYLE ENHANCEMENTS FOR VIRTUAL COURSES
   =================================================== */

/* Virtual Course Card Improvements */
.course-card.virtual-course {
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.95), rgba(10, 10, 20, 0.95));
    border: 1px solid rgba(199, 142, 63, 0.2);
    position: relative;
    overflow: hidden;
}

.course-card.virtual-course::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-gold), #d4a049);
}

/* Course Image with Play Button Overlay */
.course-image {
    position: relative;
    overflow: hidden;
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: var(--secondary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.course-card:hover .play-button {
    transform: scale(1);
}

.play-button i {
    font-size: 1.5rem;
    margin-left: 3px;
}

/* Category Badge */
.course-category-badge {
    display: inline-block;
    background: rgba(199, 142, 63, 0.15);
    color: var(--secondary-gold);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* Featured Badge */
.badge-featured {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Course Highlights Section */
.course-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 10px;
    background: rgba(199, 142, 63, 0.08);
    border-radius: 15px;
}

.highlight-item i {
    color: var(--secondary-gold);
    font-size: 0.9rem;
}

/* Price Section Enhancement */
.price-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-gold);
    line-height: 1;
}

.price-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Virtual Badge Enhancement */
.badge-virtual {
    background: linear-gradient(135deg, rgba(199, 142, 63, 0.9), rgba(212, 160, 73, 0.9));
    backdrop-filter: blur(10px);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(199, 142, 63, 0.3);
}

/* Course Footer Layout */
.course-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
}

.course-footer .btn-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    white-space: nowrap;
}

.course-footer .btn-primary i {
    transition: transform 0.3s ease;
}

.course-footer .btn-primary:hover i {
    transform: translateX(5px);
}

/* Hover Effects */
.course-card.virtual-course:hover {
    border-color: rgba(199, 142, 63, 0.4);
    box-shadow: 0 15px 40px rgba(199, 142, 63, 0.2);
    transform: translateY(-5px);
}

/* Meta itemás color override for virtual */
.virtual-course .meta-item i {
    color: var(--secondary-gold);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .course-highlights {
        flex-direction: column;
    }

    .highlight-item {
        width: 100%;
    }

    .course-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .price-section {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
    }

    .price {
        font-size: 1.75rem;
    }

    .course-footer .btn-primary {
        width: 100%;
    }
}

/* Loading State for Images */
.course-image[style*="placeholder"] {
    background-size: cover !important;
    background-position: center !important;
}

/* Empty Cart improvements */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    color: var(--secondary-gold);
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 10px 0;
}
