/* Algorithm Story Section Styles */
.algorithm-section {
    background: var(--bg-light);
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.algorithm-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        var(--primary-purple-50) 0%, 
        var(--accent-green-50) 100%);
    z-index: 1;
}

.algorithm-section .container {
    position: relative;
    z-index: 2;
}

.algorithm-section .section-title {
    color: var(--text-dark);
    margin-bottom: 40px;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-medium);
}

.story-content p {
    margin-bottom: 20px;
}

.key-formula {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 20px;
    text-align: center;
    margin: 32px 0;
    box-shadow: var(--shadow-purple);
    position: relative;
}

/* Removed lightning icon decoration to prevent text interference */

.guarantee-note {
    font-style: italic;
    color: var(--accent-green);
    font-weight: 500;
    text-align: center;
    margin-bottom: 0;
}

/* Algorithm Icons */
.algorithm-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .algorithm-section {
        padding: var(--mobile-padding);
    }
    
    .story-content {
        font-size: 16px;
    }
    
    .key-formula {
        font-size: 18px;
        padding: 20px;
    }
    
    .algorithm-video-container {
        padding: 24px;
        margin: 30px 0;
    }
    
    .video-title {
        font-size: 20px;
        flex-direction: column;
        gap: 4px;
    }
    
    .video-description {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .story-content {
        font-size: 15px;
    }
    
    .key-formula {
        font-size: 16px;
        padding: 18px;
        margin: 24px 0;
    }
    
    .algorithm-video-container {
        padding: 20px;
        margin: 24px 0;
    }
    
    .video-title {
        font-size: 18px;
    }
    
    .video-description {
        font-size: 13px;
    }
}

/* Performance optimization for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .algorithm-section::before {
        background: var(--bg-light);
    }
}

/* Algorithm Video Section Styles */
.algorithm-video-container {
    margin: 40px 0;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.algorithm-video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(138, 58, 185, 0.02) 0%, 
        rgba(255, 110, 199, 0.02) 100%);
    z-index: 1;
}

.video-intro {
    text-align: center;
    margin-bottom: 30px;
}

.video-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.video-title i {
    font-size: 32px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.video-description {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.algorithm-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-lg);
}

.algorithm-video:hover {
    transform: scale(1.02);
}

/* Video decorations */
.algorithm-video-container::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

/* Responsive Design for Video */
@media (max-width: 768px) {
    .algorithm-video-container {
        margin: 40px 0;
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .video-title {
        font-size: 24px;
        flex-direction: column;
        gap: 8px;
    }
    
    .video-title i {
        font-size: 28px;
    }
    
    .video-description {
        font-size: 15px;
    }
    
    .video-wrapper {
        border-radius: 12px;
    }
    
    .algorithm-video {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .algorithm-video-container {
        margin: 30px 0;
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .video-title {
        font-size: 20px;
    }
    
    .video-title i {
        font-size: 24px;
    }
    
    .video-description {
        font-size: 14px;
    }
    
    .video-wrapper {
        border-radius: 10px;
    }
    
    .algorithm-video {
        border-radius: 10px;
    }
} 

/* Subtle Video Disclaimer - minimal and unobtrusive */
.video-subtle-disclaimer {
    font-size: 11px;
    color: #9e9e9e;
    text-align: center;
    margin: 8px 0 4px 0;
    opacity: 0.6;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .video-subtle-disclaimer {
        font-size: 10px;
        margin: 6px 0 3px 0;
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    .video-subtle-disclaimer {
        font-size: 9px;
        margin: 4px 0 2px 0;
        opacity: 0.4;
    }
} 