﻿/* farmers-market/farmers-market.css */

.page-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.page-header h1 {
    font-weight: 300;
    font-size: 3rem;
    color: var(--accent-color-darker, #4a7c4a);
}

.market-info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    text-align: center;
    margin-bottom: 3rem;
}
.info-card {
    flex: 1;
    min-width: 250px;
    padding: 1.5rem;
    background-color: color-mix(in srgb, var(--accent-color, #609966) 8%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--accent-color, #609966) 30%, #ffffff);
    border-radius: 8px;
}
.info-card i {
    font-size: 2rem;
    color: var(--accent-color, #609966);
    margin-bottom: 0.75rem;
}
.info-card h5 {
    font-weight: 600;
    color: var(--accent-color-darker, #4a7c4a);
}
.info-card p {
    margin-bottom: 0;
    color: #333;
}


/* Calendar Styles */
#market-calendar {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.calendar-header .section-title {
    margin: 0;
    font-size: 1.75rem;
}
.calendar-grid-header, .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}
.calendar-grid-header div {
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    padding-bottom: 0.5rem;
}

.calendar-day {
    min-height: 120px;
    padding: 8px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.2s ease;
    font-size: 0.9rem;
}
.calendar-day:hover {
    border-color: var(--accent-color, #609966);
}

.day-number {
    font-weight: 500;
}
.other-month .day-number {
    color: #ced4da; /* Gray out days from other months */
}

/* --- Replace with this new style --- */
.today .day-number {
    background-color: var(--accent-color, #609966); /* Circle's fill color */
    color: white;                   /* Number color inside the circle */
    font-weight: 700;
    height: 30px;                   /* Defines height of the circle */
    width: 30px;                    /* Defines width of the circle */
    line-height: 30px;              /* Vertically centers the number in the circle */
    text-align: center;             /* Horizontally centers the number */
    border-radius: 50%;             /* This makes the square a circle */
    display: inline-block;          /* Allows the width/height to be applied */
    margin: 0 auto;                 /* Helps center the circle in the cell */
}

.calendar-event {
    margin-top: 5px;
    padding: 3px 6px;
    font-size: 0.8rem;
    background-color: var(--accent-color, #609966);
    color: white;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.event-music {
    background-color: #17a2b8; /* Example: Different color for different event types */
}
.event-demo {
    background-color: #ffc107;
    color: #212529;
}

@media (max-width: 768px) {
    .calendar-event {
        font-size: 0.7rem;
    }
    .calendar-day {
        min-height: 90px;
        padding: 4px;
    }
}