/* ========================================
   CUSTOM OVERRIDES
   Edit this file freely - it won't be
   overwritten when calendar.css updates
   ======================================== */

:root {
    --fc-bg: rgba(20, 20, 20, 0.7);
    --fc-accent: rgba(255,255,255,0.2);
    --fc-accent-two:rgba(255,255,255,0.4);
    --fc-bg-hover: rgba(50, 50, 55, 0.3);
    --fc-invisible: rgba(0, 0, 0, 0.0);
    --fc-dropdown-color: #222;
    --fc-bg-selected: #4a4a4a;
    --fc-text: #C6CED2;
    --fc-text-muted: #636E73;
    --fc-border: #444444;
    --fc-overflow-text: #3C4144;
    --fc-cell-icon-size: 20px;

    --fc-font-first: "Sora";
    --fc-font-second: "Leander";
    --fc-font-third: "Walter Turncoat";
    
     /* Button sizes - adjust these to match PNGs */
    --fc-btn-width: 40px;
    --fc-btn-height: 40px;
    --fc-btn-today-width: 80px;
    --fc-btn-today-height: 40px;

    /* Dropdown sizes */
    --fc-dropdown-year-width: 10em;
    --fc-dropdown-year-height: 2em;
    
    --fc-dropdown-month-width: 13em;
    --fc-dropdown-month-height: 40px;
    
    --fc-dropdown-location-width: 200px;
    --fc-dropdown-location-height: 40px;

    /* Panel sizes */
    --fc-panel-moon-width: 500px;
    --fc-panel-moon-height: 350px;
    
    --fc-panel-weather-width: 350px;
    --fc-panel-weather-height: 200px;
    
    --fc-panel-temp-width: 100px;
    --fc-panel-temp-height: 100px;
    
    --fc-panel-day-label-width: 300px;
    --fc-panel-day-label-height: 100px;
    
    --fc-panel-events-width: 100%;
    --fc-panel-events-min-height: 100px;
    
    
    /* Panel image sizes (for detailed moon/weather images) */
    --fc-panel-moon-img-size: 150px;
    --fc-panel-weather-img-size: 100px;

    /* Temperature colors */
    --fc-temp-high-color: #e07070;
    --fc-temp-low-color: #7070e0;
    --fc-temp-divider-color: #636E73;
}


/* CALENDAR ONLY */


/* Filters for overflow moons and cells */
.fc-day.fc-overflow .fc-cell-moon {
    filter: contrast(50%) brightness(50%) grayscale(100%);
    color: var(--fc-overflow-text);
    opacity: 0.5;
}

.fc-cell-dim {
    background: rgba(0, 0, 0, 0.3);
    z-index: 5;
}

/* Makes bottom padding smaller, moving the moons down */
.fc-cell-bottom {
    min-height: 6px;
}

/* this also makes the cells taller bc why not */
.fc-day-number {
    font-family: var(--fc-font-second), sans-serif;
    font-size: 25px;
    margin-left: 5px;
    margin-bottom: 10px;
}

/* Removes X image for selected day */
.fc-day.fc-selected::after {
    background-image: none;
    background: rgba(255,255,255,0.1);
}

.fc-day::before {
    background-color: rgba(200,200,200,0.15);
    background-image: none;
    outline: 2px solid rgba(0,0,0,0.2);
    outline-offset: -1px;
}

.fc-day.fc-current-month:hover::before {
    opacity: 0.2;
}

.fc-cell-middle {
  align-items: flex-end;
}

.fc-module-calendar .fc-weekday {
    color: var(--fc-text-muted);
    background-color: rgba(50,50,50,0.15);
    background-image: none;
    outline: 2px solid rgba(0,0,0,0.2);
    outline-offset: -1px;
    font-family: var(--fc-font-second);
    font-size: 18px;
}

/* NAVIGATION ONLY */

.fc-btn {
    background-image: none !important;
    font-family: var(--fc-font-third), sans-serif;
    font-size: 20px;
    border: 0px;
}

.fc-btn-today {
    height: var(--fc-btn-today-height);
    background-image: none !important;
}

.fc-btn-today:hover:not(:disabled) {
    background-image: none !important;
}

.fc-module-today .fc-btn {
    font-family: var(--fc-font-first), sans-serif;
    font-size: 16px;
    font-weight: 400;
    border: 0px;
}

.fc-module-nav .fc-select {
    font-family: var(--fc-font-first), sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    background-image: none !important;
    border: 0px;
}

.fc-day.fc-overflow {
    color: var(--fc-overflow-text);
}


