/**
 * Headcount Events Plugin Styles
 */

/* Error Messages */
.headcount-error {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 20px 0;
}

.headcount-no-events {
    padding: 15px;
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
}

/* Events List */
.headcount-events-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.headcount-event-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.headcount-event-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.headcount-event-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
}

.headcount-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.headcount-event-content {
    flex: 1;
}

.headcount-event-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: #0073aa;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.headcount-event-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    line-height: 1.3;
}

.headcount-event-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.headcount-event-title a:hover {
    color: #0073aa;
}

.headcount-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.headcount-event-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.headcount-event-description {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.headcount-event-rsvp {
    margin-top: 15px;
}

.headcount-rsvp-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.headcount-rsvp-button:hover {
    background-color: #005a87;
    color: #fff;
}

.headcount-rsvp-button-large {
    padding: 15px 30px;
    font-size: 16px;
}

/* Events Grid */
.headcount-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.headcount-event-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.headcount-event-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.headcount-event-card .headcount-event-image {
    width: 100%;
    height: 200px;
}

.headcount-event-card .headcount-event-content {
    padding: 20px;
}

.headcount-event-card .headcount-event-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.headcount-event-card .headcount-event-meta {
    flex-direction: column;
    gap: 8px;
}

.headcount-event-card .headcount-event-meta div {
    display: block;
}

/* Single Event */
.headcount-event-single {
    max-width: 800px;
    margin: 0 auto;
}

.headcount-event-single .headcount-event-image {
    width: 100%;
    max-height: 400px;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.headcount-event-single .headcount-event-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.headcount-event-header {
    margin-bottom: 30px;
}

.headcount-event-single .headcount-event-title {
    font-size: 36px;
    margin: 15px 0;
}

.headcount-event-details {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.headcount-event-detail-row {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
}

.headcount-event-detail {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.headcount-event-detail strong {
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.headcount-event-detail span {
    color: #666;
    font-size: 16px;
}

.headcount-event-single .headcount-event-description {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.headcount-event-single .headcount-event-rsvp {
    text-align: center;
}

/* Calendar */
.headcount-calendar-wrapper {
    width: 100%;
    margin: 20px 0;
}

#headcount-calendar {
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .headcount-event-item {
        flex-direction: column;
    }
    
    .headcount-event-image {
        width: 100%;
        height: 200px;
    }
    
    .headcount-events-grid {
        grid-template-columns: 1fr;
    }
    
    .headcount-event-single .headcount-event-title {
        font-size: 28px;
    }
    
    .headcount-event-detail-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .headcount-event-meta {
        flex-direction: column;
        gap: 10px;
    }
}
