/* ============================================================
   social-popup.css — Eclipse Zone
   1) Ventana flotante de comunidad (Patreon / Discord / YouTube)
   2) Modal "Cambios del sitio" (js/site-updates.js)
   3) Chips de cambios en "Novedades de esta semana"
   ============================================================ */

/* ── 1. Popup social flotante ─────────────────────────────── */

.ez-social-popup {
    position: fixed;
    right: 18px;
    bottom: 86px;                 /* por encima de la barra de navegación móvil */
    z-index: 15000;
    width: min(340px, calc(100vw - 36px));
    padding: 18px 16px 16px;
    border-radius: 16px;
    background:
        radial-gradient(140% 120% at 100% 0%, rgba(255, 66, 168, 0.16), transparent 55%),
        linear-gradient(165deg, #1d1f3a, #14152b);
    border: 1px solid rgba(136, 121, 255, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    animation: ezSocialIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes ezSocialIn {
    from { opacity: 0; transform: translateY(24px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.ez-social-popup.ez-social-out {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    transition: opacity 0.3s, transform 0.3s;
}

.ez-social-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #b6baf2;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.ez-social-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.ez-social-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-right: 26px;
}

.ez-social-emoji {
    font-size: 1.9rem;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(255, 66, 168, 0.5));
}

.ez-social-title {
    font-weight: 800;
    font-size: 0.98rem;
    color: #f1f2ff;
}

.ez-social-sub {
    font-size: 0.78rem;
    color: #b6baf2;
    margin-top: 2px;
}

.ez-social-buttons {
    display: flex;
    gap: 8px;
}

.ez-social-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
    transition: transform 0.15s, filter 0.15s;
}

.ez-social-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
}

.ez-social-patreon { background: linear-gradient(135deg, #ff424d, #ff42a8); }
.ez-social-discord { background: linear-gradient(135deg, #5865F2, #7289da); }
.ez-social-youtube { background: linear-gradient(135deg, #e62117, #b31217); }

@media (max-width: 560px) {
    .ez-social-popup {
        right: 50%;
        transform: translateX(50%);
        bottom: 78px;
    }
    .ez-social-popup.ez-social-out {
        transform: translateX(50%) translateY(16px) scale(0.96);
    }
}

/* ── 2. Modal "Cambios del sitio" ─────────────────────────── */

.ez-updates-overlay {
    position: fixed;
    inset: 0;
    z-index: 15500;
    background: rgba(8, 9, 20, 0.72);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    animation: ezFadeIn 0.2s ease;
}

@keyframes ezFadeIn { from { opacity: 0; } to { opacity: 1; } }

.ez-updates-box {
    width: min(560px, 100%);
    max-height: min(76vh, 640px);
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: linear-gradient(170deg, #1c1e38, #131428);
    border: 1px solid rgba(136, 121, 255, 0.3);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: ezSocialIn 0.3s ease;
}

.ez-updates-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-weight: 800;
    font-size: 1rem;
    color: #f1f2ff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ez-updates-header .bi-tools { color: #8a7dff; margin-right: 6px; }

.ez-updates-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #b6baf2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.ez-updates-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.ez-updates-list {
    overflow-y: auto;
    padding: 16px 18px 20px;
}

.ez-update-item {
    display: flex;
    gap: 12px;
    position: relative;
    padding-bottom: 18px;
}

.ez-update-item:last-child { padding-bottom: 4px; }

/* Línea de timeline */
.ez-update-item::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 16px;
    bottom: 0;
    width: 2px;
    background: rgba(136, 121, 255, 0.25);
}

.ez-update-item:last-child::before { display: none; }

.ez-update-dot {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    margin-top: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff42a8, #5865F2);
    box-shadow: 0 0 10px rgba(136, 121, 255, 0.6);
}

.ez-update-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.ez-update-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #eef0ff;
}

.ez-update-date {
    font-size: 0.72rem;
    color: #8f93c9;
}

.ez-update-desc {
    font-size: 0.82rem;
    color: #b6baf2;
    line-height: 1.55;
    margin-top: 3px;
}

/* ── 3. Chips de cambios en Novedades ─────────────────────── */

.weekly-item-update {
    background: linear-gradient(135deg, rgba(255, 66, 168, 0.16), rgba(88, 101, 242, 0.16)) !important;
    border: 1px solid rgba(255, 66, 168, 0.35) !important;
}

.weekly-changelog-btn {
    border: 1px solid rgba(136, 121, 255, 0.4);
    border-radius: 20px;
    background: rgba(136, 121, 255, 0.12);
    color: #b6baf2;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.weekly-changelog-btn:hover {
    background: rgba(136, 121, 255, 0.25);
    color: #fff;
}
