/* public/assets/fe/css/july-calendar.css */

/* --- Desktop styles are now considered final and are unchanged --- */
.july-calendar-wrapper {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}
.july-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    width: 100%;
}
.calendar-day:nth-child(29) { grid-column: 3; }
.calendar-day:nth-child(30) { grid-column: 4; }
.calendar-day:nth-child(31) { grid-column: 5; }

.calendar-day {
    position: relative;
    aspect-ratio: 1 / 1;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.calendar-day.day-locked { cursor: default; }
.calendar-day.day-published { cursor: pointer; }
.calendar-day.day-published:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.day-number {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--h1-font);
    color: rgba(255, 255, 255, 0.8);
    z-index: 1;
    transition: opacity 0.3s ease;
}
.calendar-day.day-published.active .day-number { opacity: 0; }
.coming-soon-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--h1-font);
    color: rgba(255, 255, 255, 0.15);
    z-index: 0;
}
.published-indicator {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.7;
    z-index: 1;
    transition: opacity 0.3s ease;
}
.calendar-day.day-published.active .published-indicator { opacity: 0; }

.update-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color-hover) 15%, var(--primary-color-hover) 65%);
    padding: 15px;
    color: #f5f5f5;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
}
.calendar-day.day-published.active .update-details {
    opacity: 1;
    transform: scale(1);
}
.update-title {
    font-size: 1.0rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.update-description {
    font-size: 0.75rem;
    line-height: 1.35;
}


/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .july-calendar-grid {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .july-calendar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    .calendar-day:nth-child(29),
    .calendar-day:nth-child(30),
    .calendar-day:nth-child(31) {
        grid-column: auto;
    }
    .day-number {
        font-size: 2rem;
        top: 8px;
        left: 12px;
    }
    .coming-soon-indicator {
        font-size: 2.5rem;
    }
    .published-indicator {
        font-size: 1.2rem;
        bottom: 8px;
        right: 10px;
    }
    .update-details {
        padding: 10px;
    }
    /* --- MOBILE TEXT SIZES --- */
    .update-title {
        font-size: 0.9rem; /* UPDATED - Was 0.95rem */
    }
    .update-description {
        font-size: 0.7rem; /* UPDATED - Was 0.75rem */
    }
}

@media (max-width: 480px) {
    .july-calendar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .day-number {
        font-size: 1.6rem;
        top: 5px;
        left: 8px;
    }
    .coming-soon-indicator {
        font-size: 2rem;
    }
    .update-details {
        padding: 8px; /* UPDATED - Reduced padding to give text more room */
    }
    /* --- SMALL MOBILE TEXT SIZES --- */
    .update-title {
        font-size: 0.8rem; /* UPDATED - Was 0.9rem */
    }
    .update-description {
        font-size: 0.65rem; /* UPDATED - Was 0.7rem */
        line-height: 1.3;
    }
}
