/**
 * P3 Pro Landing Page Styles
 * 1:1 还原 Shopify 页面样式
 *
 * @package Laifen_Russia
 */

/* ============================================
   Global Styles
   ============================================ */

.p3-pro-landing {
    background-color: #000000;
    color: #ffffff;
    width: 100%;
    max-width: 100vw;
}

/* 防止页面水平滚动 - 使用 clip 避免破坏 position: sticky */
body.page-template-template-p3-pro-landing {
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
}

/* Container */
.lf-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 767px) {
    .lf-container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .lf-container {
        padding: 0 15px;
    }
}

/* ============================================
   Gradient Text Utilities
   ============================================ */

.p3-pro-gradient-text {
    background: linear-gradient(180deg, #fff 20.19%, #585858 81.73%, #141414 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   Global Animations
   ============================================ */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade Out Down Animation */
@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Progress Bar Shimmer */
@keyframes shimmer {
    0%, 100% {
        opacity: 0;
        transform: translateX(-20px);
    }
    50% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation Classes */
.p3-pro-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-element {
    opacity: 0;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-out-down {
    animation: fadeOutDown 0.3s ease-out forwards;
}

/* ============================================
   Mobile/Desktop Visibility Utilities
   ============================================ */

.only-desktop {
    display: block;
}

.only-mobile {
    display: none;
}

@media (max-width: 767px) {
    .only-desktop {
        display: none !important;
    }
    
    .only-mobile {
        display: block !important;
    }
}

/* ============================================
   Typography
   ============================================ */

.poppins {
    font-family: 'Poppins', sans-serif;
}

/* ============================================
   Responsive Utilities
   ============================================ */

@media (max-width: 768px) {
    .p3-pro-landing {
        font-size: 14px;
    }
}

@media (min-width: 1024px) {
    .p3-pro-landing {
        font-size: 16px;
    }
}

/* ============================================
   Video Utilities
   ============================================ */

video {
    max-width: 100%;
    height: auto;
}

/* Video autoplay support */
video[data-autoplay] {
    pointer-events: none;
}

/* ============================================
   Section Spacing
   ============================================ */

.ins-section {
    padding-top: clamp(2.511rem, -0.399rem + 12.416vw, 14.5rem);
    padding-bottom: clamp(1.875rem, 1.647rem + 0.971vw, 2.813rem);
}

.section-spacing--disable-top {
    padding-top: 0 !important;
}

.section-spacing--disable-bottom {
    padding-bottom: 0 !important;
}

/* ============================================
   Accessibility
   ============================================ */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles */
a:focus,
button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .p3-pro-landing {
        --border-color: #fff;
    }
}

/* ============================================
   Component Base Styles (共用)
   ============================================ */

.p3-pro-component {
    padding: 60px 20px;
    text-align: center;
    background-color: #1a1a1a;
    margin: 20px 0;
}

.p3-pro-early-bird {
    padding: 60px 20px;
    background-color: #000000;
}
