* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    
    min-height: 100vh;
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    padding: 40px 20px;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    justify-items: center;
}

.calendar {
    --side-padding: 20px;
    --border-radius: 34px;
    --accent-br: 15px;
    width: 100%;
    max-width: 400px;
}

.calendar__header {
    background-color: #fff;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    padding: 5px var(--side-padding);
    text-align: center;
}

.calendar__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

.calendar__body {
    background-image: linear-gradient(to bottom, #f3f4f6, #fff);
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.calendar__days {
    background-color: #fff;
    padding: 5px var(--side-padding) 10px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar__days > div {
    text-align: center;
    font-weight: 700;
    font-size: 1.02rem;
    color: #c5c8ca;
}

.calendar__dates {
    padding: 10px var(--side-padding) 20px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar__date {
    --height: 50px;
    text-align: center;
    height: var(--height);
    line-height: var(--height);
    font-weight: 600;
    font-size: 1.02rem;
    cursor: pointer;
    position: relative;
}

.calendar__date::before {
    content: "";
    position: absolute;
    background-color: rgba(255, 255, 255, 0);
    width: 100%;
    height: calc(var(--height) * 0.9);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: var(--accent-br);
    transition: background-color 0.3s ease;
}

.calendar__date:not(.calendar__date--grey):hover::before {
    background-color: #ededed;
}

.calendar__date--grey {
    color: #c5c8ca;
    cursor: default;
}

.calendar__date--holiday {
    background-color: #ffcccb;
    color: #d32f2f;
    font-weight: 700;
}

.calendar__date--holiday::before {
    background-color: #ffcccb;
}

.calendar__date--holiday:hover::before {
    background-color: #ffb3b3;
}

.calendar__date span {
    position: relative;
    z-index: 1;
}

.calendar__holidays {
    background-color: #fff;
    padding: 10px var(--side-padding);
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    min-height: 80px; /* Fixed height for consistent spacing */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.calendar__holidays p {
    font-size: 0.9rem;
    color: #333;
    margin: 5px 0;
}

.calendar__holidays:empty::after {
    content: "Bu ay tatil yok.";
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
}
