/**
 * Video Modal Styles
 * Styles for the HTML5 video modal overlay
 */

.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.video-modal-overlay.active {
    opacity: 1;
}

.video-modal-overlay.fade-background {
    background: rgba(0, 0, 0, 0.95);
}

.video-modal-container {
    max-width: 90vw;
    max-height: 90vh;
    width: 1200px;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #333;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.video-modal-overlay.active .video-modal-container {
    transform: scale(1);
}

.video-modal-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
}

.video-modal-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ecf0f1;
}

.video-close-btn {
    background: none;
    border: none;
    color: #bdc3c7;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.video-close-btn:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    transform: rotate(90deg);
}

.video-modal-content {
    padding: 0;
    background: #000;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #000;
}

/* Custom Video Controls */
.custom-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px 15px 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.video-wrapper:hover .custom-video-controls,
.custom-video-controls.visible,
.custom-video-controls.show {
    opacity: 1;
}

.video-progress-container {
    margin-bottom: 10px;
}

.video-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.video-progress-fill {
    height: 100%;
    background: #007bff;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.video-controls-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-controls-left,
.video-controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.video-control-btn:hover {
    background: rgba(255,255,255,0.2);
}

.auto-replay-btn.active {
    color: #007bff;
    background: rgba(0,123,255,0.2);
}

.video-time {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 60px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    outline: none;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-track {
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    border: none;
}

.volume-slider::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    -webkit-appearance: none;
    margin-top: -4px;
}

.volume-slider::-moz-range-track {
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    border: none;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    margin-top: -4px;
}

/* Custom Video Player */
.custom-video-player {
    width: 100%;
    height: 100%;
    background: #000;
    outline: none;
}

.custom-video-player::-webkit-media-controls-panel {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
}

.custom-video-player::-webkit-media-controls-current-time-display,
.custom-video-player::-webkit-media-controls-time-remaining-display {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.custom-video-player::-webkit-media-controls-play-button,
.custom-video-player::-webkit-media-controls-mute-button,
.custom-video-player::-webkit-media-controls-fullscreen-button {
    filter: brightness(1.2);
}

.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.2rem;
    z-index: 10;
}

.video-modal-overlay.mouse-active {
    background: rgba(0, 0, 0, 0.7);
}

/**
 * Subscription Modal Styles
 */
.subscription-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subscription-modal-overlay.active {
    opacity: 1;
}

.subscription-modal-container {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

.subscription-modal-overlay.active .subscription-modal-container {
    transform: scale(1);
}

.subscription-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #3366FF 0%, #007bff 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.subscription-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.subscription-close-btn {
    background: none;
    border: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.subscription-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.subscription-modal-content {
    padding: 30px;
}

.subscription-form .form-group {
    margin-bottom: 20px;
}

.subscription-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.subscription-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.subscription-form .form-control:focus {
    border-color: #3366FF;
    box-shadow: 0 0 0 3px rgba(51, 102, 255, 0.1);
    outline: none;
}

.subscription-error {
    display: none;
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

.subscription-plan-summary {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #d4edda;
}

.plan-details h4 {
    color: #3366FF;
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
}

.plan-price {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 10px 0;
}

.plan-price sup {
    font-size: 18px;
    vertical-align: super;
}

.plan-price sub {
    font-size: 14px;
    vertical-align: sub;
    color: #666;
}

.price-note {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.first-month-price {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.regular-price {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.subdomain-preview {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.subdomain-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.subdomain-info i {
    color: #3366FF;
}

.subdomain-url {
    color: #3366FF;
    font-family: 'Courier New', monospace;
}

.subscription-benefits {
    background: #fff9e6;
    border: 1px solid #ffd700;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.subscription-benefits h4 {
    margin: 0 0 15px 0;
    color: #856404;
    font-size: 16px;
}

.subscription-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subscription-benefits li {
    padding: 8px 0;
    border-bottom: 1px solid #fff2cc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.subscription-benefits li:last-child {
    border-bottom: none;
}

.subscription-benefits li i {
    color: #28a745;
    font-size: 14px;
}

.subscription-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.subscription-continue-btn,
.subscription-payment-btn {
    position: relative;
    overflow: hidden;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.payment-section {
    margin-top: 20px;
}

.payment-section h4 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

.payment-mockup {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.payment-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.payment-notice i {
    font-size: 18px;
}

.payment-form-mockup .form-row {
    display: flex;
    gap: 15px;
}

.payment-form-mockup .form-row .form-group {
    flex: 1;
}

.payment-security {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #28a745;
    font-size: 14px;
    margin-top: 15px;
}

.enterprise-intro {
    text-align: center;
    margin-bottom: 30px;
}

.enterprise-intro i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.enterprise-intro h4 {
    color: #3366FF;
    margin-bottom: 15px;
}

.enterprise-features {
    background: #f8f9ff;
    border: 1px solid #e8f2ff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.enterprise-features h5 {
    margin: 0 0 15px 0;
    color: #3366FF;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
}

.feature-item i {
    color: #3366FF;
    font-size: 16px;
}

.success-content {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

.success-message h4 {
    color: #28a745;
    margin-bottom: 15px;
}

.environment-info {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.environment-url {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    color: #155724;
    font-weight: bold;
}

.subscription-summary-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.subscription-summary-card h4 {
    color: #3366FF;
    margin: 0 0 15px 0;
    font-size: 20px;
}

.summary-details {
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    border-top: 2px solid #3366FF;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 16px;
    font-weight: 600;
}

.timeline-steps {
    margin: 20px 0;
}

.timeline-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #e8f2ff;
}

.timeline-step:last-child {
    border-bottom: none;
}

.timeline-step i {
    color: #3366FF;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.next-steps {
    background: #e8f5e8;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.next-steps h5 {
    color: #155724;
    margin: 0 0 15px 0;
}

.next-steps ul {
    margin: 0;
    padding-left: 20px;
}

.next-steps li {
    margin-bottom: 8px;
}

/* Responsive adjustments for modals */
@media (max-width: 768px) {
    .video-modal-container {
        max-width: 95vw;
        max-height: 85vh;
        margin: 20px;
    }

    .video-modal-header {
        padding: 15px 20px;
    }

    .video-modal-title {
        font-size: 1.1rem;
    }

    .video-close-btn {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }

    .subscription-modal-container {
        width: 95%;
        margin: 20px;
    }

    .subscription-modal-header {
        padding: 20px 20px 15px;
    }

    .subscription-modal-title {
        font-size: 20px;
    }

    .subscription-modal-content {
        padding: 20px;
    }

    .subscription-actions {
        flex-direction: column;
    }

    .subscription-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .payment-form-mockup .form-row {
        flex-direction: column;
    }

    .summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
