/* ==========================================================================
   Videos Page - Page-specific styles
   ========================================================================== */

/* AI Video Showcase Section */
.ai-video-showcase {
    padding: 100px 0;
    background: #0f172a;
}
.section-tagline__text {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    color: #8B5CF6;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.ai-video-content__title {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}
.ai-video-content__text {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 36px;
}

/* Process Timeline */
.process-timeline {
    position: relative;
    padding-left: 0;
}
.process-timeline__line {
    position: absolute;
    left: 28px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(180deg, #8B5CF6 0%, #EC4899 50%, #10B981 100%);
    opacity: 0.3;
    border-radius: 1px;
}
.process-step {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    position: relative;
    transition: all 0.3s ease;
}
.process-step:last-child {
    margin-bottom: 0;
}
.process-step:hover {
    transform: translateX(6px);
}
.process-step__marker {
    position: relative;
    flex-shrink: 0;
}
.process-step__icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #8B5CF6;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}
.process-step:hover .process-step__icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(236, 72, 153, 0.25) 100%);
    border-color: rgba(139, 92, 246, 0.5);
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.25);
}
.process-step__number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    z-index: 3;
}
.process-step__content {
    flex: 1;
    padding-top: 6px;
}
.process-step__content h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px 0;
    transition: color 0.3s ease;
}
.process-step:hover .process-step__content h4 {
    color: #A78BFA;
}
.process-step__content p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Step Animations */
.process-step:nth-child(2) { animation: stepFadeIn 0.5s ease-out 0.1s backwards; }
.process-step:nth-child(3) { animation: stepFadeIn 0.5s ease-out 0.2s backwards; }
.process-step:nth-child(4) { animation: stepFadeIn 0.5s ease-out 0.3s backwards; }
.process-step:nth-child(5) { animation: stepFadeIn 0.5s ease-out 0.4s backwards; }
.process-step:nth-child(6) { animation: stepFadeIn 0.5s ease-out 0.5s backwards; }
@keyframes stepFadeIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Animation Scene - 18 second cycle, 6 stages */
.ai-video-animation { padding: 20px; }
.ai-video-scene {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    padding: 30px;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.av-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

/* Stage 1: Product Select (0-3s) */
.av-stage--product { animation: stage1 18s ease-in-out infinite; }
@keyframes stage1 {
    0%, 2% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    4%, 14% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    16%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

.av-product-select {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 20px;
    min-width: 220px;
}
.av-product-header {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    margin-bottom: 14px;
    text-align: center;
}
.av-product-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.av-product-item {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: rgba(255,255,255,0.4);
    position: relative;
    transition: all 0.3s ease;
}
.av-product-item--selected {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.15);
    color: #8B5CF6;
}
.av-check {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
}

/* Stage 2: Prompt (3-6s) */
.av-stage--prompt { animation: stage2 18s ease-in-out infinite; }
@keyframes stage2 {
    0%, 16% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    18%, 30% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    32%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

.av-prompt-box {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 20px;
    min-width: 260px;
}
.av-prompt-header {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.av-prompt-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 14px;
    min-height: 60px;
    color: #fff;
    font-size: 13px;
    margin-bottom: 12px;
}
.av-typing-text::after {
    content: 'Dinamik ayakkabı tanıtımı...';
    animation: typing 3s steps(25) infinite;
}
@keyframes typing {
    0%, 10% { content: ''; }
    20% { content: 'Din'; }
    30% { content: 'Dinamik'; }
    40% { content: 'Dinamik ayak'; }
    50% { content: 'Dinamik ayakkabı'; }
    60% { content: 'Dinamik ayakkabı tanı'; }
    80%, 100% { content: 'Dinamik ayakkabı tanıtımı...'; }
}
.av-cursor {
    animation: blink 0.8s infinite;
    color: #8B5CF6;
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
.av-prompt-hint {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.av-prompt-hint i { color: #FBBF24; }

/* Stage 3: Options (6-9s) */
.av-stage--options { animation: stage3 18s ease-in-out infinite; }
@keyframes stage3 {
    0%, 32% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    34%, 46% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    48%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

.av-options-box {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 20px;
    min-width: 240px;
}
.av-option-row {
    margin-bottom: 14px;
}
.av-option-label {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    margin-bottom: 8px;
}
.av-option-values {
    display: flex;
    gap: 8px;
}
.av-option-val {
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    transition: all 0.2s;
}
.av-option-val--active {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8B5CF6;
    color: #fff;
}
.av-generate-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    animation: btnPulse 1.5s ease-in-out infinite;
}
@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(139, 92, 246, 0); }
}

/* Stage 4: Loading (9-12s) */
.av-stage--loading { animation: stage4 18s ease-in-out infinite; }
@keyframes stage4 {
    0%, 48% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    50%, 62% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    64%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

.av-loading-box { text-align: center; }
.av-loading-circle {
    width: 100px;
    height: 100px;
    position: relative;
    margin: 0 auto 16px;
}
.av-loading-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}
.av-loading-bg {
    fill: none;
    stroke: rgba(255,255,255,0.1);
    stroke-width: 8;
}
.av-loading-progress {
    fill: none;
    stroke: url(#loadingGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: loadProgress 3s ease-out forwards infinite;
}
@keyframes loadProgress {
    0% { stroke-dashoffset: 283; }
    100% { stroke-dashoffset: 0; }
}
.av-loading-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.av-percent-num {
    animation: countUp 3s ease-out forwards infinite;
}
@keyframes countUp {
    0% { content: '0'; }
    100% { content: '100'; }
}
.av-loading-text {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin-bottom: 14px;
}
.av-loading-steps {
    display: flex;
    gap: 12px;
    justify-content: center;
    font-size: 11px;
}
.av-lstep {
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 4px;
}
.av-lstep--done { color: #10B981; }
.av-lstep--active { color: #8B5CF6; }

/* Stage 5: Preview (12-15s) */
.av-stage--preview { animation: stage5 18s ease-in-out infinite; }
@keyframes stage5 {
    0%, 64% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    66%, 78% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

.av-phone-mockup {
    width: 120px;
    height: 200px;
    background: #1a1a2e;
    border-radius: 24px;
    padding: 8px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.av-phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 6px;
    background: #0f172a;
    border-radius: 3px;
    z-index: 2;
}
.av-phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}
.av-video-playing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: rgba(255,255,255,0.3);
    animation: videoZoom 2s ease-in-out infinite;
}
@keyframes videoZoom {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}
.av-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: playShow 3s ease-in-out infinite;
}
@keyframes playShow {
    0%, 30% { opacity: 0; }
    40%, 60% { opacity: 1; }
    70%, 100% { opacity: 0; }
}
.av-play-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #8B5CF6;
}
.av-video-progress {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
}
.av-video-progress-bar {
    height: 100%;
    background: #fff;
    width: 0;
    animation: progressBar 3s linear infinite;
}
@keyframes progressBar {
    0% { width: 0; }
    100% { width: 100%; }
}
.av-video-time {
    position: absolute;
    bottom: 20px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
}
.av-preview-badge {
    margin-top: 16px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stage 6: Export (15-18s) */
.av-stage--export { animation: stage6 18s ease-in-out infinite; }
@keyframes stage6 {
    0%, 80% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    82%, 96% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    98%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

.av-export-box { text-align: center; }
.av-xml-preview {
    background: #0d1117;
    border-radius: 12px;
    padding: 14px 18px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 11px;
    text-align: left;
    margin-bottom: 16px;
}
.av-xml-line {
    color: #7ee787;
    line-height: 1.8;
    white-space: nowrap;
}
.av-xml-indent { padding-left: 14px; }
.av-xml-highlight {
    color: #ff7b72;
    animation: xmlGlow 1s ease-in-out infinite;
}
@keyframes xmlGlow {
    0%, 100% { background: transparent; }
    50% { background: rgba(255, 123, 114, 0.15); }
}
.av-export-platforms {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 14px;
}
.av-platform {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    animation: platformPop 0.5s ease-out backwards;
}
.av-platform:nth-child(1) { animation-delay: 0s; }
.av-platform:nth-child(2) { animation-delay: 0.15s; }
.av-platform:nth-child(3) { animation-delay: 0.3s; }
@keyframes platformPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}
.av-export-success {
    color: #10B981;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Progress Dots */
.av-progress {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.av-progress__dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}
.av-progress__dot--1 { animation: dotActive 18s ease-in-out infinite 0s; }
.av-progress__dot--2 { animation: dotActive 18s ease-in-out infinite 3s; }
.av-progress__dot--3 { animation: dotActive 18s ease-in-out infinite 6s; }
.av-progress__dot--4 { animation: dotActive 18s ease-in-out infinite 9s; }
.av-progress__dot--5 { animation: dotActive 18s ease-in-out infinite 12s; }
.av-progress__dot--6 { animation: dotActive 18s ease-in-out infinite 15s; }
@keyframes dotActive {
    0%, 14% { background: #8B5CF6; transform: scale(1.4); }
    16%, 100% { background: rgba(255,255,255,0.2); transform: scale(1); }
}

/* SVG Gradient for loading */
.ai-video-scene::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Feature Content Override */
.feature-content {
    padding: 50px 0;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header__title {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 12px;
}

/* Feature Box Animated (video-specific additions) */
.feature-box--animated:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.15);
}
.feature-box--animated:hover .feature-box__icon {
    transform: scale(1.1) rotate(5deg);
}
.feature-box__icon-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.feature-box--animated:hover .feature-box__icon-glow { opacity: 1; }

/* Platform Support */
.platform-support {
    padding: 80px 0;
    background: #0f172a;
}
.platform-support__inner {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
}
.platform-support__title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 32px 0;
}
.platform-support__grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.platform-support__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}
.platform-support__item:hover { transform: translateY(-4px); }
.platform-support__item i {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}
.platform-support__item:hover i {
    border-color: rgba(139, 92, 246, 0.4);
    color: #8B5CF6;
}
.platform-support__item span {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 992px) {
    .ai-video-content { margin-bottom: 50px; }
    .ai-video-scene { min-height: 360px; }
}
@media (max-width: 768px) {
    .ai-video-content__title { font-size: 1.8rem; }
    .platform-support__inner { padding: 32px 20px; }
    .platform-support__grid { gap: 20px; }
}