/* ========================================
   DROPDOWN STYLING FUCKERY
   ======================================== */
.fc-select option {
    background-color: #404446;
    color: var(--fc-text);
    font-size: 16px;
}

.fc-select option:hover,
.fc-select option:checked {
    background-color:  #8B9295;
}

/* BACKGROUND PNGs REMOVAL */

.fc-select,
.fc-input {
    padding: 0rem;
}
.fc-select:hover,
.fc-input:hover {
}

.fc-input-year {
    width: var(--fc-dropdown-year-width);
    height: var(--fc-dropdown-year-height);
    background-image: none !important;
}

.fc-select-location {
    font-family: var(--fc-font-first), sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    background-image: none !important;
    border: 0px;
}

.fc-select-month {
    font-family: var(--fc-font-first), sans-serif;
    font-size: 16px; 
    text-align: center;
    background-image: none !important;
    border: 0px;
    padding: 0.5rem;
}

.fc-module-year .fc-input-year {
    border: 0px;
    font-family: var(--fc-font-second);
    font-size: 40px;
}


/* ========================================
   DAY LABEL PANEL
   ======================================== */
.fc-module-day-label {
    width: var(--fc-panel-day-label-width);
    min-height: var(--fc-panel-day-label-height);
    background-image: none !important;
    background-color: var(--fc-invisible);
    padding: 0rem;
    font-family: var(--fc-font-first), sans-serif;
    align-self: flex-start;
}

.fc-day-label {
    display: flex;
    flex-direction: column;
}

.fc-day-label-day {
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.fc-day-label-month {
    font-weight: 400;
    color: var(--fc-accent-two);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* ========================================
   MOON PANEL
   ======================================== */

.fc-module-moon-img {
    background-color: var(--fc-invisible);
    background-image: none;
    padding: 0.5rem;
}

.fc-module-moon-img .fc-moon-img {
    width: var(--fc-panel-moon-img-size);
    height: var(--fc-panel-moon-img-size);
}

/* ========================================
   MOON LABEL PANEL
   ======================================== */
.fc-module-moon-label {
    font-family: var(--fc-font-first), sans-serif;
    background-color: var(--fc-invisible);
    background-image: none;
    padding: 0.5rem;
}

.fc-moon-label {
    display: flex;
    flex-direction: column;
}

.fc-moon-name {
    font-weight: 600;
    color: var(--fc-text);
    font-weight: bold;
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.fc-moon-phase {
    font-weight: 300;
    color: var(--fc-accent-two);
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}


/* ========================================
   WEATHER PANEL
   ======================================== */

.fc-module-weather-info {
    background-color: var(--fc-invisible);
    background-image: url('./assets/ui/panel_weather_info.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0.5rem;
}

.fc-weather-type {
    font-weight: bold;
    text-transform: capitalize;
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.fc-weather-wind {
    color: var(--fc-accent);
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.fc-weather-desc {
    color: var(--fc-accent-two);
    font-size: 18px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
.fc-module-weather-img {
    background-color: var(--fc-invisible);
    background-image: none;
}

.fc-module-weather-img .fc-weather-img {
    width: var(--fc-panel-weather-img-size);
    height: var(--fc-panel-weather-img-size);
}


.fc-module-temp {
    background-image: none !important;
    background-color: var(--fc-invisible);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* ========================================
   EVENTS PANEL
   ======================================== */
.fc-module-events {
    width: var(--fc-panel-events-width);
    min-height: var(--fc-panel-events-min-height);
    background-color: var(--fc-invisible);
    background-image: none;
    padding: 0.5rem;
}

.fc-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fc-event {
    padding: 0.75rem;
    background: var(--fc-bg);
    border-left: 3px solid var(--fc-accent);
    text-align: left;
}

.fc-event-title {
    font-size: 18px;
    font-weight: 600;
}

.fc-event-desc {
    color: var(--fc-accent-two);
    margin: 0.25rem 0 0 0;
    font-size: 14px;
}

.fc-no-data {
    color: var(--fc-accent-two);
    font-style: italic;
}

.fc-event-clickable:hover {
    background-color: var(--fc-bg-hover);
}

.fc-event-date {
    font-size: 14px;
    color: var(--fc-accent);
    margin-bottom: 0.25rem;
}

/* ========================================
   iOS/iPadOS SAFARI FIX
   ======================================== */
@supports (-webkit-touch-callout: none) {
    input.fc-input-year {
        width: 160px;
        height: 80px;
        font-size: 40px;
        line-height: 80px;
    }
}
