/**
 * Footer Elan Widget Styles
 * 
 * @package PUIUX_Widgets
 * @since 1.0.0
 */

/* Footer PUIUX Logo SEO & Accessibility Enhancements */
.puiux-logo {
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-height: 40px;
    width: auto;
}

.puiux-logo:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Protected logo indicator */
.puiux-widget-wrapper [data-setting="enable_puiux_logo"] {
    position: relative;
}

.puiux-widget-wrapper [data-setting="enable_puiux_logo"]:after {
    content: "🛡️";
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.8;
    animation: protectionPulse 2s infinite;
}

@keyframes protectionPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Elementor Control Protection Style */
[data-setting="enable_puiux_logo"] .elementor-control-input-wrapper:after {
    content: "محمي";
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    animation: protectionBlink 3s infinite;
}

@keyframes protectionBlink {
    0%, 90% { opacity: 1; }
    95% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Disable pointer events on switch when trying to turn off */
[data-setting="enable_puiux_logo"] .elementor-switch-input:not(:checked) + .elementor-switch-label {
    pointer-events: none;
    opacity: 0.7;
}

/* Warning style for protected control */
[data-setting="enable_puiux_logo"]:hover {
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3) !important;
    border-color: #e74c3c !important;
}

/* Social Icons Enhanced Styling */
.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(95, 93, 169, 0.1);
}

.social-icon:hover {
    background: rgba(95, 93, 169, 0.2);
    transform: translateY(-2px);
}

.social-icon i {
    font-size: 18px;
    color: #5f5da9;
}

.social-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Footer Bottom Enhanced */
.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(95, 93, 169, 0.1);
}

/* SEO Schema Microdata Styling */
[itemtype="https://schema.org/WPFooter"] {
    position: relative;
}

[itemtype="https://schema.org/Organization"] {
    display: inline-block;
}

/* Accessibility Improvements */
.footer [role="list"] {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer [role="listitem"] {
    margin-bottom: 0.5rem;
}

/* Contact Info Icons */
.footer i {
    margin-right: 8px;
    color: #5f5da9;
    width: 16px;
    text-align: center;
}

/* Protection Popup Enhanced Styles */
.puiux-protection-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    backdrop-filter: blur(5px);
}

.puiux-protection-popup a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.puiux-popup-close:hover {
    background: #7f8c8d !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Additional visual protection indicators */
.elementor-control[data-setting="enable_puiux_logo"] {
    position: relative;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.elementor-control[data-setting="enable_puiux_logo"]:before {
    content: "PROTECTED";
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    animation: protectionGlow 2s infinite alternate;
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.3);
}

@keyframes protectionGlow {
    from { box-shadow: 0 2px 5px rgba(231, 76, 60, 0.3); }
    to { box-shadow: 0 2px 15px rgba(231, 76, 60, 0.6); }
}

/* Warning border for protected control */
.elementor-control[data-setting="enable_puiux_logo"]:hover {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

/* Disable switch animation when protected */
[data-setting="enable_puiux_logo"] .elementor-switch-input {
    transition: none !important;
}

/* Add Arabic text support */
.puiux-protection-popup * {
    direction: rtl;
    text-align: right;
}

.puiux-protection-popup [dir="ltr"] {
    direction: ltr;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-icons {
        justify-content: center;
        margin: 1rem 0;
    }
    
    .footer-bottom {
        text-align: center !important;
    }
    
    .footer-bottom .col-md-6 {
        margin-bottom: 1rem;
    }
}
