
/* =========================
   CALENDAR PAGE
========================= */

.calendar-add-button,
.save-event-button {
    border: none;
    border-radius: 9px;
    background: var(--black);
    color: white;
    padding: 11px 17px;
    font-size: 12px;
    font-weight: bold;
}

.calendar-add-button:hover,
.save-event-button:hover {
    opacity: 0.82;
}

.calendar-page {
    max-width: 1450px;
    margin: 0 auto;
    padding: 34px;
}


/* INTRODUCTION */

.calendar-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 28px;
}

.calendar-kicker {
    color: #88827d;
    font-size: 9px;
    letter-spacing: 1.7px;
    font-weight: bold;
    margin-bottom: 10px;
}

.calendar-intro h2 {
    font-family: Georgia, serif;
    font-weight: normal;
    font-size: 31px;
    margin-bottom: 9px;
}

.calendar-intro > div:first-child > p:last-child {
    color: #88827d;
    font-size: 12px;
    line-height: 1.6;
}

.calendar-summary {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 17px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 155px;
}

.summary-dot {
    width: 9px;
    height: 9px;
    background: var(--lime);
    border-radius: 50%;
}

.calendar-summary strong,
.calendar-summary span {
    display: block;
}

.calendar-summary strong {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: normal;
}

.calendar-summary div span {
    color: #88827d;
    font-size: 10px;
    margin-top: 2px;
}


/* CALENDAR LAYOUT */

.calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(270px, .85fr);
    gap: 18px;
    align-items: start;
}

.calendar-panel,
.schedule-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.calendar-panel {
    padding: 23px;
}


/* MONTH NAVIGATION */

.month-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.month-toolbar h3,
.schedule-heading h3 {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: normal;
}

.month-toolbar p {
    color: #96908a;
    font-size: 10px;
    margin-top: 5px;
}

.month-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.month-arrow,
.today-button {
    height: 32px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 8px;
    color: var(--black);
}

.month-arrow {
    width: 33px;
    font-size: 22px;
}

.today-button {
    padding: 0 12px;
    font-size: 10px;
}

.month-arrow:hover,
.today-button:hover {
    background: #f3f2f0;
}


/* CALENDAR GRID */

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday {
    text-align: center;
    color: #aaa39d;
    font-size: 9px;
    letter-spacing: 1px;
    padding: 10px 0 13px;
    border-bottom: 1px solid #efedeb;
}

.day-cell {
    min-width: 0;
    min-height: 83px;
    border: none;
    border-right: 1px solid #f1efed;
    border-bottom: 1px solid #f1efed;
    background: white;
    padding: 10px 7px;
    text-align: left;
    color: var(--black);
}

.day-cell:nth-child(7n) {
    border-right: none;
}

.day-cell:hover {
    background: #f8f7f5;
}

.day-cell.outside-month {
    color: #c4bfba;
    background: #fcfbfa;
}

.day-cell.selected {
    background: #f0fbfd;
    box-shadow: inset 0 0 0 1px var(--lime);
}

.day-cell.today .day-number {
    background: var(--black);
    color: white;
}

.day-number {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
}

.day-markers {
    display: flex;
    gap: 4px;
    margin: 8px 0 0 4px;
}

.day-marker {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.day-marker.shoot,
.legend-dot.shoot {
    background: #35c9e6;
}

.day-marker.personal,
.legend-dot.personal {
    background: #b5a0df;
}

.day-marker.meetup,
.legend-dot.meetup {
    background: #e6a65d;
}


/* LEGEND */

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    padding-top: 17px;
    color: #8d8781;
    font-size: 10px;
}

.calendar-legend span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.legend-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
}


/* SCHEDULE SIDEBAR */

.schedule-panel {
    padding: 22px;
}

.schedule-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.schedule-heading .calendar-kicker {
    margin-bottom: 7px;
}

.schedule-heading h3 {
    font-size: 19px;
}

.schedule-count {
    min-width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #f1f0ee;
    font-size: 10px;
}

