/* Shared Event Styling for Social Feed */

.shared-event-post {
    border: 2px solid #1DB954;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.05) 0%, rgba(29, 185, 84, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.shared-event-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1DB954, #1ed760, #17b94a);
    z-index: 1;
}

.shared-event-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px 10px;
    color: #1DB954;
    font-weight: 600;
    font-size: 14px;
}

.shared-event-header i {
    font-size: 16px;
}

.shared-event-content {
    background: #2a2a2a;
    margin: 0 15px 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shared-event-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 185, 84, 0.15);
}

.shared-event-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #333, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.shared-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shared-event-image .no-image {
    color: #666;
    font-size: 3em;
    opacity: 0.5;
}

.shared-event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.shared-event-category {
    background: rgba(29, 185, 84, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    top: 15px;
    left: 15px;
}

.shared-event-info {
    padding: 20px;
}

.shared-event-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.shared-event-description {
    color: #ccc;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shared-event-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.shared-event-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #bbb;
    font-size: 0.9em;
}

.shared-event-detail i {
    color: #1DB954;
    width: 16px;
}

.shared-event-creator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.shared-event-creator-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1DB954;
}

.shared-event-creator-info {
    flex: 1;
}

.shared-event-creator-name {
    color: #1DB954;
    font-weight: 600;
    font-size: 0.9em;
}

.shared-event-creator-label {
    color: #888;
    font-size: 0.8em;
}

.shared-event-stats {
    display: flex;
    gap: 15px;
    align-items: center;
}

.shared-event-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #888;
    font-size: 0.85em;
}

.shared-event-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.shared-event-rsvp {
    display: flex;
    gap: 10px;
}

.shared-event-rsvp-btn {
    background: transparent;
    border: 1px solid #555;
    color: #ccc;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shared-event-rsvp-btn:hover {
    border-color: #1DB954;
    color: #1DB954;
}

.shared-event-rsvp-btn.active {
    background: #1DB954;
    border-color: #1DB954;
    color: white;
}

.shared-event-view-btn {
    background: linear-gradient(135deg, #1DB954, #1ed760);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.shared-event-view-btn:hover {
    transform: translateY(-1px);
}

.user-share-message {
    padding: 15px 20px 0;
    color: #fff;
    font-size: 0.95em;
    line-height: 1.5;
}

.user-share-message.empty {
    display: none;
}

/* Date badge for shared events */
.shared-event-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(29, 185, 84, 0.5);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .shared-event-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .shared-event-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .shared-event-rsvp {
        justify-content: center;
    }
    
    .shared-event-view-btn {
        text-align: center;
        justify-content: center;
    }
    
    .shared-event-image {
        height: 150px;
    }
}

/* Loading state for shared events */
.shared-event-loading {
    background: #333;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #666;
    margin: 0 15px 15px;
}

.shared-event-error {
    background: #4a2c2c;
    border: 1px solid #ff6b6b;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #ff9999;
    margin: 0 15px 15px;
}

/* Animation for new shared events */
@keyframes slideInSharedEvent {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shared-event-post.new {
    animation: slideInSharedEvent 0.5s ease-out;
}

/* Special indicator for event updates */
.shared-event-updated {
    position: relative;
}

.shared-event-updated::after {
    content: 'Updated';
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffa700;
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
} 