/* Club Calendar – Frontend Styles */

/* Container */

.cc-calendar-wrap {
    display: grid;
    grid-template-columns: repeat(2,minmax(200px,1fr));
    gap: 24px;
    /* background: #f4f4f4; */
    /* padding: 24px; */
    border-radius: 8px;
    /* font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; */
    box-sizing: border-box;
	width:100%;
}

/*Left Column: Calendar Grid*/
.cc-calendar-col {
    max-width: 100%;
    background: #f8f8f8;
    border-radius: 0px;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    height: max-content;
}

/* Calendar Header */
.cc-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cc-month-label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #1a1a1a;
    text-transform: uppercase;
}

.cc-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: #008244;
    padding: 4px 10px;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.15s;
}

.cc-nav-btn:hover {
    background: #00824430;
}

.cc-nav-btn:focus {
    outline: 2px solid #008244;
}

/* Weekday Headers */
.cc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 6px;
}

.cc-weekdays span {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.04em;
    padding: 4px 0;
    text-transform: uppercase;
}

/* Days Grid */
.cc-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

/* Day Cell */
.cc-day {
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 2px 2px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
    box-sizing: border-box;
    justify-content: center;
}

.cc-day:hover {
    background: #f0f0f0;
}

.cc-day.cc-day-empty {
    cursor: default;
    background: transparent;
}

.cc-day-number {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

/* Today highlight */
.cc-day.cc-today {
    background: #008244;
}

.cc-day.cc-today .cc-day-number {
    color: #ffffff;
    font-weight: 700;
}

.cc-day.cc-today .cc-dots .cc-dot {
    filter: brightness(1.4);
}

/* Selected day */
.cc-day.cc-selected:not(.cc-today) {
    background: #00824430;
}

.cc-day.cc-selected:not(.cc-today) .cc-day-number {
    color: #008244;
    font-weight: 700;
}

/* Event dots */
.cc-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
    margin-top: 2px;
}

.cc-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Outside month days */
.cc-day.cc-day-other-month .cc-day-number {
    color: #ccc;
}

/* Right Column: Event List */
.cc-events-col {
    max-width: 100%;
	width:100%;
    background: #f8f8f8;
    border-radius: 0px;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.cc-events-header {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.cc-events-list {
    overflow-y: auto;
    max-height: 500px;
    flex: 1;
    padding-right: 4px;
}

.cc-events-list::-webkit-scrollbar {
    width: 4px;
}

.cc-events-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 2px;
}

.cc-events-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

/* Event Card */
.cc-event-card {
    border-bottom: 1px solid #f0f0f0;
    padding: 12px;
    transition: background 0.1s;
}
.cc-event-card:last-child {
    border-bottom: none;
}

.cc-event-card.cc-event-highlighted {
    background: #00824430;
    border-radius: 4px;
}

.cc-event-card-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cc-event-info {
    flex: 1;
    min-width: 0;
}

.cc-event-date {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 2px;
}

.cc-event-time {
    font-size: 0.78rem;
    color: #aaa;
    margin-bottom: 4px;
}

.cc-allday {
    font-style: italic;
}

.cc-event-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-event-venue {
    font-size: 0.78rem;
    color: #999;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-event-dot-wrap {
    flex-shrink: 0;
    padding-top: 4px;
}

.cc-event-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cc-no-events {
    color: #999;
    font-size: 0.85rem;
    padding: 16px 0;
}

/* Category label in event list */
.cc-event-category {
    font-size: 0.72rem;
    color: #aaa;
    margin-top: 2px;
    letter-spacing: 0.01em;
}

/* Color legend */
.cc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e8e8e8;
}

.cc-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: #666;
}

.cc-legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Linked event title */

.cc-event-link {
    color: inherit;
    text-decoration: none;
}

.cc-event-link:hover {
    text-decoration: underline;
}

/* Yearly repeat icon (↻) */
.cc-repeat-icon {
    font-size: 0.75rem;
    color: #bbb;
    margin-left: 5px;
    cursor: default;
    vertical-align: middle;
}
/* Loading state */
.cc-calendar-col.cc-loading,
.cc-events-col.cc-loading {
    opacity: 0.5;
    pointer-events: none;
}
/* Responsive */
@media (max-width: 767px) {
    .cc-calendar-wrap {
		grid-template-columns: repeat(1,minmax(200px,1fr));
	}
    .cc-calendar-col,
    .cc-events-col {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
    .cc-events-list {
        max-height: 400px;
    }
}