/**
 * Ocean Beach Calendar - Minimal CSS
 * Performance optimized styles with NO external dependencies
 * NO Google Fonts, NO complex animations, NO performance violations
 */

/* Calendar Container */
#ocean-beach-calendar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
}

/* Year View Grid Layout */
.year-view {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
    padding: 24px;
    justify-content: center;
}

/* Month Containers */
.month-container {
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

/* Month Tables */
.month-container table {
    width: 100% !important;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
}

/* Month Headers */
.month-container .month-title {
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

/* Day Headers */
.month-container .day-header {
    font-size: 11px;
    font-weight: normal;
    text-align: center;
    padding: 5px 2px;
    color: #666;
    background: #f8f9fa;
}

/* Day Cells */
.month-container td {
    text-align: center;
    vertical-align: middle;
    padding: 4px 2px;
    font-size: 12px;
    border: none;
    position: relative;
    cursor: pointer;
    height: 25px;
}

/* Day Numbers */
.month-container .day {
    color: #333;
    font-weight: normal;
}

/* Event Days */
.month-container .day.has-events {
    background: #007cba !important;
    color: white !important;
    border-radius: 3px;
    font-weight: bold;
}

/* Today */
.month-container .day.today {
    background: #ff6b35 !important;
    color: white !important;
    border-radius: 3px;
    font-weight: bold;
}

/* Other Month Days */
.month-container .day.other-month {
    color: #ccc;
}

/* Weekend Days */
.month-container .day.weekend {
    color: #e74c3c;
}

/* Hover Effects */
.month-container .day:hover {
    background: #f0f0f0 !important;
    border-radius: 3px;
}

.month-container .day.has-events:hover {
    background: #005a87 !important;
}

/* Modal Styles */
#ocean-beach-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ocean-beach-modal .modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hide Year Navigation */
.calendar-header,
.calendar-header *,
.year-neighbor,
.year-neighbor2,
.calendar-controls,
button[data-action="previous-year"],
button[data-action="next-year"],
.calendar-year-arrow,
.calendar-year-navigation,
.year-nav,
.year-navigation {
    display: none !important;
    visibility: hidden !important;
}

/* Force 2025 only display */
#ocean-beach-calendar .calendar {
    position: relative;
}

#ocean-beach-calendar .calendar::before {
    content: "2025";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: bold;
    color: #333;
    background: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .year-view {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .year-view {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 12px;
    }
    
    .month-container {
        padding: 12px !important;
    }
}

/* Loading State */
#ocean-beach-calendar:empty::before {
    content: "Loading calendar...";
    display: block;
    text-align: center;
    padding: 50px 20px;
    font-size: 18px;
    color: #666;
}

/* Ensure visibility */
#ocean-beach-calendar,
#ocean-beach-calendar * {
    visibility: visible !important;
}
