/* Voily Video Gate Styles */

.voily-video-player-section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.voily-video-player-section * {
    box-sizing: border-box;
}

.voily-video-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    background: #000;
    height: 600px;
}

.voily-video-player {
    width: 100%;
    display: block;
    outline: none;
}

/* Glassmorphism Form Overlay */
.voily-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.voily-form-overlay.voily-hide {
    opacity: 0;
    pointer-events: none;
}

.voily-form-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 32px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.voily-form-overlay-header {
    text-align: center;
    margin-bottom: 24px;
}

.voily-form-overlay-header h3 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.voily-form-overlay-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
}

.voily-glass-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.voily-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.voily-glass-input {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 14px 16px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.voily-glass-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.voily-glass-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.voily-glass-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 16px 24px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
    width: 100%;
    margin-top: 8px;
}

.voily-glass-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.7);
}

.voily-glass-button:active {
    transform: translateY(0);
}

.voily-glass-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.voily-privacy-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

.voily-privacy-text a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.voily-skip-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 12px;
}

.voily-skip-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Success Message */
.voily-success-message {
    display: none;
    text-align: center;
    color: white;
}

.voily-success-message.voily-show {
    display: block;
}

.voily-success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: rgba(19, 206, 102, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voily-success-icon svg {
    width: 30px;
    height: 30px;
    fill: #13ce66;
}

.voily-success-message h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 22px;
}

.voily-success-message p {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.voily-watch-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 32px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

.voily-watch-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.7);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .voily-form-card {
        padding: 32px 24px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .voily-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .voily-glass-form {
        gap: 16px;
    }

    .voily-form-overlay-header {
        margin-bottom: 28px;
    }
    
    .voily-video-container {
        height: 650px;
    }

    .voily-form-overlay-header h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .voily-form-overlay-header p {
        font-size: 15px;
    }

    .voily-glass-input {
        padding: 14px 16px;
        font-size: 15px;
    }

    .voily-glass-button {
        padding: 16px 24px;
        font-size: 16px;
        margin-top: 12px;
    }

    .voily-skip-button {
        padding: 12px 20px;
        font-size: 14px;
        margin-top: 14px;
    }

    .voily-privacy-text {
        margin-top: 18px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .voily-video-player-section {
        padding: 0 10px;
    }

    .voily-form-overlay {
        padding: 15px;
    }

    .voily-form-card {
        padding: 28px 20px;
        max-height: 85vh;
    }

    .voily-form-overlay-header h3 {
        font-size: 20px;
    }

    .voily-form-overlay-header p {
        font-size: 14px;
    }
}
