/* Feature Discovery Cards CSS - Complete Enhanced Version */

/* Card Format - Subtle Integration */
.feature-card {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #8b5cf6;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
}

.feature-card .feature-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #8b5cf6;
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.625rem;
    font-weight: 600;
}

.feature-card .feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.feature-card .feature-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.feature-card .feature-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.feature-card .feature-description {
    color: #ccc;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 14px;
}

.feature-card .feature-cta {
    background: transparent;
    color: #8b5cf6;
    border: 1px solid #8b5cf6;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-card .feature-cta:hover {
    background: #8b5cf6;
    color: white;
}

/* Video Card Format - Enhanced for better click-through rates */
.feature-video-card {
    background: #2a2a2a;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    height: 70vh;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.feature-video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2;
}

.feature-video-card .feature-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: purple;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.feature-video-container {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feature-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.feature-video-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.feature-video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px 16px 16px;
    z-index: 2;
}

.feature-content {
    padding: 5px;
    background: #000;
    min-height: 400px;
    background: purple;
}

.feature-video-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Enhanced video overlay - adjusted for full-width bar */
.feature-video-overlay-enhanced {
    position: absolute;
    bottom: 48px;
    left: 0;
    right: 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9));
    padding: 20px 20px 15px;
    z-index: 2;
    pointer-events: none;
}

.feature-video-overlay-enhanced * {
    pointer-events: auto;
}

/* NEW: Interactive Elements for Better CTR */

/* Simplified Interaction Bar with Tap to View - Full Width */
.feature-interaction-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
    border-radius: 0 0 12px 12px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.feature-interaction-bar:hover {
    background: linear-gradient(90deg, #7c3aed, #9333ea);
}

.feature-interaction-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: none;
}

.feature-interaction-chevron {
    color: white;
    font-size: 1.125rem;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.feature-interaction-bar:hover .feature-interaction-chevron {
    transform: translateX(2px);
}

/* Remove old elements */
.feature-interaction-progress {
    display: none;
}

.feature-tap-indicator {
    display: none;
}

.feature-tap-icon {
    display: none;
}

/* Shimmer Effect on Hover */
.feature-video-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    z-index: 2;
    transition: left 0.6s ease;
    pointer-events: none;
}

.feature-video-card:hover::after {
    left: 100%;
}

/* Subtle pulsing border to indicate interactivity */
.feature-video-card-interactive {
    box-shadow: 
        0 0 0 1px rgba(139, 92, 246, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.15);
    animation: interactiveBorder 4s ease-in-out infinite;
}

@keyframes interactiveBorder {
    0%, 100% { 
        box-shadow: 
            0 0 0 1px rgba(139, 92, 246, 0.3),
            0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% { 
        box-shadow: 
            0 0 0 2px rgba(139, 92, 246, 0.5),
            0 6px 20px rgba(139, 92, 246, 0.2);
    }
}

/* Video Modal */
.feature-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-video-modal.show {
    opacity: 1;
    visibility: visible;
}

.feature-video-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}

.feature-video-modal.show .feature-video-modal-content {
    transform: scale(1);
}

.feature-video-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-video-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.feature-video-modal-player {
    position: relative;
    width: 100%;
    background: #000;
    flex: 1;
    display: flex;
}

.feature-modal-video {
    width: 100%;
    height: auto;
    max-height: 60vh;
    display: block;
}

.feature-modal-video-fallback {
    width: 100%;
    height: auto;
    max-height: 70vh;
    display: block;
    object-fit: cover;
}

.feature-video-modal-info {
    background: #000;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.feature-video-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.feature-video-modal-description {
    font-size: 0.875rem;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 20px;
}

.feature-video-modal-cta {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-video-modal-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s;
}

.feature-video-modal-cta:hover::before {
    left: 100%;
}

.feature-video-modal-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Shimmer animation for CTA button */
.feature-cta-shimmer {
    position: relative;
    overflow: hidden;
}

.feature-cta-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s;
    animation: shimmer 3s infinite;
    animation-delay: 1s;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Full Size Format */