.event-list,
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-item {
    display: flex;
    gap: 11px;
    padding: 12px;
    border: 1px solid #efedeb;
    border-radius: 10px;
}

.event-time {
    min-width: 48px;
    color: #77716b;
    font-size: 10px;
    padding-top: 2px;
}

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

.event-details strong {
    display: block;
    font-size: 11px;
    margin-bottom: 5px;
    overflow-wrap: anywhere;
}

.event-details p {
    color: #96908a;
    font-size: 10px;
    line-height: 1.5;
}

.event-type {
    display: inline-block;
    margin-top: 7px;
    padding: 4px 7px;
    border-radius: 5px;
    background: #eafaff;
    color: #25869a;
    font-size: 8px;
    font-weight: bold;
    text-transform: uppercase;
}

.event-type.personal {
    background: #f3effa;
    color: #8069a9;
}

.event-type.meetup {
    background: #fff4e8;
    color: #a56d2d;
}

.empty-state {
    padding: 19px 12px;
    text-align: center;
    color: #96908a;
    font-size: 11px;
    line-height: 1.6;
    background: #faf9f7;
    border-radius: 9px;
}


/* UPCOMING EVENTS */

.schedule-divider {
    height: 1px;
    background: #efedeb;
    margin: 21px 0 17px;
}

.upcoming-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.upcoming-heading h4 {
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: normal;
}

.upcoming-heading span {
    color: #96908a;
    font-size: 9px;
}

.upcoming-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #f1efed;
    cursor: pointer;
}

.upcoming-date {
    width: 39px;
    min-width: 39px;
    height: 42px;
    border-radius: 8px;
    background: #f5f4f2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upcoming-date strong {
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: normal;
}

.upcoming-date span {
    color: #8f8983;
    font-size: 8px;
    text-transform: uppercase;
}

.upcoming-item strong {
    display: block;
    font-size: 10px;
    margin-bottom: 4px;
}

.upcoming-item p {
    color: #96908a;
    font-size: 9px;
}

.calendar-footnote {
    color: #99938d;
    font-size: 10px;
    line-height: 1.6;
    margin: 15px 2px 0;
}


/* CREATE EVENT POPUP */

.event-dialog {
    width: min(480px, calc(100% - 28px));
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 0;
    margin: auto;
    box-shadow: 0 20px 70px #10102030;
}

.event-dialog::backdrop {
    background: #10102066;
    backdrop-filter: blur(2px);
}

.event-dialog form {
    padding: 25px;
}

.dialog-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 22px;
}

.dialog-heading h2 {
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: normal;
}

.dialog-close {
    border: none;
    background: transparent;
    font-size: 25px;
    color: #777;
}

.event-dialog label {
    display: block;
    font-size: 10px;
    font-weight: bold;
    margin: 13px 0 7px;
}

.event-dialog input,
.event-dialog select,
.event-dialog textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px;
    font: inherit;
    font-size: 11px;
    background: white;
    color: var(--black);
}

.event-dialog textarea {
    resize: vertical;
}

.form-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 21px;
}

.cancel-button {
    border: 1px solid var(--border);
    background: white;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 11px;
}


/* RESPONSIVE DESIGN */

@media (max-width: 1000px) {

    .calendar-layout {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 700px) {

    .calendar-page {
        padding: 23px 14px;
    }

    .calendar-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .calendar-intro h2 {
        font-size: 26px;
    }

    .calendar-panel {
        padding: 14px 10px;
    }

    .month-toolbar {
        align-items: flex-start;
    }

    .month-toolbar h3 {
        font-size: 19px;
    }

    .day-cell {
        min-height: 58px;
        padding: 6px 3px;
    }

    .day-number {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .day-markers {
        margin: 5px 0 0 2px;
        gap: 3px;
    }

    .day-marker {
        width: 5px;
        height: 5px;
    }

    .weekday {
        font-size: 8px;
    }

    .calendar-legend {
        gap: 10px;
        font-size: 9px;
    }

    .schedule-panel {
        padding: 16px;
    }

    .calendar-add-button {
        padding: 9px 11px;
        font-size: 10px;
    }

    .form-two-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

}
