/**
 * Geo Synchronized Widgets Styles
 * 
 * Styles for header CTA, sidebar CTA, and dropdown switcher widgets
 * that work in sync with the main content switcher widget.
 */

/* =============================================================================
   Header CTA Widget
   ============================================================================= */

.geo-header-cta-widget {
    display: inline-block;
}

.geo-header-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #dc7464;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 116, 100, 0.3);
    position: relative;
    overflow: hidden;
}

.geo-header-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.geo-header-cta-button:hover {
    background-color: #c5634f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 116, 100, 0.4);
    text-decoration: none !important;
    color: #ffffff !important;
}

.geo-header-cta-button:hover::before {
    left: 100%;
}

.geo-header-cta-button:active {
    transform: translateY(0);
}

/* =============================================================================
   Sidebar CTA Widget
   ============================================================================= */

.geo-sidebar-cta-widget {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.geo-sidebar-cta-widget:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.geo-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.geo-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.geo-sidebar-description {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    margin: 0;
}

.geo-sidebar-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #dc7464;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px;
    padding: 12px 20px !important;
    border-radius: 50px !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(220, 116, 100, 0.3);
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.geo-sidebar-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.geo-sidebar-cta-button:hover {
    background-color: #c5634f;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(220, 116, 100, 0.4);
    text-decoration: none !important;
    color: #ffffff !important;
}

.geo-sidebar-cta-button:hover::before {
    left: 100%;
}

.geo-sidebar-cta-button:active {
    transform: translateY(0);
}

/* =============================================================================
   Dropdown Switcher Widget
   ============================================================================= */

.geo-dropdown-switcher-widget {
    display: inline-block;
}

.geo-dropdown-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    line-height: 1.4;
}

.geo-country-dropdown {
    display: inline-block;
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    min-width: 180px;
}

.geo-country-dropdown:hover {
    border-color: #dc7464;
    box-shadow: 0 0 0 3px rgba(220, 116, 100, 0.1);
}

.geo-country-dropdown:focus {
    outline: none;
    border-color: #dc7464;
    box-shadow: 0 0 0 3px rgba(220, 116, 100, 0.2);
}

.geo-country-dropdown option {
    padding: 8px 12px;
    font-size: 14px;
    color: #374151;
    background-color: #ffffff;
}

/* =============================================================================
   Responsive Design
   ============================================================================= */

/* Tablet */
@media (max-width: 768px) {
    .geo-header-cta-button {
        font-size: 13px;
        padding: 6px 16px !important;
    }

    .geo-sidebar-cta-widget {
        padding: 16px;
        border-radius: 8px;
    }

    .geo-sidebar-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .geo-sidebar-description {
        font-size: 13px;
    }

    .geo-sidebar-cta-button {
        font-size: 13px;
        padding: 10px 16px !important;
    }

    .geo-country-dropdown {
        min-width: 160px;
        font-size: 13px;
        padding: 6px 28px 6px 10px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .geo-header-cta-button {
        font-size: 12px;
        padding: 6px 14px !important;
    }

    .geo-sidebar-cta-widget {
        padding: 14px;
        border-radius: 6px;
    }

    .geo-sidebar-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .geo-sidebar-description {
        font-size: 12px;
    }

    .geo-sidebar-cta-button {
        font-size: 12px;
        padding: 9px 14px !important;
        border-radius: 25px !important;
    }

    .geo-dropdown-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .geo-country-dropdown {
        min-width: 140px;
        font-size: 12px;
        padding: 5px 26px 5px 8px;
        border-radius: 6px;
    }
}

/* =============================================================================
   Dark Mode Support
   ============================================================================= */

@media (prefers-color-scheme: dark) {
    .geo-sidebar-cta-widget {
        background-color: #1e293b;
        border-color: #374151;
        color: #f1f5f9;
    }

    .geo-sidebar-title {
        color: #f1f5f9;
    }

    .geo-sidebar-description {
        color: #cbd5e1;
    }

    .geo-dropdown-label {
        color: #f1f5f9;
    }

    .geo-country-dropdown {
        background-color: #1e293b;
        border-color: #4b5563;
        color: #f1f5f9;
        background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23cbd5e1" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    }

    .geo-country-dropdown:hover {
        border-color: #dc7464;
        box-shadow: 0 0 0 3px rgba(220, 116, 100, 0.2);
    }

    .geo-country-dropdown:focus {
        border-color: #dc7464;
        box-shadow: 0 0 0 3px rgba(220, 116, 100, 0.3);
    }

    .geo-country-dropdown option {
        background-color: #1e293b;
        color: #f1f5f9;
    }
}

/* =============================================================================
   High Contrast Mode
   ============================================================================= */

@media (prefers-contrast: high) {
    .geo-header-cta-button,
    .geo-sidebar-cta-button {
        border: 2px solid #000000;
    }

    .geo-country-dropdown {
        border-width: 2px;
        border-color: #000000;
    }

    .geo-sidebar-cta-widget {
        border-width: 2px;
        border-color: #000000;
    }
}

/* =============================================================================
   Reduced Motion
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
    .geo-header-cta-button,
    .geo-sidebar-cta-button,
    .geo-country-dropdown,
    .geo-sidebar-cta-widget,
    .geo-header-cta-button::before,
    .geo-sidebar-cta-button::before {
        transition: none;
    }

    .geo-header-cta-button:hover,
    .geo-sidebar-cta-button:hover,
    .geo-sidebar-cta-widget:hover {
        transform: none;
    }
}

/* =============================================================================
   Print Styles
   ============================================================================= */

@media print {
    .geo-dropdown-switcher-widget {
        display: none;
    }

    .geo-header-cta-button,
    .geo-sidebar-cta-button {
        background: #f5f5f5 !important;
        color: #000000 !important;
        border: 1px solid #000000;
        box-shadow: none;
    }

    .geo-sidebar-cta-widget {
        box-shadow: none;
        border: 1px solid #000000;
    }
}

/* =============================================================================
   RTL Support
   ============================================================================= */

[dir="rtl"] .geo-country-dropdown {
    background-position: left 12px center;
    padding: 8px 12px 8px 32px;
}

[dir="rtl"] .geo-dropdown-label {
    text-align: right;
}

[dir="rtl"] .geo-sidebar-content {
    text-align: right;
}

/* =============================================================================
   Elementor Editor Compatibility
   ============================================================================= */

/* Make sure widgets are visible in Elementor editor */
.elementor-editor-active .geo-header-cta-widget,
.elementor-editor-active .geo-sidebar-cta-widget,
.elementor-editor-active .geo-dropdown-switcher-widget {
    pointer-events: auto;
}

/* Ensure proper spacing in Elementor columns */
.elementor-widget-container .geo-header-cta-widget,
.elementor-widget-container .geo-sidebar-cta-widget,
.elementor-widget-container .geo-dropdown-switcher-widget {
    margin: 0;
}

/* Override Elementor's default link styles */
.elementor-widget-container .geo-header-cta-button,
.elementor-widget-container .geo-sidebar-cta-button {
    color: #ffffff !important;
    text-decoration: none !important;
}

.elementor-widget-container .geo-header-cta-button:hover,
.elementor-widget-container .geo-sidebar-cta-button:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}