
/* Environment: dev - Generated styles */

.debug-info {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
    z-index: 9999;
}
/* Events page specific styles */

.active {
    font-weight: bold;
    text-decoration: underline;
}

.events-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-container {
    display: flex;
    gap: 0.5rem;
}

#search-events {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
}

#search-button {
    padding: 0.5rem 1rem;
    background-color: #4b6cb7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#search-button:hover {
    background-color: #3a5a9f;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#date-filter {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.event-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0;
    transition: transform 0.3s ease;
    overflow: hidden;
    position: relative;
    border-left: 4px solid #4b6cb7;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-card.event-ongoing {
    border-left-color: #28a745;
    animation: pulse 2s infinite;
}

.event-card.event-upcoming {
    border-left-color: #4b6cb7;
}

@keyframes pulse {
    0% { border-left-color: #28a745; }
    50% { border-left-color: #20c997; }
    100% { border-left-color: #28a745; }
}

.event-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
}

.event-ongoing .event-status {
    background-color: rgba(40, 167, 69, 0.9);
}

.event-upcoming .event-status {
    background-color: rgba(75, 108, 183, 0.9);
}

/* Multi-day event styles */
.multi-day-flag {
    position: absolute;
    top: 40px;
    right: 10px;
    background-color: rgba(255, 193, 7, 0.9);
    color: #212529;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.event-multi-day {
    border-left-color: #ffc107;
}

.multi-day-date {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.multi-day-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.multi-day-badge {
    background: #ffc107;
    color: #212529;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.date-range, .time-summary {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.multi-day-details {
    margin-top: 0.5rem;
    font-style: italic;
    color: #856404;
}

/* Recurring event styles */
.recurring-flag {
    position: absolute;
    top: 70px;
    right: 10px;
    background-color: rgba(23, 162, 184, 0.9);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.event-recurring {
    border-left-color: #17a2b8;
}

.event-recurring::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        #17a2b8 0px,
        #17a2b8 10px,
        transparent 10px,
        transparent 20px
    );
    z-index: 1;
}

/* Recurring indicator in event content */
.recurring-indicator {
    display: inline-flex;
    align-items: center;
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.recurring-indicator::before {
    content: "🔄";
    margin-right: 0.25rem;
}

/* Adjust positioning when both multi-day and recurring flags are present */
.event-multi-day.event-recurring .recurring-flag {
    top: 100px;
}

.event-content {
    padding: 1rem;
}

.event-image-container {
    width: 100%;
    height: 200px;
    position: relative;
    margin-bottom: 0;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.event-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: none; /* Hidden by default, shown when loaded */
}

.event-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #999;
    font-size: 3rem;
    border-radius: 4px;
}

.event-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
    color: #333;
    line-height: 1.3;
}

.event-categories {
    margin-bottom: 0.75rem;
}

.category-tag {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

.event-date {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.event-location {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
}

.event-description {
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #555;
    font-size: 0.9rem;
}

.event-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #4b6cb7;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.event-link:hover {
    background-color: #3a5a9f;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    background-color: #4b6cb7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.pagination button:hover:not([disabled]) {
    background-color: #3a5a9f;
}

.pagination button[disabled] {
    background-color: #cccccc;
    cursor: not-allowed;
}

.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
}

@media (max-width: 1200px) {
    #events-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    #events-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .event-card {
        margin-bottom: 0;
    }
    
    .event-image {
        height: 160px;
    }
    
    .search-container {
        width: 100%;
    }
    
    #search-events {
        width: calc(100% - 80px);
    }
}

@media (max-width: 480px) {
    .event-content {
        padding: 0.75rem;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
    
    .event-image {
        height: 140px;
    }
}