/* Video Process Section Styles */

.video-process {
    position: relative;
    background-color: #FAFAFA;
    padding: var(--space-24) 0;
    overflow: hidden;
}

/* Section Header */
.video-process__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-16);
}

/* Video Grid */
.video-process__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-16);
}

/* Video Card */
.video-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.video-card__wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 427/534;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
}

.video-card__wrapper:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

/* Video Placeholder */
.video-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--color-gray-200) 0%,
        var(--color-gray-100) 100%
    );
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background pattern */
.video-card__placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(0,0,0,.05) 35px, rgba(0,0,0,.05) 70px);
    opacity: 0.5;
}

/* Video element (when you add it) */
.video-card__placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Overlay */
.video-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.video-card__wrapper:hover .video-card__overlay {
    opacity: 1;
}

/* Play Button */
.video-card__play {
    position: relative;
    z-index: 2;
    transition: all var(--transition-base);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.video-card__wrapper:hover .video-card__play {
    transform: scale(1.15);
}

.video-card__play svg circle {
    transition: all var(--transition-base);
}

.video-card__wrapper:hover .video-card__play svg circle {
    fill: white;
    fill-opacity: 1;
}

/* Video Badge (duration) */
.video-card__badge {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-4);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: var(--color-white);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    z-index: 2;
}

.video-card__badge svg {
    width: 16px;
    height: 16px;
}

/* Video Content */
.video-card__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.video-card__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-900);
    margin: 0;
    line-height: var(--line-height-tight);
}

.video-card__description {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-gray-600);
    margin: 0;
}

/* CTA Section */
.video-process__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    padding: var(--space-10);
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
}

.video-process__cta-content {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    flex: 1;
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(
        135deg,
        var(--color-primary-alpha-10) 0%,
        var(--color-secondary-alpha-10) 100%
    );
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.cta-text {
    flex: 1;
}

.cta-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-900);
    margin: 0 0 var(--space-2) 0;
    line-height: var(--line-height-tight);
}

.cta-description {
    font-size: var(--font-size-base);
    color: var(--color-gray-600);
    margin: 0;
    line-height: var(--line-height-relaxed);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.video-modal__content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: var(--color-black);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.video-modal__close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 3;
}

.video-modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.video-modal__player {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal__player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive Design */
@media (max-width: 1279px) {
    .video-process__grid {
        gap: var(--space-6);
    }
}

@media (max-width: 1023px) {
    .video-process {
        padding: var(--space-16) 0;
    }
    
    .video-process__grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: var(--space-12);
    }
    
    .video-card__wrapper {
        aspect-ratio: 16/10;
    }
    
    .video-process__cta {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-8);
    }
    
    .video-process__cta-content {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .video-process {
        padding: var(--space-12) 0;
    }
    
    .video-process__header {
        margin-bottom: var(--space-12);
    }
    
    .video-card__title {
        font-size: var(--font-size-lg);
    }
    
    .video-card__description {
        font-size: var(--font-size-sm);
    }
    
    .video-process__cta {
        padding: var(--space-6);
    }
    
    .video-process__cta-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cta-icon {
        width: 64px;
        height: 64px;
    }
    
    .cta-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .cta-title {
        font-size: var(--font-size-xl);
    }
    
    .cta-description {
        font-size: var(--font-size-sm);
    }
    
    .video-modal__content {
        width: 95%;
        aspect-ratio: 16/11;
    }
    
    .video-modal__close {
        width: 40px;
        height: 40px;
        top: var(--space-2);
        right: var(--space-2);
    }
}

@media (max-width: 639px) {
    .video-card__wrapper:hover {
        transform: translateY(-4px);
    }
    
    .video-process__cta .btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .video-process {
        background: white;
        padding: 2cm 0;
    }
    
    .video-card__wrapper {
        break-inside: avoid;
    }
    
    .video-card__play,
    .video-card__badge,
    .video-modal {
        display: none;
    }
    
    .video-process__cta {
        display: none;
    }
}

/* Accessibility */
.video-card__play:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 50%;
}

/* Loading State */
.video-card__placeholder.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
