/**
 * Events Page Styles
 * Matches notices layout structure
 */

/* Page Header */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* Events Section */
.events-section {
    background: #fff;
}

/* Search Form */
.search-form .input-group {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.search-form .form-control {
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    height: 44px;
}

.search-form .form-control:focus {
    border-color: var(--primary-color, #C7805C);
    box-shadow: none;
}

.search-form .btn {
    padding: 0.75rem 1.5rem;
    height: 44px;
    font-size: 1rem;
    white-space: nowrap;
    background-color: var(--primary-color, #C7805C);
    border-color: var(--primary-color, #C7805C);
    color: #fff;
}

.search-form .btn:hover {
    background-color: var(--secondary-color, #90B3A7);
    border-color: var(--secondary-color, #90B3A7);
    color: #fff;
}

/* Calendar & View Buttons */
.btn-outline-primary {
    border-color: var(--primary-color, #C7805C);
    color: var(--primary-color, #C7805C);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color, #C7805C);
    border-color: var(--primary-color, #C7805C);
    color: #fff;
}

/* Events List Container */
.events-list {
    margin-bottom: 3rem;
}

/* Event Card */
.event-card {
    background: #fff;
    border-left: 4px solid var(--primary-color, #C7805C);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.event-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Event Type Badge */
.event-type-badge {
    flex-shrink: 0;
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background-color: var(--primary-color, #C7805C);
    color: #fff;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    height: fit-content;
}

/* Event Card Content */
.event-card-content {
    flex: 1 1 auto;
}

/* Event Meta (Date, Time, Location) */
.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #666;
}

.event-date,
.event-time,
.event-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.event-date i,
.event-time i,
.event-location i {
    color: var(--primary-color, #C7805C);
    font-size: 0.95rem;
    width: 14px;
}

/* Event Title */
.event-title {
    margin: 1rem 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
}

.event-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title a:hover {
    color: var(--primary-color, #C7805C);
}

/* Event Excerpt/Description */
.event-excerpt {
    color: #666;
    font-size: 0.95rem;
    margin: 1rem 0;
    line-height: 1.6;
}

/* Event Footer */
.event-footer {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.event-footer .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-color: var(--primary-color, #C7805C);
    color: var(--primary-color, #C7805C);
}

.event-footer .btn-outline-primary {
    border-color: var(--primary-color, #C7805C);
    color: var(--primary-color, #C7805C);
}

.event-footer .btn-outline-primary:hover {
    background-color: var(--primary-color, #C7805C);
    border-color: var(--primary-color, #C7805C);
    color: #fff;
}

.event-footer .btn-outline-secondary {
    border-color: var(--primary-color, #C7805C);
    color: var(--primary-color, #C7805C);
}

.event-footer .btn-outline-secondary:hover {
    background-color: var(--primary-color, #C7805C);
    border-color: var(--primary-color, #C7805C);
    color: #fff;
}

/* Featured Events Section */
.featured-events {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #f0f0f0;
}

.event-card-featured {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card-featured:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.event-card-featured-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.event-featured-badge {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-featured-date {
    font-size: 0.85rem;
    color: #999;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.event-featured-date i {
    font-size: 0.9rem;
}

.event-featured-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0.5rem 0;
    line-height: 1.3;
}

.event-featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-featured-title a:hover {
    color: var(--primary-color, #C7805C);
}

.event-featured-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: auto;
    line-height: 1.4;
}

.event-featured-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.btn-icon-small {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #999;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-small:hover {
    color: #333;
    background-color: #f5f5f5;
}

.btn-featured-action {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-featured-action:hover {
    opacity: 0.8;
}

/* Badge Styles */
.badge i {
    margin-right: 0.4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
        gap: 1rem;
    }

    .event-meta {
        gap: 1rem;
    }

    .event-featured-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .event-card {
        padding: 1rem;
    }

    .event-title {
        font-size: 1.05rem;
    }

    .event-meta {
        flex-direction: column;
        gap: 0.75rem;
        font-size: 0.85rem;
    }

    .event-excerpt {
        display: none;
    }

    .event-footer {
        flex-wrap: wrap;
    }
}
