/**
 * WedPlatform - Efectos visuales para proveedores Premium
 * Uniforma badge Premium + nombre palpitante en home y archive de proveedores.
 */

/* Badge "Premium": fondo dorado con shimmer y latido sutil */
.wed-premium-badge {
    color: #1b190e;
    background: linear-gradient(135deg, #d4af37 0%, #f5d96a 50%, #d4af37 100%);
    background-size: 200% 200%;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: wedPremiumBadgeShine 3s ease-in-out infinite, wedPremiumBadgePulse 2.4s ease-in-out infinite;
}

@keyframes wedPremiumBadgeShine {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes wedPremiumBadgePulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(212, 175, 55, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.25) inset; transform: scale(1); }
    50%      { box-shadow: 0 4px 16px rgba(212, 175, 55, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;  transform: scale(1.04); }
}

/* Nombre del proveedor Premium: alterna entre negro elegante y dorado */
.wed-premium-name {
    animation: wedPremiumNamePulse 3s ease-in-out infinite;
}

@keyframes wedPremiumNamePulse {
    0%, 100% { color: #1b190e; }
    50%      { color: #d4af37; }
}

/* Card del proveedor: levanta y resalta borde al pasar el mouse */
.wed-vendor-card {
    transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
    will-change: transform;
}
.wed-vendor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(212, 175, 55, 0.18);
}
.wed-vendor-card--premium {
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.55);
}
.wed-vendor-card--premium:hover {
    box-shadow: 0 14px 32px rgba(212, 175, 55, 0.32), 0 4px 10px rgba(0, 0, 0, 0.08);
    border-color: #d4af37;
}

/* Respeta usuarios que prefieren menos movimiento (accesibilidad) */
@media (prefers-reduced-motion: reduce) {
    .wed-premium-badge,
    .wed-premium-name,
    .wed-vendor-card { animation: none !important; transition: none !important; }
    .wed-vendor-card:hover { transform: none !important; }
}

/* Botón corazón "favoritos" en cards: fondo blanco sólido y mejor contraste */
.wed-fav-btn {
    background-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #9ca3af;
    transition: color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
    cursor: pointer;
}
.wed-fav-btn:hover {
    color: #ef4444;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}
.wed-fav-btn.is-saved {
    color: #ef4444;
}

/* Modal "Inicia sesión o regístrate" — overlay global */
.wed-auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    animation: wedAuthFadeIn 180ms ease-out;
}
.wed-auth-modal.is-open { display: flex; }
.wed-auth-modal__panel {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 2rem 1.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    text-align: center;
    position: relative;
    animation: wedAuthSlideUp 220ms ease-out;
}
.wed-auth-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 1.25rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 150ms ease, color 150ms ease;
}
.wed-auth-modal__close:hover { background: #f3f4f6; color: #1b190e; }
.wed-auth-modal__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fef3c7;
    color: #d4af37;
    font-size: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.wed-auth-modal__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1b190e;
    margin: 0 0 0.5rem;
}
.wed-auth-modal__text {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}
.wed-auth-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.wed-auth-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 180ms ease, transform 180ms ease;
    cursor: pointer;
    border: 0;
}
.wed-auth-modal__btn--primary { background: #d4af37; color: #1b190e; }
.wed-auth-modal__btn--primary:hover { background: #b08d2b; color: #fff; transform: translateY(-1px); }
.wed-auth-modal__btn--ghost { background: #fff; color: #1b190e; border: 1.5px solid #d4af37; }
.wed-auth-modal__btn--ghost:hover { background: #fef3c7; transform: translateY(-1px); }

@keyframes wedAuthFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes wedAuthSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
