/* WPLife Hero Video - Frontend Styles */

.wplife-intro-video {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wplife-intro-video::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 70%);
    z-index: 2;
    pointer-events: none;
}

.wplife-video-container {
    position: relative;
    z-index: 1;
    min-height: 200px;
    display: flex;
}

.wplife-video-container video {
    display: block;
    width: 100%;
    height: auto;
}

.wplife-video-container iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.wplife-video-container:has(iframe) {
    min-height: auto;
    padding-top: 56.25%;
}

.wplife-video-container:has(iframe) iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

video:fullscreen {
    object-fit: contain;
    background: #000;
}

video:-webkit-full-screen {
    object-fit: contain;
    background: #000;
}

video:-moz-full-screen {
    object-fit: contain;
    background: #000;
}

video:-ms-fullscreen {
    object-fit: contain;
    background: #000;
}

video:fullscreen::-webkit-media-controls-enclosure {
    display: flex !important;
}

.wplife-hero__text--overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    padding: 15px;
    text-align: center;
    pointer-events: none;
}

.wplife-hero__text--overlay .wplife-hero__title {
    font-size: clamp(20px, 5vw, 48px);
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.wplife-hero__text--overlay .wplife-hero__title span {
    display: block;
}

.wplife-hero__text--overlay .wplife-hero__descr {
    font-size: clamp(14px, 3vw, 20px);
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Контейнер для кнопок */
.wplife-hero__buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    pointer-events: auto;
}

/* Общие стили для всех кнопок */
.wplife-hero__text--overlay .wplife-btn {
    pointer-events: auto;
    padding: 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
    border: none;
    transition: all 0.3s;
    font-size: clamp(14px, 3vw, 18px);
    white-space: nowrap;
    cursor: pointer;
}

/* Первичная кнопка (красная) */
.wplife-hero__text--overlay .wplife-btn--primary {
    background-color: #e63946;
    color: #fff;
}

.wplife-hero__text--overlay .wplife-btn--primary:hover {
    background-color: #c1121f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Вторичная кнопка (прозрачная с обводкой) */
.wplife-hero__text--overlay .wplife-btn--secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.wplife-hero__text--overlay .wplife-btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #e63946;
    color: #e63946;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.wplife-fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
    line-height: 1;
    pointer-events: auto;
    font-size: 40px;
    width: 50px;
    height: 50px;
}

.wplife-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .wplife-hero__buttons {
        gap: 10px;
    }
    
    .wplife-hero__text--overlay .wplife-btn {
        padding: 12px 20px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .wplife-hero__text--overlay {
        padding: 10px;
    }
    
    .wplife-hero__text--overlay .wplife-hero__title {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .wplife-hero__text--overlay .wplife-hero__title span {
        display: inline;
    }
    
    .wplife-hero__text--overlay .wplife-hero__descr {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .wplife-hero__text--overlay .wplife-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .wplife-fullscreen-btn {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 32px;
    }
    
    .wplife-hero__buttons {
        gap: 8px;
    }
}

@media (max-width: 360px) {
    .wplife-hero__text--overlay .wplife-hero__descr br {
        display: none;
    }
    
    .wplife-hero__text--overlay .wplife-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
}