
/* Environment: staging - Generated styles */

.debug-info {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
    z-index: 9999;
}
/**
 * Base CSS styles for calendar widgets in the Auburn Event Calendar.
 * This file provides the foundation styles that are shared between
 * monthly and weekly calendar widgets.
 */

/* Calendar Widget Container */
.calendar-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    position: relative;
}

/* Calendar Header */
.calendar-header {
    background: #4b6cb7;
    color: #fff;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.calendar-navigation button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.calendar-navigation button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.calendar-navigation button:active {
    background: rgba(255, 255, 255, 0.4);
}

.calendar-navigation button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-prev,
.nav-next {
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
    text-align: center;
    min-width: 0;
}

.nav-today {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

/* Calendar Content */
.calendar-content {
    position: relative;
    min-height: 400px;
}

.calendar-grid {
    transition: opacity 0.2s ease;
}

/* Loading State */
.calendar-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    z-index: 10;
}

.calendar-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #4b6cb7;
    border-radius: 50%;
    animation: calendar-spin 1s linear infinite;
    margin-left: 0.5rem;
    vertical-align: middle;
}

@keyframes calendar-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.calendar-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #d32f2f;
    z-index: 10;
}

.calendar-error p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.calendar-error .retry-button {
    background: #4b6cb7;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

.calendar-error .retry-button:hover {
    background: #3a5a9e;
}

/* Calendar Events */
.calendar-event {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin: 0.125rem 0;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1.2;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.calendar-event:hover {
    background: #bbdefb;
    border-color: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-event:focus {
    outline: 2px solid #4b6cb7;
    outline-offset: 1px;
}

.calendar-event:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Event Content */
.event-title {
    font-weight: 500;
    color: #1565c0;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-time {
    font-size: 0.7rem;
    color: #666;
    margin-top: 0.125rem;
}

.event-location {
    font-size: 0.7rem;
    color: #888;
    margin-top: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Event Categories */
.calendar-event--community {
    background: #e8f5e8;
    border-color: #4caf50;
}

.calendar-event--community .event-title {
    color: #2e7d32;
}

.calendar-event--community:hover {
    background: #c8e6c9;
    border-color: #388e3c;
}

.calendar-event--arts-culture {
    background: #f3e5f5;
    border-color: #9c27b0;
}

.calendar-event--arts-culture .event-title {
    color: #7b1fa2;
}

.calendar-event--arts-culture:hover {
    background: #e1bee7;
    border-color: #8e24aa;
}

.calendar-event--sports-recreation {
    background: #fff3e0;
    border-color: #ff9800;
}

.calendar-event--sports-recreation .event-title {
    color: #f57c00;
}

.calendar-event--sports-recreation:hover {
    background: #ffe0b2;
    border-color: #fb8c00;
}

.calendar-event--food-drink {
    background: #fce4ec;
    border-color: #e91e63;
}

.calendar-event--food-drink .event-title {
    color: #c2185b;
}

.calendar-event--food-drink:hover {
    background: #f8bbd9;
    border-color: #d81b60;
}

.calendar-event--business-networking {
    background: #e0f2f1;
    border-color: #009688;
}

.calendar-event--business-networking .event-title {
    color: #00695c;
}

.calendar-event--business-networking:hover {
    background: #b2dfdb;
    border-color: #00796b;
}

.calendar-event--education {
    background: #fff8e1;
    border-color: #ffc107;
}

.calendar-event--education .event-title {
    color: #f9a825;
}

.calendar-event--education:hover {
    background: #ffecb3;
    border-color: #ffb300;
}

/* Event States */
.calendar-event--past {
    opacity: 0.6;
    background: #f5f5f5;
    border-color: #bdbdbd;
}

.calendar-event--past .event-title {
    color: #757575;
}

.calendar-event--all-day {
    border-left: 4px solid #4b6cb7;
    padding-left: 0.375rem;
}

/* Display Type Variations */
.calendar-event--monthly {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
}

.calendar-event--weekly {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    min-height: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calendar-event--list {
    font-size: 0.9rem;
    padding: 0.5rem;
    margin: 0.25rem 0;
    border-radius: 6px;
}

/* Day Cells */
.calendar-day {
    position: relative;
    min-height: 80px;
    border: 1px solid #e0e0e0;
    padding: 0.5rem;
    background: #fff;
    transition: background-color 0.2s ease;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day--today {
    background: #fff3e0;
    border-color: #ff9800;
}

.calendar-day--other-month {
    background: #fafafa;
    color: #bdbdbd;
}

.calendar-day--past {
    background: #f5f5f5;
    color: #9e9e9e;
}

.calendar-day--weekend {
    background: #fafafa;
}

.calendar-day-number {
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.calendar-day--today .calendar-day-number {
    color: #f57c00;
    font-weight: 600;
}

.calendar-day--other-month .calendar-day-number {
    color: #bdbdbd;
}

.calendar-day-events {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

/* More Events Indicator */
.calendar-more-events {
    font-size: 0.7rem;
    color: #666;
    text-align: center;
    padding: 0.125rem;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.calendar-more-events:hover {
    background: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-widget {
        border-radius: 0;
        box-shadow: none;
    }
    
    .calendar-header {
        padding: 0.75rem;
    }
    
    .calendar-navigation {
        gap: 0.5rem;
    }
    
    .nav-title {
        font-size: 1rem;
    }
    
    .nav-prev,
    .nav-next {
        min-width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .nav-today {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 0.25rem;
    }
    
    .calendar-event {
        font-size: 0.7rem;
        padding: 0.2rem 0.3rem;
    }
    
    .calendar-event--monthly {
        font-size: 0.65rem;
        padding: 0.15rem 0.25rem;
    }
}

@media (max-width: 480px) {
    .calendar-header {
        padding: 0.5rem;
    }
    
    .nav-title {
        font-size: 0.9rem;
    }
    
    .calendar-day {
        min-height: 50px;
        padding: 0.2rem;
    }
    
    .calendar-day-number {
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
    }
    
    .calendar-event {
        font-size: 0.65rem;
        padding: 0.15rem 0.25rem;
        margin: 0.1rem 0;
    }
    
    .event-time,
    .event-location {
        font-size: 0.6rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .calendar-widget {
        border: 2px solid #000;
    }
    
    .calendar-event {
        border-width: 2px;
        font-weight: 600;
    }
    
    .calendar-day {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .calendar-event,
    .calendar-day,
    .calendar-navigation button,
    .calendar-grid {
        transition: none;
    }
    
    .calendar-loading::after {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .calendar-widget {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .calendar-header {
        background: #fff;
        color: #000;
        border-bottom: 2px solid #000;
    }
    
    .calendar-navigation button {
        display: none;
    }
    
    .calendar-event {
        background: #fff;
        border: 1px solid #000;
        color: #000;
    }
    
    .calendar-loading,
    .calendar-error {
        display: none;
    }
}

/* Focus Management */
.calendar-widget:focus-within {
    outline: 2px solid #4b6cb7;
    outline-offset: 2px;
}

/* Accessibility Improvements */
.calendar-event[aria-pressed="true"] {
    background: #1976d2;
    color: #fff;
}

.calendar-event[aria-pressed="true"] .event-title {
    color: #fff;
}

.calendar-day[aria-selected="true"] {
    background: #e3f2fd;
    border-color: #2196f3;
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Calendar Widget Variants */
.calendar-widget--compact {
    font-size: 0.85rem;
}

.calendar-widget--compact .calendar-day {
    min-height: 60px;
    padding: 0.25rem;
}

.calendar-widget--compact .calendar-event {
    font-size: 0.7rem;
    padding: 0.15rem 0.3rem;
}

.calendar-widget--large {
    font-size: 1.1rem;
}

.calendar-widget--large .calendar-day {
    min-height: 120px;
    padding: 0.75rem;
}

.calendar-widget--large .calendar-event {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
}