/* 🎴 PULSAR EVENTS MODERN v7.8 - CARDS COM ÍCONES INTERATIVOS */

/* Event Card Enhanced */
.event-card.card-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card.card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--category-color, #8E2DE2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-card.card-enhanced:hover::before {
    opacity: 1;
}

/* Event Header Modern */
.event-header-modern {
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, rgba(142, 45, 226, 0.15), rgba(0, 255, 255, 0.08));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.event-header-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(135deg, rgba(142, 45, 226, 0.2), transparent);
    animation: gradientShift 8s infinite;
}

@keyframes gradientShift {
    0%, 100% {
        transform: translateX(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateX(20px) scale(1.1);
        opacity: 0.8;
    }
}

.event-header-content {
    position: relative;
    z-index: 1;
}

/* Category Badge */
.event-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.event-category-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.category-icon {
    font-size: 1rem;
}

.category-name {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Event Title Modern */
.event-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

/* Event Phrase */
.event-phrase {
    font-size: 0.95rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 500;
}

/* Icons Bar */
.event-icons-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.event-icon-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-icon-btn .icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px currentColor);
    transition: all 0.3s ease;
}

.event-icon-btn .icon-label {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Icon Hover Effects - Neon */
.event-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.event-icon-btn:hover .icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px currentColor);
}

.event-icon-btn:hover .icon-label {
    opacity: 1;
}

/* Specific Icon Colors */
.icon-chat:hover {
    border-color: rgba(255, 51, 102, 0.5);
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.3);
}

.icon-chat:hover .icon {
    color: #FF3366;
}

.icon-weather:hover {
    border-color: rgba(255, 184, 71, 0.5);
    box-shadow: 0 10px 30px rgba(255, 184, 71, 0.3);
}

.icon-weather:hover .icon {
    color: #FFB847;
}

.icon-waze:hover {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.icon-waze:hover .icon {
    color: #00FFFF;
}

.icon-photos:hover {
    border-color: rgba(142, 45, 226, 0.5);
    box-shadow: 0 10px 30px rgba(142, 45, 226, 0.3);
}

.icon-photos:hover .icon {
    color: #8E2DE2;
}

/* Tooltip */
.event-icon-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 6px 12px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.event-icon-btn::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(20, 20, 30, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.event-icon-btn:hover::before,
.event-icon-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Weather Modal */
.pulsar-weather-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.weather-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.weather-modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    animation: scaleIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 51, 102, 0.2);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 51, 102, 0.4);
    transform: rotate(90deg);
}

.weather-header h3 {
    color: #fff;
    font-size: 1.4rem;
    margin: 0 0 4px 0;
}

.weather-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0 0 20px 0;
}

.weather-main {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.weather-icon {
    font-size: 4rem;
    margin-bottom: 12px;
}

.weather-temp {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.weather-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: capitalize;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.weather-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.detail-icon {
    font-size: 1.5rem;
}

.detail-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

/* Photos Modal */
.pulsar-photos-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.photos-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.photos-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: scaleIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.photos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.photos-header h3 {
    color: #fff;
    font-size: 1.4rem;
    margin: 0;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.05);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-view-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-view-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.photos-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.photos-empty p {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.photos-empty small {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    display: block;
}

.photos-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
}

.upload-photo-btn {
    background: linear-gradient(90deg, #8E2DE2, #00FFFF);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.upload-photo-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(142, 45, 226, 0.4);
}

/* Toast Notification */
.pulsar-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 20px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10002;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .event-icons-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .event-icon-btn {
        padding: 10px 6px;
    }

    .event-icon-btn .icon {
        font-size: 1.5rem;
    }

    .event-icon-btn .icon-label {
        font-size: 0.7rem;
    }

    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .pulsar-toast {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .event-header-modern {
        padding: 16px;
    }

    .event-title-modern {
        font-size: 1.2rem;
    }

    .event-phrase {
        font-size: 0.85rem;
    }

    .event-icons-bar {
        padding: 12px;
    }

    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
