/* HR-ON Video CTA Styles */

.hron-video-cta-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
}

/* Button Styles matching the provided design */
.hron-video-cta-button.grve-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border: none;
    text-decoration: none;
    font-family: inherit;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
    line-height: 1.2;
}

.grve-btn-large {
    font-size: 16px;
    padding: 18px 36px;
}

.grve-extra-round {
    border-radius: 50px;
}

.grve-bg-primary-6 {
    background-color: #2a5ef6;
    color: white;
}

.grve-bg-hover-primary-5:hover {
    background-color: #1e4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 94, 246, 0.4);
}

/* Custom color outline button styling */
.hron-video-cta-container .hron-video-cta-button.hron-custom-color.hron-outline {
    background-color: transparent !important;
    border: 2px solid var(--custom-border-color) !important;
    color: var(--custom-text-color) !important;
    transition: all 0.3s ease !important;
}

/* Custom color outline hover state */
.hron-video-cta-container .hron-video-cta-button.hron-custom-color.hron-outline:hover {
    background-color: transparent !important;
    border-color: var(--custom-hover-color) !important;
    color: var(--custom-text-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px var(--custom-shadow-color) !important;
}

/* Custom color solid button styling */
.hron-video-cta-container .hron-video-cta-button.hron-custom-color.hron-solid {
    background-color: var(--custom-bg-color) !important;
    border: 2px solid var(--custom-border-color) !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

/* Custom color solid hover state */
.hron-video-cta-container .hron-video-cta-button.hron-custom-color.hron-solid:hover {
    background-color: var(--custom-hover-color) !important;
    border-color: var(--custom-hover-color) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px var(--custom-shadow-color) !important;
}

/* Ensure text and icon inherit custom colors */
.hron-video-cta-container .hron-video-cta-button.hron-custom-color span,
.hron-video-cta-container .hron-video-cta-button.hron-custom-color span i,
.hron-video-cta-container .hron-video-cta-button.hron-custom-color i {
    color: inherit !important;
}



.hron-video-cta-button span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hron-video-cta-button i {
    font-size: 14px;
    transition: all 0.3s ease;
}

.hron-video-cta-button:hover i {
    transform: translateX(3px);
    transition: all 0.3s ease;
}

/* Mobile responsive hack */
@media only screen and (max-width: 900px) {
    .grve-btn.grve-btn-mobile-medium {
        font-size: 13px !important;
        padding: 12px 24px;
    }

    .grve-btn.grve-btn-mobile-medium i {
        display: none;
    }
}

/* Modal Styles - Simple Flexbox Centering */
.hron-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hron-video-modal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1;
    visibility: visible;
}

.hron-video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.hron-video-modal-content {
    position: relative;
    width: 90vw;
    max-width: 900px;
    max-height: 90vh;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    padding: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    z-index: 2;
    transform: scale(0.8);
}

.hron-video-modal.active .hron-video-modal-content {
    transform: scale(1);
}



.hron-video-container {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
}

.hron-video-container iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
    border-radius: 0;
}

/* Mobile iframe adjustments */
@media (max-width: 768px) {
    .hron-video-container iframe {
        border-radius: 0;
    }
}

/* Force modal to center properly using flexbox */
.hron-video-modal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Big screens - ensure proper centering */
@media (min-width: 1200px) {
    .hron-video-modal.active {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hron-video-modal-content {
        width: 80vw !important;
        max-width: 900px !important;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .hron-video-modal.active {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hron-video-modal-content {
        width: 85vw !important;
        max-width: 900px !important;
    }
}

/* Responsive Styles for Modal */
@media (max-width: 768px) {
    .hron-video-modal-content {
        width: 95vw;
        max-height: 85vh;
        border-radius: 0;
    }

    .hron-video-container {
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .hron-video-modal-content {
        width: 98vw;
        border-radius: 0;
        max-height: 80vh;
    }

    .hron-video-container {
        border-radius: 0;
    }
}

/* Landscape mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .hron-video-modal {
        padding: 10px;
    }
    
    .hron-video-modal-content {
        max-height: 90vh;
    }
}

/* Very small screens */
@media (max-height: 400px) {
    .hron-video-modal.active {
        align-items: flex-start !important;
        padding-top: 20px;
    }
    
    .hron-video-modal-content {
        max-height: 95vh;
    }
}

/* Animation for smooth opening and closing */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

.hron-video-modal.opening .hron-video-modal-content {
    animation: modalFadeIn 0.3s ease forwards;
}

.hron-video-modal.closing .hron-video-modal-content {
    animation: modalFadeOut 0.3s ease forwards;
} 