/**
 * Loby Events Plugin Styles
 */

.loby-events-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
    max-width: 100%;
}

.loby-event-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.loby-event-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}

.loby-event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f5f5f5;
}

.loby-event-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
    line-height: 1.3;
}

.loby-event-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.loby-event-sold-out {
    background-color: #f44336;
    color: #fff;
}

.loby-event-on-sale {
    background-color: #4caf50;
    color: #fff;
}

.loby-event-description {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

.loby-event-description p {
    margin: 0.75rem 0;
}

.loby-event-details {
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.25rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.loby-event-date {
    margin-bottom: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.loby-event-date strong {
    color: #333;
    margin-right: 0.75rem;
    font-weight: 600;
    min-width: 60px;
}

.loby-event-ticket-types {
    margin-top: 0;
    grid-column: 1 / -1;
}

.loby-event-ticket-types strong {
    display: block;
    margin-bottom: 0.75rem;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

.loby-event-ticket-types ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.loby-event-ticket-types li {
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #555;
    flex: 1;
    min-width: 200px;
}

.loby-ticket-availability {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.loby-event-actions {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px solid #f5f5f5;
}

.loby-event-ticket-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.loby-event-ticket-button:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.loby-event-ticket-button:focus {
    outline: 2px solid #2196f3;
    outline-offset: 2px;
}

.loby-events-error {
    padding: 1rem;
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
    margin: 1rem 0;
    border-radius: 4px;
}

.loby-events-empty {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Calendar Styles */
.loby-calendar-container {
    max-width: 100%;
    margin: 2rem 0;
}

.loby-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 2px solid #e0e0e0;
}

.loby-calendar-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
    text-align: center;
}

.loby-calendar-nav {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.75rem 1.25rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
    line-height: 1;
}

.loby-calendar-nav:hover {
    background: #e0e0e0;
    border-color: #d0d0d0;
}

.loby-calendar-grid {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.loby-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f9f9f9;
    border-bottom: 2px solid #e0e0e0;
}

.loby-calendar-weekday {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.loby-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.loby-calendar-day {
    min-height: 120px;
    border: 1px solid #f0f0f0;
    padding: 0.5rem;
    position: relative;
    background: #fff;
    transition: background 0.2s ease;
}

.loby-calendar-day:hover {
    background: #f9f9f9;
}

.loby-calendar-day-empty {
    background: #fafafa;
    cursor: default;
}

.loby-calendar-day-today {
    background: #e3f2fd;
    border-color: #2196f3;
}

.loby-calendar-day-today .loby-calendar-day-number {
    background: #2196f3;
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.loby-calendar-day-number {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.loby-calendar-day-has-events {
    cursor: pointer;
}

.loby-calendar-day-events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.loby-calendar-event {
    background: #2196f3;
    color: #fff;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loby-calendar-event:hover {
    background: #1976d2;
    transform: translateX(2px);
}

.loby-calendar-event-title {
    display: block;
    font-weight: 500;
}

/* Event Modal */
.loby-event-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

.loby-event-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loby-event-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

.loby-event-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    z-index: 10001;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.loby-event-modal-close:hover {
    color: #333;
    background: #f5f5f5;
}

.loby-event-modal-body {
    padding: 2rem;
}

.loby-event-modal-title {
    margin: 0 0 1.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    padding-right: 3rem;
}

.loby-event-modal-description {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

.loby-event-modal-dates {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.loby-event-modal-date {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.loby-event-modal-date:last-child {
    margin-bottom: 0;
}

.loby-event-modal-date strong {
    color: #333;
    margin-right: 0.75rem;
    font-weight: 600;
}

.loby-event-modal-tickets {
    margin-bottom: 1.5rem;
}

.loby-event-modal-tickets strong {
    display: block;
    margin-bottom: 0.75rem;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

.loby-event-modal-tickets ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.loby-event-modal-tickets li {
    padding: 0.75rem 1rem;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #555;
}

.loby-event-modal-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f5f5f5;
}

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

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .loby-events-container {
        gap: 1.5rem;
    }
    
    .loby-event-item {
        padding: 1.5rem;
    }
    
    .loby-event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .loby-event-title {
        font-size: 1.5rem;
    }
    
    .loby-event-details {
        grid-template-columns: 1fr;
    }
    
    .loby-event-ticket-types ul {
        flex-direction: column;
    }
    
    .loby-event-ticket-types li {
        min-width: 100%;
    }
    
    .loby-event-ticket-button {
        width: 100%;
        text-align: center;
    }
    
    .loby-calendar-day {
        min-height: 80px;
    }
    
    .loby-calendar-event {
        font-size: 0.7rem;
        padding: 0.25rem 0.4rem;
    }
    
    .loby-calendar-title {
        font-size: 1.5rem;
    }
    
    .loby-event-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .loby-event-modal-body {
        padding: 1.5rem;
    }
}
