/* ========================================
   EVENTS CALENDAR STYLES
======================================== */

.events-calendar-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.events-header h2 {
    color: #56b0ff;
    margin: 0;
}

.btn-create-event {
    padding: 10px 20px;
    background: #56b0ff;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-create-event:hover {
    background: #8dcaff;
    transform: translateY(-2px);
}

/* View Toggle */
.events-view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.view-btn {
    padding: 10px 20px;
    background: rgba(86, 176, 255, 0.1);
    border: 1px solid rgba(86, 176, 255, 0.3);
    border-radius: 8px;
    color: #56b0ff;
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn.active {
    background: rgba(86, 176, 255, 0.3);
    border-color: #56b0ff;
}

.view-btn:hover {
    background: rgba(86, 176, 255, 0.2);
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-events {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 16px;
}

/* Event Card */
.event-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(14, 36, 53, 0.6);
    border: 1px solid rgba(86, 176, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s;
}

.event-card:hover {
    border-color: rgba(86, 176, 255, 0.4);
    transform: translateY(-2px);
}

.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 70px;
    background: rgba(86, 176, 255, 0.2);
    border: 2px solid #56b0ff;
    border-radius: 8px;
}

.event-day {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.event-month {
    font-size: 12px;
    color: #56b0ff;
    text-transform: uppercase;
}

.event-content {
    flex: 1;
}

.event-title {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.event-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 13px;
    color: #888;
}

.event-description {
    color: #ddd;
    margin: 10px 0;
    line-height: 1.5;
}

.event-creator {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

.event-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.event-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    white-space: nowrap;
}

.btn-join {
    background: #56b0ff;
    color: #000;
    font-weight: bold;
}

.btn-join:hover:not(.disabled) {
    background: #8dcaff;
}

.btn-join.disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
}

.btn-joined {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
    cursor: default;
}

.btn-leave {
    background: rgba(255, 77, 77, 0.2);
    border: 1px solid rgba(255, 77, 77, 0.3);
    color: #ff4d4d;
}

.btn-leave:hover {
    background: rgba(255, 77, 77, 0.3);
}

.btn-details {
    background: rgba(86, 176, 255, 0.1);
    border: 1px solid rgba(86, 176, 255, 0.3);
    color: #56b0ff;
}

.btn-details:hover {
    background: rgba(86, 176, 255, 0.2);
}

/* Calendar View */
.calendar-view {
    background: rgba(14, 36, 53, 0.6);
    border: 1px solid rgba(86, 176, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h3 {
    color: #56b0ff;
    margin: 0;
}

.calendar-header button {
    background: rgba(86, 176, 255, 0.2);
    border: 1px solid rgba(86, 176, 255, 0.3);
    color: #56b0ff;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.weekday {
    text-align: center;
    color: #56b0ff;
    font-weight: bold;
    font-size: 14px;
    padding: 10px;
}

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

.calendar-day {
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(86, 176, 255, 0.2);
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day:hover:not(.empty) {
    background: rgba(86, 176, 255, 0.1);
    border-color: #56b0ff;
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.calendar-day.has-events {
    border-color: #56b0ff;
}

.day-number {
    color: #fff;
    font-size: 14px;
}

.event-dots {
    color: #56b0ff;
    font-size: 20px;
    text-align: center;
    margin-top: 5px;
}

/* Create Event Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal .modal-content {
    background: rgba(14, 36, 53, 0.98);
    border: 1px solid rgba(86, 176, 255, 0.3);
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal h3 {
    color: #56b0ff;
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
    }

    .event-actions {
        flex-direction: row;
        width: 100%;
    }

    .event-actions button {
        flex: 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .calendar-days {
        gap: 2px;
    }

    .calendar-day {
        padding: 4px;
    }
}