.feature-card-fullsize {
    background: #2a2a2a;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    height: 70vh;
    display: flex;
    flex-direction: column;
}

.feature-card-fullsize::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
}

.feature-fullsize-media {
    width: 100%;
    height: 60%;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feature-fullsize-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(255,255,255,0.1) 25%,
        transparent 25%,
        transparent 75%,
        rgba(255,255,255,0.1) 75%
    );
    background-size: 20px 20px;
    animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
    0% { transform: translateX(-20px) translateY(-20px); }
    100% { transform: translateX(0) translateY(0); }
}

.feature-fullsize-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.feature-fullsize-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.feature-video-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.feature-video-control-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-video-control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.feature-demo-content {
    color: white;
    text-align: center;
    z-index: 2;
    position: relative;
}

.feature-demo-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    display: block;
}

.feature-demo-text {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

.feature-card-fullsize .feature-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 3;
}

.feature-fullsize-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-card-fullsize .feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.feature-card-fullsize .feature-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 16px;
    flex: 1;
}

.feature-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feature-card-fullsize .feature-cta {
    background: transparent;
    color: #8b5cf6;
    border: 1px solid #8b5cf6;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-card-fullsize .feature-cta:hover {
    background: #8b5cf6;
    color: white;
}

.feature-meta {
    font-size: 0.75rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-meta-icon {
    width: 16px;
    height: 16px;
    background: #8b5cf6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

/* Feature Detail Modal */
.feature-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.feature-detail-modal.show {
    opacity: 1;
    visibility: visible;
}

.feature-detail-page {
    max-width: 400px;
    margin: 0 auto;
    background: #000;
    min-height: 100vh;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.feature-detail-modal.show .feature-detail-page {
    transform: translateY(0);
}

.feature-detail-header {
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    overflow: hidden;
}

.feature-detail-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(255,255,255,0.1) 25%,
        transparent 25%,
        transparent 75%,
        rgba(255,255,255,0.1) 75%
    );
    background-size: 30px 30px;
    animation: movePattern 25s linear infinite;
}

.feature-close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-close-button:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.feature-intro {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 0 20px 0;
}

.feature-detail-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.feature-detail-icon {
    font-size: 3.75rem;
    margin-bottom: 16px;
    display: block;
}

.feature-detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.feature-detail-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.feature-detail-content {
    background: #000;
    padding: 30px 20px;
}

.feature-media-carousel-container {
    margin-bottom: 30px;
}

.feature-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.feature-media-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #1a1a1a;
    width: 100%;
}

.feature-media-track {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
}

.feature-media-item {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #333, #222);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    flex-basis: 100%;
}

.feature-media-item.active {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.feature-media-item img,
.feature-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-media-content {
    text-align: center;
    color: white;
    z-index: 2;
}

.feature-media-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.feature-media-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-media-description {
    font-size: 0.8rem;
    opacity: 0.8;
    max-width: 280px;
}

.feature-carousel-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.feature-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-carousel-dot.active {
    background: #8b5cf6;
    transform: scale(1.2);
}

.feature-detail-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 30px;
}

.feature-cta-section {
    padding: 20px;
    background: #111;
    text-align: center;
}

.feature-primary-cta {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-primary-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s;
}

.feature-primary-cta:hover::before {
    left: 100%;
}

.feature-primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.feature-secondary-cta {
    background: transparent;
    color: #8b5cf6;
    border: 1px solid #333;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-secondary-cta:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .feature-interaction-bar {
        height: 44px;
        padding: 0 16px;
    }
    
    .feature-interaction-text {
        font-size: 0.8rem;
    }
    
    .feature-interaction-chevron {
        font-size: 1rem;
    }
    
    .feature-video-overlay-enhanced {
        bottom: 44px;
        padding: 15px 16px 12px;
    }
    
    .feature-video-title {
        font-size: 0.9rem;
    }
    
    .feature-card-fullsize {
        height: 75vh;
    }
    
    .feature-detail-page {
        max-width: 100%;
    }
    
    .feature-detail-title {
        font-size: 1.5rem;
    }
    
    .feature-detail-icon {
        font-size: 3rem;
    }
    
    .feature-video-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
}