/* Sidebar Components Styles */

/* Sidebar Next Event */
.sidebar-next-event {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
}

.sidebar-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px 0;
    color: var(--color-text, #fff);
    opacity: 0.9;
    display: flex;
    align-items: center;
}

/* Sidebar Widget (generico per tutti i widget della sidebar) */
.sidebar-widget {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
}

.sidebar-widget .sidebar-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px 0;
    color: var(--color-text, #fff);
    opacity: 0.9;
    display: flex;
    align-items: center;
}

.sidebar-widget .sidebar-photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.sidebar-widget .sidebar-photo-thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    display: block;
    background: var(--color-surface, rgba(255, 255, 255, 0.05));
}

.sidebar-widget .sidebar-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sidebar-widget .sidebar-photo-thumb:hover img {
    transform: scale(1.05);
    opacity: 0.85;
}

/* Messages Widget */
.mg2025-messages-widget-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mg2025-messages-widget-item {
    padding: 8px;
    background: var(--color-surface, rgba(255, 255, 255, 0.03));
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mg2025-messages-widget-item:hover {
    background: var(--color-surface-hover, rgba(255, 255, 255, 0.08));
}

.mg2025-messages-widget-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--color-border, rgba(255, 255, 255, 0.1));
}

.mg2025-messages-widget-sender {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text, #fff);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mg2025-messages-widget-preview {
    font-size: 0.75rem;
    color: var(--color-text-secondary, rgba(255, 255, 255, 0.7));
    margin-bottom: 4px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mg2025-messages-widget-time {
    font-size: 0.7rem;
    color: var(--color-text-secondary, rgba(255, 255, 255, 0.5));
}

.mg2025-messages-widget-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--color-text-secondary, rgba(255, 255, 255, 0.6));
}

.mg2025-messages-widget-empty p {
    font-size: 0.875rem;
    margin: 0;
}

.sidebar-photo-author {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 6px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    font-size: 0.65rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Sidebar Event Card */
.sidebar-event-card {
    background: var(--color-surface, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
}

.sidebar-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar-event-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.sidebar-event-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-background-secondary, #111);
}

.sidebar-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-event-card:hover .sidebar-event-image img {
    transform: scale(1.05);
}

.sidebar-event-body {
    padding: 12px;
}

.sidebar-event-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--color-text, #fff);
    line-height: 1.3;
}

.sidebar-event-subtitle {
    font-size: 0.75rem;
    color: var(--color-text-secondary, rgba(255, 255, 255, 0.6));
    margin: 0 0 6px 0;
}

.sidebar-event-meta {
    font-size: 0.7rem;
    color: var(--color-text-secondary, rgba(255, 255, 255, 0.5));
    margin: 0 0 4px 0;
}

.sidebar-event-badge {
    display: inline-block;
    padding: 2px 6px;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

