/**
 * DQA Schedule Year View
 * 12-month overview grid layout
 */

/* ========================================= */
/* Year View Container */
/* ========================================= */
.dqa-year-view {
    width: 100%;
}

/* ========================================= */
/* Year Grid (12 months) */
/* ========================================= */
.dqa-year-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* ========================================= */
/* Month Card */
/* ========================================= */
.dqa-year-month {
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.dqa-year-month:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Month header */
.dqa-year-month-header {
    background-color: var(--colorMoradoOscuro, rgba(168,162,208,1));
    color: #fff;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Month mini calendar */
.dqa-year-month-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    padding: 0.5rem;
}

/* Day headers (S M T W T F S) */
.dqa-year-day-header {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    padding: 0.3rem;
}

/* Day cells */
.dqa-year-day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #1f2937;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    position: relative;
}

.dqa-year-day-cell:hover {
    background-color: #f3f4f6;
}

/* Days from other months */
.dqa-year-day-cell.other-month {
    color: #d1d5db;
}

/* Today */
.dqa-year-day-cell.today {
    background-color: var(--colorVerde, rgba(211,216,152,1));
    color: #fff;
    font-weight: 700;
}

/* Days with events */
.dqa-year-day-cell.has-events::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--colorMoradoOscuro, rgba(168,162,208,1));
}

.dqa-year-day-cell.today.has-events::after {
    background-color: #fff;
}

/* ========================================= */
/* Empty State */
/* ========================================= */
.dqa-year-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

.dqa-year-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.dqa-year-empty-text {
    font-size: 1.6rem;
    font-weight: 500;
}

/* ========================================= */
/* Responsive */
/* ========================================= */
@media screen and (max-width: 1200px) {
    .dqa-year-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media screen and (max-width: 900px) {
    .dqa-year-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media screen and (max-width: 600px) {
    .dqa-year-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dqa-year-month-header {
        font-size: 1.2rem;
        padding: 0.6rem 0.8rem;
    }

    .dqa-year-day-header {
        font-size: 0.9rem;
        padding: 0.2rem;
    }

    .dqa-year-day-cell {
        font-size: 1rem;
    }
}
