/**
 * Elementor Compatibility Styles
 * Ensures Moonshot Ventures theme styles work well with Elementor
 * 
 * @package Moonshot_Ventures
 * @since 1.0.0
 */

/* Elementor Canvas Template Support */
.elementor-page {
    background: var(--primary-dark);
    color: var(--text-white);
}

/* Ensure Elementor sections inherit theme colors */
.elementor-section {
    color: inherit;
}

.elementor-widget-heading .elementor-heading-title {
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
}

.elementor-widget-text-editor {
    color: var(--text-gray);
    font-family: 'Montserrat', sans-serif;
}

/* Elementor buttons inherit theme button styles */
.elementor-button-wrapper .elementor-button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 1.5px;
    transition: all 0.3s;
}

/* Primary button style for Elementor */
.elementor-button.btn-primary,
.elementor-button[class*="gradient"] {
    background: var(--accent-gradient);
    border: none;
    color: var(--text-white);
    background-size: 200% auto;
}

.elementor-button.btn-primary:hover,
.elementor-button[class*="gradient"]:hover {
    background: var(--accent-gradient-reverse);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 168, 150, 0.4);
}

/* Secondary button style */
.elementor-button.btn-secondary,
.elementor-button-secondary {
    background: transparent;
    border: 2px solid var(--accent-teal);
    color: var(--text-white);
}

.elementor-button.btn-secondary:hover {
    background: var(--accent-teal);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Ensure grid overlay doesn't interfere with Elementor editor */
.elementor-editor-active .grid-overlay {
    display: none;
}

/* Hide custom cursor in Elementor editor */
.elementor-editor-active .cursor-dot,
.elementor-editor-active .cursor-outline {
    display: none;
}

/* Elementor columns spacing */
.elementor-column-gap-default > .elementor-column > .elementor-element-populated {
    padding: 15px;
}

/* Full width sections */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1400px;
}

/* Dark background sections */
.elementor-section.dark-section {
    background: var(--secondary-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Cards in Elementor */
.elementor-widget-container .service-card,
.elementor-widget-container .program-card,
.elementor-widget-container .startup-card {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    padding: 45px 35px;
    transition: all 0.4s;
}

.elementor-widget-container .service-card:hover,
.elementor-widget-container .program-card:hover,
.elementor-widget-container .startup-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-5px);
}

/* Gradient text in Elementor headings */
.elementor-heading-title.gradient-text,
.elementor-widget-heading .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}

/* Icon boxes */
.elementor-icon-box-wrapper {
    text-align: center;
}

.elementor-icon-box-icon {
    color: var(--accent-teal);
    font-size: 42px;
    margin-bottom: 25px;
}

.elementor-icon-box-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: capitalize;
    color: var(--text-white);
}

.elementor-icon-box-description {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
}

/* Dividers */
.elementor-divider-separator {
    border-top-color: var(--border-color);
}

/* Spacers */
.elementor-spacer-inner {
    height: 60px;
}

/* Images */
.elementor-widget-image img {
    border: 2px solid var(--border-color);
}

/* Video widget */
.elementor-widget-video {
    border: 2px solid var(--border-color);
}

/* Counter widget */
.elementor-counter-number-wrapper {
    color: var(--accent-teal);
    font-weight: 800;
    font-size: 60px;
}

.elementor-counter-title {
    color: var(--text-gray);
    text-transform: capitalize;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 14px;
}

/* Tabs widget */
.elementor-tabs .elementor-tab-title {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    color: var(--text-white);
}

.elementor-tabs .elementor-tab-title.elementor-active {
    background: var(--accent-teal);
    color: var(--primary-dark);
}

.elementor-tabs .elementor-tab-content {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    color: var(--text-gray);
}

/* Accordion widget */
.elementor-accordion .elementor-accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.elementor-accordion .elementor-tab-title {
    background: var(--secondary-dark);
    color: var(--text-white);
}

.elementor-accordion .elementor-tab-title.elementor-active {
    background: var(--accent-teal);
    color: var(--primary-dark);
}

.elementor-accordion .elementor-tab-content {
    background: var(--secondary-dark);
    color: var(--text-gray);
}

/* Forms */
.elementor-field-group input,
.elementor-field-group textarea,
.elementor-field-group select {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
}

.elementor-field-group input:focus,
.elementor-field-group textarea:focus,
.elementor-field-group select:focus {
    border-color: var(--accent-teal);
    outline: none;
}

.elementor-field-group label {
    color: var(--text-white);
    font-weight: 600;
}

.elementor-button[type="submit"] {
    background: var(--accent-gradient);
    border: none;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 1.5px;
}

.elementor-button[type="submit"]:hover {
    background: var(--accent-gradient-reverse);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 168, 150, 0.4);
}

/* Testimonials */
.elementor-testimonial-wrapper {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    padding: 40px;
}

.elementor-testimonial-content {
    color: var(--text-gray);
}

.elementor-testimonial-name {
    color: var(--text-white);
    font-weight: 700;
}

.elementor-testimonial-job {
    color: var(--accent-teal);
}

/* Social icons */
.elementor-social-icon {
    background: rgba(0, 168, 150, 0.1);
    border: 1px solid var(--accent-teal);
    color: var(--accent-teal);
}

.elementor-social-icon:hover {
    background: var(--accent-teal);
    color: var(--text-white);
    transform: translateY(-5px);
}

/* Progress bars */
.elementor-progress-bar {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
}

.elementor-progress-bar-inner {
    background: var(--accent-gradient);
}

.elementor-progress-text {
    color: var(--text-white);
}

/* Ensure Elementor sections work with full width */
.elementor-section.elementor-section-stretched {
    width: 100% !important;
    left: 0 !important;
}

/* Fix for Elementor canvas template */
.elementor-template-canvas {
    background: var(--primary-dark);
}

.elementor-template-canvas .site-navigation,
.elementor-template-canvas .site-footer {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .elementor-column {
        margin-bottom: 30px;
    }
    
    .elementor-counter-number-wrapper {
        font-size: 40px;
    }
}

/* Animation classes for Elementor */
.elementor-invisible {
    opacity: 0;
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation-name: fadeInUp;
}
