/**
 * Hero Video Widget Styles
 * 
 * @package Netrobit_Core
 */

/* Hero Video Container */
.netrobit-hero-video {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Element */
.netrobit-hero-video-element {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Overlay */
.netrobit-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Content Container */
.netrobit-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0 20px;
}

.netrobit-hero-content .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Subtitle */
.netrobit-hero-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Title */
.netrobit-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 20px 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Description */
.netrobit-hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0 0 30px 0;
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Center alignment specific */
/* Center alignment specific */
.netrobit-hero-content[style*="text-align: center"] .netrobit-hero-description {
    margin-left: auto;
    margin-right: auto;
}

/* Split Layout */
.netrobit-hero-layout-split .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.netrobit-hero-text-wrapper {
    max-width: 60%;
    text-align: left;
}

.netrobit-hero-cta-wrapper {
    flex-shrink: 0;
}

/* Split Layout - Override Defaults */
.netrobit-hero-layout-split .netrobit-hero-title,
.netrobit-hero-layout-split .netrobit-hero-subtitle,
.netrobit-hero-layout-split .netrobit-hero-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

/* Button */
.netrobit-hero-button {
    display: inline-block;
    padding: 16px 40px;
    background-color: #4169e1;
    /* Use solid color to allow Elementor overrides */
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.8s both;
    box-shadow: 0 4px 20px rgba(65, 105, 225, 0.3);
}

.netrobit-hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(65, 105, 225, 0.5);
    color: #ffffff;
}

/* Modern CTA Box Style */
.netrobit-hero-cta-box {
    display: flex;
    flex-direction: row;
    /* Horizontal on desktop */
    align-items: center;
    background: #ffffff;
    /* Solid white background */
    padding: 8px 8px 8px 25px;
    /* Pill padding */
    border-radius: 100px;
    /* Fully oval */
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    gap: 15px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.netrobit-cta-box-text {
    color: #161A2D;
    /* Dark text for contrast */
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    text-align: left;
    /* Alignment on desktop */
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Behavior - Show Poster Only */
@media (max-width: 768px) {
    .netrobit-hero-video[data-mobile-behavior="poster"] .netrobit-hero-video-element {
        display: none;
    }

    .netrobit-hero-video[data-mobile-behavior="poster"]::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        z-index: 1;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) {

    /* Split Layout - Stack on Tablet/Mobile */
    .netrobit-hero-layout-split .container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 30px;
    }

    .netrobit-hero-text-wrapper {
        max-width: 100%;
        text-align: center;
    }

    /* Stack CTA box on tablet/mobile if needed */
    .netrobit-hero-cta-box {
        flex-direction: column;
        padding: 20px;
        text-align: center;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .netrobit-cta-box-text {
        text-align: center;
        margin-bottom: 15px;
    }

    .netrobit-hero-layout-split .netrobit-hero-title,
    .netrobit-hero-layout-split .netrobit-hero-subtitle,
    .netrobit-hero-layout-split .netrobit-hero-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .netrobit-hero-subtitle {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .netrobit-hero-title {
        margin-bottom: 15px;
    }

    .netrobit-hero-description {
        margin-bottom: 25px;
    }

    .netrobit-hero-button {
        padding: 14px 35px;
        font-size: 15px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .netrobit-hero-video {
        height: 60vh !important;
        height: 60dvh !important;
    }

    .netrobit-hero-content {
        padding: 0 20px;
        margin-top: 50px;
        /* Reduced for 60vh height */
    }

    .netrobit-hero-subtitle {
        font-size: 10px;
        letter-spacing: 2px;
        margin-bottom: 6px;
        opacity: 0.9;
        font-weight: 600;
    }

    .netrobit-hero-title {
        font-size: clamp(1.4rem, 8vw, 2rem) !important;
        line-height: 1.1;
        margin-bottom: 4px;
        /* Daha da yaklaştırdım */
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .netrobit-hero-description {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 4px;
        /* Düğmeyi metne sıfıra yakın yaklaştırdım */
        max-width: 100%;
        opacity: 0.9;
    }

    .netrobit-hero-cta-box {
        padding: 3px 13px !important;
        width: auto;
        display: inline-flex;
        max-width: 90%;
        margin: 0 auto 20px;
        background: rgba(255, 255, 255, 0.25) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 100px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    }

    .netrobit-cta-box-text {
        display: none !important;
    }

    .netrobit-hero-button {
        padding: 10px 20px;
        /* More compact button */
        font-size: 14px;
        width: auto;
        white-space: nowrap;
        text-align: center;
        background: #ffffff;
        color: #4169e1;
        border-radius: 50px;
        /* Fully oval/rounded shape */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        font-weight: 700;
    }

    .netrobit-hero-button:hover {
        background: rgba(255, 255, 255, 0.9);
        transform: translateY(-2px);
    }
}

/* Loading State */
.netrobit-hero-video-element:not([src]) {
    background: #1a1a2e;
}

/* Poster Fallback */
.netrobit-hero-video-element[poster] {
    background-size: cover;
    background-position: center;
}

/* Performance Optimization */
.netrobit-hero-video-element {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Prevent text selection on video */
.netrobit-hero-video {
    user-select: none;
    -webkit-user-select: none;
}