/* Events Page Specific Styles */

.layout-container {
    grid-template-columns: 320px 1fr;
    grid-template-rows: 1fr;
}

.calendar-sidebar {
    background-color: transparent;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: auto;
    min-height: 0;
    height: 100%;
}

.month-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    background-color: var(--surface);
    border-radius: 10px;
    padding: 10px 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
}

.month-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.month-nav {
    display: flex;
    gap: 10px;
}

.month-nav-btn {
    background: none;
    border: none;
    color: var(--text);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.month-nav-btn:hover {
    color: var(--primary);
}

.month-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
    background-color: var(--surface);
    border-radius: 10px;
    padding: 10px 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
}

.day-header {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 5px 0;
}

.calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    background-color: var(--surface);
    border-radius: 10px;
    padding: 10px 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
}

.date-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.date-cell.empty {
    cursor: default;
}

.date-cell.has-events::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--primary);
}

.date-cell.active {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(255, 77, 166, 0.3);
}

.date-cell:hover:not(.empty):not(.active) {
    background-color: rgba(255, 77, 166, 0.1);
}

.events-content {
    padding: 20px;
    background-color: transparent;
    overflow-y: auto;
    height: 100%;
    min-height: 0;
}

.events-content::-webkit-scrollbar,
.calendar-sidebar::-webkit-scrollbar {
    width: 8px;
}

.events-content::-webkit-scrollbar-track,
.calendar-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.events-content::-webkit-scrollbar-thumb,
.calendar-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.events-content::-webkit-scrollbar-thumb:hover,
.calendar-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.date-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
    background-color: var(--surface);
    border-radius: 10px;
    padding: 10px 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
}

.date-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    background-color: var(--background);
    padding: 5px 15px;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: fit-content;
    max-width: 100%;
    flex: 1;
    text-align: center;
}

.date-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    padding: 8px 15px;
    height: 35px;
    border-radius: 7px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    min-width: 85px;
    width: 85px;
}

.date-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#prev-day, #mobile-prev-day {
    background-color: rgba(244, 67, 54, 0.225);
    color: var(--error);
}

#next-day, #mobile-next-day {
    background-color: rgba(76, 175, 80, 0.225);
    color: var(--success);
}

.events-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.event-card {
    background-color: var(--surface);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.25);
}

.event-image {
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.event-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    display: block;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-grow: 1;
}

.event-title {
    background-color: var(--background);
    padding: 0 12px;
    height: 30px;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: fit-content;
    max-width: 100%;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-item {
    background-color: var(--background);
    padding: 0 12px;
    height: 25px;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: fit-content;
    max-width: 100%;
}

.guestlist-container {
    margin-top: auto;
    padding-top: 5px;
    padding-bottom: 5px;
    min-height: 35px;
    display: flex;
    align-items: center;
}

.guestlist-badge {
    background-color: rgba(10, 10, 10, 0.7);
    border-radius: 7px;
    padding: 0;
    display: inline-block;
    width: auto;
}

.guestlist-badge-inner {
    background-color: rgba(76, 175, 80, 0.225);
    height: 30px;
    padding: 0 6px;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--success);
    width: auto;
}

.no-events {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-events i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Mobile-specific styles */
.mobile-events-container {
    display: none;
}

.mobile-calendar-card,
.mobile-date-nav-card {
    background-color: var(--surface);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.mobile-event-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background-color: var(--surface);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
}

.mobile-event-card-image {
    width: 140px;
    height: 140px;
    overflow: hidden;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

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

.mobile-event-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.mobile-event-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .layout-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .calendar-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        height: auto;
        overflow-y: visible;
    }

    .events-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .events-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .layout-container {
        display: none;
    }

    .main-content {
        padding-bottom: 20px;
        padding-top: calc(65px + 20px);
        min-height: auto;
    }

    .page-container {
        padding: 0;
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }

    .mobile-events-container {
        display: block;
        position: relative;
        min-height: calc(100vh - 65px - 40px);
        background-color: rgba(10, 10, 10, 0.5);
        border-radius: 10px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 15px;
        margin: 0 15px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .mobile-events-container::-webkit-scrollbar {
        display: none;
    }

    .mobile-events-container .card {
        background-color: var(--surface);
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
        margin-bottom: 15px;
    }

    .mobile-events-container .card:last-child {
        margin-bottom: 0;
    }

    .mobile-calendar-card,
    .mobile-date-nav-card {
        padding: 10px;
    }

    .mobile-event-card {
        padding: 10px;
    }

    .mobile-event-card-image {
        width: 120px;
        height: 120px;
    }

    .events-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .calendar-days, .calendar-dates {
        gap: 2px;
    }

    .date-cell {
        font-size: 0.8rem;
    }

    .event-title {
        font-size: 1.1rem;
    }

    .date-navigation {
        gap: 5px;
        padding: 8px 10px;
    }

    .date-nav-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
        height: 32px;
        min-width: 75px;
        width: 75px;
    }

    .date-title {
        font-size: 1rem;
        padding: 4px 10px;
    }

    footer {
        position: relative;
        margin-top: 20px;
    }
}
