/* sketchcal/sketchcal.css version 3.7.0 */

:root {
    --gsgt-date-col-width: 120px;
    --gsgt-desc-col-flex: 2;
    --gsgt-prompt-col-flex: 2; 
    /* Grid Calendar Variables */
    --gsgt-grid-border: #ccc;
    --gsgt-grid-today-bg: #282828;
    --gsgt-grid-today-text: #f39c12;
    /* NEW: Border color for the last 7 days */
    --gsgt-recent-border-color: #f39c12; 
}
/* ... existing styles ... */

.gsg-sketchcal-grid td.clickable-day {
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Style for the 7-day window */
.gsg-sketchcal-grid td.recent-window {
    border: 2px solid var(--gsgt-recent-border-color);
}

/* Visual cue for disabled/old days */
.gsg-sketchcal-grid td:not(.recent-window):not(.future-day):not(.empty) {
    cursor: default;
    opacity: 0.6;
    background-color: #eee;
}

.gsg-sketchcal-grid td.future-day {
    font-style: italic;
    color: #999;
}
/* --- Existing Styles --- */
.sketchcal-event {
    border: 1px solid #ccc;
    padding: 1rem;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #f7f7f7;
    font-family: sans-serif;
}

.sketchcal-date-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--gsgt-grid-today-text);
    background-color: var(--gsgt-grid-today-bg);
    padding: 15px;
    min-width: var(--gsgt-date-col-width, 120px);
}

.sketchcal-date-column > span:first-of-type,
.sketchcal-date-column > span:last-of-type {
    margin-bottom: .5rem;
    margin-top: .5rem;
    font-size: 0.8em;
    text-transform: uppercase;
}

.sketchcal-date-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sketchcal-date-month {
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1;
}

.sketchcal-date-day {
    font-size: 3em;
    font-weight: bold;
    line-height: 1;
}

.sketchcal-event-banner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    gap: 0;
}

.sketchcal-event-banner .sketchcal-date-column {
    border-right: 1px solid #ccc;
}

.sketchcal-event-banner .sketchcal-content-wrapper {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    gap: 0;
}

.sketchcal-event-banner .sketchcal-description-column {
    flex-grow: var(--gsgt-desc-col-flex, 2);
    font-size: 1em;
    padding: 20px;
    border-right: 1px solid #ccc;
}

.sketchcal-event-banner .sketchcal-weeklydescription-column {
    flex-grow: var(--gsgt-desc-col-flex, 2);
    font-size: 1em;
    padding: 20px;
    border-left: 1px solid #ccc;
}

.sketchcal-event-banner .sketchcal-weeklydescription-column h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.4;
}

.sketchcal-event-banner .sketchcal-prompt-column {
    flex-grow: var(--gsgt-prompt-col-flex, 2);
    font-style: italic;
    font-size: 0.9em;
    padding: 10px;
    min-width: 320px;
}

.sketchcal-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    height: 100%;
}

.sketchcal-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Grid Calendar Styles --- */
.gsg-sketchcal-grid-container {
    margin-bottom: 20px;
    font-family: sans-serif;
}

.gsg-sketchcal-grid {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.gsg-sketchcal-grid th,
.gsg-sketchcal-grid td {
    border: 1px solid var(--gsgt-grid-border);
    padding: 10px;
    text-align: center;
    vertical-align: top;
    height: 80px; 
}

.gsg-sketchcal-grid th {
    background-color: #f0f0f0;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8em;
    height: auto;
}

.gsg-sketchcal-grid td.today-highlight {
    background-color: var(--gsgt-grid-today-bg);
    font-weight: bold;
    outline: 2px solid #f39c12;
}

.gsg-sketchcal-grid .day-number {
    display: block;
    font-size: 1.1em;
}

.gsg-sketchcal-grid td.empty {
    background-color: #fafafa;
}

.gsg-sketchcal-grid td.clickable-day {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.gsg-sketchcal-grid td.clickable-day:hover {
    background-color: #e9f2f7;
}

.gsg-sketchcal-grid td.today-highlight:hover {
    background-color: #b8d4e2;
}

/* --- Modal Styles --- */
.gsg-modal {
    display: none; 
    position: fixed; 
    z-index: 99999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
}

.gsg-modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 30px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 4px;
}

.gsg-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.gsg-close:hover,
.gsg-close:focus {
    color: black;
    text-decoration: none;
}

#gsg-modal-body h2 {
    margin-top: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 850px) {
    .sketchcal-event-banner {
        flex-direction: column;
    }

    .sketchcal-event-banner .sketchcal-date-column {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid #ccc;
    }

    .sketchcal-event-banner .sketchcal-content-wrapper {
        flex-direction: column;
    }

    .sketchcal-event-banner .sketchcal-description-column,
    .sketchcal-event-banner .sketchcal-weeklydescription-column,
    .sketchcal-event-banner .sketchcal-prompt-column {
        width: 100%;
        border-right: none;
        border-left: none;
        border-bottom: 1px solid #eee;
        min-width: 0;
    }

    .gsg-sketchcal-grid td {
        height: 60px;
        padding: 5px;
    }
}