/* IndyFoodConnect Public Styles - Warm Community Aesthetic */

:root {
    --ifc-earth-brown: #8B4513;
    --ifc-warm-orange: #E67E22;
    --ifc-garden-green: #27AE60;
    --ifc-sky-blue: #3498DB;
    --ifc-rose-pink: #E91E63;
    --ifc-warm-cream: #FFF8E7;
    --ifc-soil-dark: #3E2723;
    --ifc-light-green: #A8D5BA;
    --ifc-shadow: rgba(0, 0, 0, 0.1);
}

/* General Styles */
.ifc-map-container,
.ifc-calendar-container,
.ifc-locations-list,
.ifc-events-list {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    color: var(--ifc-soil-dark);
    line-height: 1.6;
}

/* Map Styles */
.ifc-map-container {
    background: var(--ifc-warm-cream);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--ifc-shadow);
    margin-bottom: 30px;
}

.ifc-map-filters {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.ifc-map-filters label {
    font-weight: 600;
    color: var(--ifc-earth-brown);
}

.ifc-map-filters select {
    padding: 8px 12px;
    border: 2px solid var(--ifc-light-green);
    border-radius: 6px;
    background: white;
    font-size: 14px;
}

#ifc-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--ifc-shadow);
}

.ifc-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #c62828;
}

/* Calendar Styles */
.ifc-calendar-container {
    background: var(--ifc-warm-cream);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--ifc-shadow);
}

.ifc-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.ifc-calendar-filters {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.ifc-calendar-filters label {
    font-weight: 600;
    color: var(--ifc-earth-brown);
}

.ifc-calendar-filters select {
    padding: 8px 12px;
    border: 2px solid var(--ifc-light-green);
    border-radius: 6px;
    background: white;
    font-size: 14px;
}

.ifc-calendar-nav {
    display: flex;
    gap: 10px;
}

.ifc-calendar-nav .button {
    background: var(--ifc-garden-green);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.ifc-calendar-nav .button:hover {
    background: #229954;
}

/* Events List View */
.ifc-events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ifc-event-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px var(--ifc-shadow);
    display: flex;
    gap: 20px;
    border-left: 4px solid var(--ifc-warm-orange);
}

.ifc-event-distribution {
    border-left-color: var(--ifc-warm-orange);
}

.ifc-event-volunteer {
    border-left-color: var(--ifc-garden-green);
}

.ifc-event-meeting {
    border-left-color: var(--ifc-sky-blue);
}

.ifc-event-other {
    border-left-color: var(--ifc-rose-pink);
}

.ifc-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 10px;
    background: var(--ifc-warm-cream);
    border-radius: 8px;
}

.ifc-event-day {
    font-weight: bold;
    font-size: 16px;
    color: var(--ifc-earth-brown);
}

.ifc-event-time {
    font-size: 14px;
    color: #666;
}

.ifc-event-details {
    flex: 1;
}

.ifc-event-title {
    margin: 0 0 10px 0;
    color: var(--ifc-soil-dark);
    font-size: 20px;
}

.ifc-recurring-badge {
    background: var(--ifc-sky-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
    margin-left: 10px;
}

.ifc-event-location {
    color: var(--ifc-earth-brown);
    font-weight: 500;
    margin: 5px 0;
}

.ifc-event-description {
    color: #555;
    margin: 10px 0;
}

.ifc-event-type-label {
    display: inline-block;
    padding: 4px 12px;
    background: var(--ifc-light-green);
    color: var(--ifc-soil-dark);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.ifc-no-events {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

/* Week View */
.ifc-week-view {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.ifc-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.ifc-week-day {
    background: white;
    border: 2px solid var(--ifc-light-green);
    border-radius: 8px;
    padding: 10px;
    min-height: 120px;
}

.ifc-week-day.ifc-today {
    background: var(--ifc-warm-cream);
    border-color: var(--ifc-warm-orange);
}

.ifc-day-header {
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.ifc-day-name {
    font-weight: 600;
    color: var(--ifc-earth-brown);
    font-size: 14px;
}

.ifc-day-num {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: var(--ifc-soil-dark);
}

.ifc-day-events {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ifc-week-event {
    background: var(--ifc-light-green);
    padding: 6px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.3;
}

.ifc-week-event.ifc-event-distribution {
    background: #FFE4CC;
}

.ifc-week-event.ifc-event-volunteer {
    background: #C8E6C9;
}

.ifc-week-event.ifc-event-meeting {
    background: #BBDEFB;
}

.ifc-week-event.ifc-event-other {
    background: #F8BBD0;
}

.ifc-no-events {
    color: #ccc;
    text-align: center;
}

/* Day View */
.ifc-day-view {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.ifc-day-date {
    text-align: center;
    color: var(--ifc-earth-brown);
    margin-bottom: 20px;
    font-size: 24px;
}

.ifc-hours-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #e0e0e0;
}

.ifc-hour-slot {
    display: grid;
    grid-template-columns: 100px 1fr;
    background: white;
}

.ifc-hour-label {
    padding: 15px;
    background: var(--ifc-warm-cream);
    font-weight: 600;
    color: var(--ifc-earth-brown);
    text-align: right;
    border-right: 2px solid #e0e0e0;
}

.ifc-hour-events {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ifc-hour-event {
    background: var(--ifc-light-green);
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid var(--ifc-garden-green);
}

.ifc-hour-event.ifc-event-distribution {
    background: #FFE4CC;
    border-left-color: var(--ifc-warm-orange);
}

.ifc-hour-event.ifc-event-volunteer {
    background: #C8E6C9;
    border-left-color: var(--ifc-garden-green);
}

.ifc-hour-event.ifc-event-meeting {
    background: #BBDEFB;
    border-left-color: var(--ifc-sky-blue);
}

.ifc-hour-event.ifc-event-other {
    background: #F8BBD0;
    border-left-color: var(--ifc-rose-pink);
}

.ifc-no-events-hour {
    color: #ccc;
    font-size: 20px;
}

/* Locations List */
.ifc-locations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ifc-location-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px var(--ifc-shadow);
    border-top: 4px solid var(--ifc-garden-green);
}

.ifc-location-card h3 {
    margin: 0 0 10px 0;
    color: var(--ifc-soil-dark);
    font-size: 20px;
}

.ifc-location-type {
    display: inline-block;
    background: var(--ifc-light-green);
    color: var(--ifc-soil-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.ifc-location-address {
    color: #666;
    margin: 10px 0;
    line-height: 1.5;
}

.ifc-location-phone a {
    color: var(--ifc-sky-blue);
    text-decoration: none;
}

.ifc-location-phone a:hover {
    text-decoration: underline;
}

.ifc-location-hours {
    background: var(--ifc-warm-cream);
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
}

.ifc-location-description {
    color: #555;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ifc-week-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ifc-calendar-header {
        flex-direction: column;
        align-items: stretch;
    }

    .ifc-calendar-filters,
    .ifc-calendar-nav {
        flex-direction: column;
    }

    .ifc-event-item {
        flex-direction: column;
    }

    .ifc-hour-slot {
        grid-template-columns: 80px 1fr;
    }

    .ifc-locations-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ifc-week-grid {
        grid-template-columns: 1fr;
    }
}
