/* Resources page styles — base.css loaded by layout */

body {
    padding-top: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 4rem;
}

header h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.note {
    background: var(--color-primary);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    font-style: italic;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.calendar-section {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-header h2 {
    font-family: var(--font-serif);
    color: var(--color-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day-label {
    text-align: center;
    font-weight: 700;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    padding-bottom: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    background: #f8fafc;
    border-radius: var(--radius);
    padding: 10px;
    position: relative;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.calendar-day.today {
    border-color: var(--color-primary);
    background: #f0ebff;
}

.calendar-day.event {
    background: #fff8f0;
    border-color: var(--color-secondary);
    cursor: pointer;
    transition: transform 0.2s;
}

.calendar-day.event:hover {
    transform: scale(1.05);
    z-index: 2;
}

.calendar-day a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.event-label {
    font-size: 0.65rem;
    color: var(--color-secondary);
    font-weight: 700;
    margin-top: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.event-dot {
    width: 4px;
    height: 4px;
    background: var(--color-secondary);
    border-radius: 50%;
    margin: 2px auto 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--color-secondary);
}

.resource-card h3 {
    font-family: var(--font-serif);
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.resource-card .time {
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.resource-card .location {
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }

    .calendar-day {
        padding: 5px;
        font-size: 0.8rem;
    }
}

.header-logo {
    max-width: 150px;
    margin-bottom: 2rem;
}

.calendar-legend {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    background: var(--color-secondary);
    border-radius: 50%;
}

.resources-title {
    font-family: var(--font-serif);
    color: var(--color-primary);
    margin-bottom: 2rem;
}