/* AI Modes Hub Styles */
.ai-modes-wrapper {
    background-color: var(--gray-50);
}

.hero-section {
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--border);
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* --- Rich Card Styles --- */
.rich-mode-card {
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.rich-mode-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-30);
}

.rich-mode-card.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-30), 0 12px 24px rgba(26, 115, 232, 0.1);
}

/* Image Zone */
.card-image-zone {
    height: 160px;
    position: relative;
    background-color: var(--gray-100);
    overflow: hidden;
    border-bottom: 1px solid var(--gray-100);
}

.card-image-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.6s ease;
}

.rich-mode-card:hover .card-image-content {
    transform: scale(1.15) rotate(2deg);
}

/* Action Buttons Overlay */
.action-btn-wrapper {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.rich-mode-card:hover .action-btn-wrapper {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--gray-600);
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rich-mode-card:hover .video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Badges & Tags */
.card-badge-top {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    z-index: 5;
    letter-spacing: 0.5px;
}

.image-bottom-tags {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.image-tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

/* Card Body */
.card-body {
    padding: 24px;
    flex-grow: 1;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.star-icon {
    color: #fbbc04;
    width: 16px;
    height: 16px;
}

.rating-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
}

.review-count {
    font-size: 12px;
    color: var(--gray-500);
}

/* Complexity Metrics */
.complexity-metrics {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-progress {
    height: 6px;
    background: var(--gray-100);
    border-radius: 10px;
    overflow: hidden;
}

.metric-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.1, 0, 0.2, 1);
}

/* Instructor Section */
.instructor-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--gray-50);
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    border: 1px solid var(--gray-100);
}

.instructor-info {
    display: flex;
    flex-direction: column;
}

.instructor-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
}

.instructor-role {
    font-size: 11px;
    color: var(--gray-500);
}

/* Footer Meta */
.card-footer-meta {
    background: var(--gray-50);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--gray-100);
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 500;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Action Bar */
.card-action-bar {
    padding: 16px 24px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--gray-100);
}

.price-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.price-sub {
    font-size: 12px;
    color: var(--gray-400);
    text-decoration: line-through;
}

/* Gradients */
.bg-grad-blue {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
}

.bg-grad-purple {
    background: linear-gradient(135deg, #9333ea 0%, #6b21a8 100%);
}

.bg-grad-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.bg-grad-red {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.bg-grad-pink {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.bg-grad-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.bg-grad-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.bg-grad-indigo {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
}

/* Category Pills */
.category-pill {
    padding: 10px 20px;
    border-radius: 14px;
    border: 1px solid var(--gray-100);
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.category-pill:hover {
    background: var(--gray-50);
    color: var(--secondary);
}

.category-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-30);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* New Technical Visuals */
.scanning-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    z-index: 6;
    animation: scan-move 4s linear infinite;
    box-shadow: 0 0 15px var(--primary);
    opacity: 0.6;
}

@keyframes scan-move {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(160px);
    }

    /* matches card-image-zone height */
}

.pulse-animation {
    animation: simple-pulse 1.5s infinite;
}

@keyframes simple-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.backdrop-blur-sm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bg-dark-50 {
    background: rgba(0, 0, 0, 0.5) !important;
}

.z-index-2 {
    z-index: 2 !important;
}

/* Pipeline Flow */
.pipeline-flow {
    padding-left: 20px;
}

.pipeline-line {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 17px;
    width: 2px;
    background: var(--gray-100);
}

.pipeline-step {
    display: flex;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--gray-400);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.pipeline-step.active .step-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-30);
}

.pipeline-step:hover .step-icon {
    border-color: var(--primary);
    color: var(--primary);
}