/**
 * EventLive - Location Permission Modal
 * Estilos para el modal de solicitud de ubicación
 */

/* ========================================
   MODAL BASE
======================================== */
.ela-location-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ela-location-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Overlay */
.ela-location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: ela-location-fade-in 0.3s ease;
}

/* Content */
.ela-location-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: ela-location-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

/* Close Button */
.ela-location-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.ela-location-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.ela-location-close .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #666;
}

/* Icon */
.ela-location-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.ela-location-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #ffffff;
}

/* Title */
.ela-location-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    text-align: center;
    line-height: 1.3;
}

/* Description */
.ela-location-description {
    font-size: 15px;
    color: #666;
    margin: 0 0 24px 0;
    text-align: center;
    line-height: 1.6;
}

/* Benefits */
.ela-location-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.ela-location-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #333;
}

.ela-location-benefit .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #667eea;
    flex-shrink: 0;
}

/* Buttons */
.ela-location-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.ela-location-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ela-location-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ela-location-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ela-location-btn-primary .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.ela-location-btn-secondary {
    background: transparent;
    color: #666;
    border: 2px solid #e0e0e0;
}

.ela-location-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

/* Privacy */
.ela-location-privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #999;
    margin: 0;
    text-align: left;
    line-height: 1.5;
}

.ela-location-privacy .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ========================================
   DARK MODE
======================================== */
@media (prefers-color-scheme: dark) {
    .ela-location-content {
        background: #1e1e1e;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    }
    
    .ela-location-close {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .ela-location-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .ela-location-close .dashicons {
        color: #e5e5e5;
    }
    
    .ela-location-title {
        color: #ffffff;
    }
    
    .ela-location-description {
        color: #b0b0b0;
    }
    
    .ela-location-benefits {
        background: #2a2a2a;
    }
    
    .ela-location-benefit {
        color: #e5e5e5;
    }
    
    .ela-location-btn-secondary {
        color: #b0b0b0;
        border-color: #3a3a3a;
    }
    
    .ela-location-btn-secondary:hover {
        background: #2a2a2a;
        border-color: #4a4a4a;
        color: #e5e5e5;
    }
    
    .ela-location-privacy {
        color: #757575;
    }
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes ela-location-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes ela-location-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */
@media (max-width: 768px) {
    .ela-location-content {
        padding: 24px;
        max-width: 95%;
        border-radius: 20px 20px 0 0;
        margin-top: auto;
    }
    
    .ela-location-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .ela-location-icon .dashicons {
        font-size: 32px;
        width: 32px;
        height: 32px;
    }
    
    .ela-location-title {
        font-size: 20px;
    }
    
    .ela-location-description {
        font-size: 14px;
    }
    
    .ela-location-benefits {
        padding: 16px;
        gap: 10px;
    }
    
    .ela-location-benefit {
        font-size: 13px;
    }
    
    .ela-location-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .ela-location-content {
        padding: 20px;
    }
    
    .ela-location-icon {
        width: 56px;
        height: 56px;
    }
    
    .ela-location-icon .dashicons {
        font-size: 28px;
        width: 28px;
        height: 28px;
    }
    
    .ela-location-title {
        font-size: 18px;
    }
    
    .ela-location-description {
        font-size: 13px;
    }
}

/* ========================================
   STATES
======================================== */
.ela-location-modal.closing .ela-location-overlay {
    animation: ela-location-fade-out 0.3s ease;
}

.ela-location-modal.closing .ela-location-content {
    animation: ela-location-slide-down 0.3s ease;
}

@keyframes ela-location-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes ela-location-slide-down {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
}







