/**
 * Nordic Events Frontend CSS
 * Uses GeneratePress variables - max 200 lines
 * Matches Matchmaking plugin patterns
 */

/* Event Card - Match mm-company-card structure */
.nme-event-card {
    border: 1px solid var(--neutral-border, #c3c4c7);
    border-radius: 5px;
    padding: 30px;
    background: var(--base-3, #ffffff);
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
}

.nme-event-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nme-event-card h3 {
    font-size: 1.5em;
    margin: 0 0 15px 0;
    color: var(--contrast, #01161a);
}

/* Category Badge - Match mm-status-badge */
.nme-category-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 600;
    background: var(--base, #fae7d5);
    color: var(--contrast, #01161a);
}

/* Status Badges for Event Status */
.nme-event-status-wrapper {
    margin: 10px 0;
}

.nme-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.nme-status-badge.cancelled {
    background: var(--system-error-light, #ffeaea);
    color: var(--system-error, #dc3232);
}

.nme-status-badge.inactive {
    background: var(--neutral-border-light, #f0f0f1);
    color: var(--neutral-medium, #646970);
}

.nme-status-badge.completed {
    background: var(--system-info-light, #e7f3ff);
    color: var(--system-info, #0073aa);
}

/* Event Card Status States */
.nme-event-card.event-status-cancelled {
    opacity: 0.8;
}

.nme-event-card.event-status-cancelled h3 {
    text-decoration: line-through;
}

/* Event Meta */
.nme-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95em;
    margin: 20px 0;
    color: var(--neutral-medium, #646970);
}

.nme-event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nme-event-meta .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

/* Event Description */
.nme-event-description {
    margin: 25px 0;
    padding: 25px 0;
    border-top: 1px solid var(--neutral-border-light, #f0f0f1);
    border-bottom: 1px solid var(--neutral-border-light, #f0f0f1);
    line-height: 1.6;
}

/* Event Footer */
.nme-event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--neutral-border-light, #f0f0f1);
}

.nme-event-website a {
    color: var(--accent, #C13D10);
    text-decoration: none;
}

.nme-event-website a:hover {
    text-decoration: underline;
}

/* Event Actions */
.nme-event-unavailable,
.nme-event-full {
    color: var(--neutral-medium, #646970);
    font-style: italic;
}

/* Filters - Match mm-search-filters */
.nme-events-filters {
    background: var(--base-2, #FBEFE1);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.nme-filter-row-primary {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.nme-filter-group {
    flex: 1;
    min-width: 200px;
}

.nme-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9em;
}

.nme-filter-group input,
.nme-filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--neutral-border, #c3c4c7);
    border-radius: 3px;
}

.nme-filter-group input[type="checkbox"] {
    width: 20px;
}

.nme-filter-checkbox label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nme-filter-row-actions {
    display: flex;
    gap: 10px;
}

/* Loading State */
.nme-events-loading {
    text-align: center;
    padding: 40px;
    color: var(--neutral-medium, #646970);
}

/* No Results */
.nme-no-events,
.nme-no-interests {
    text-align: center;
    padding: 40px;
    background: var(--base, #fae7d5);
    border-radius: 5px;
}

/* Recommendations */
.nme-recommended-events h3,
.nme-my-interests h3 {
    margin-bottom: 20px;
    color: var(--contrast, #01161a);
}

.nme-recommendation-reasons {
    background: var(--system-info-light, #e7f3ff);
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.nme-recommendation-reasons p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: var(--system-info, #0073aa);
}

.nme-recommendation-reasons ul {
    margin: 0;
    padding-left: 20px;
}

.nme-recommendation-reasons li {
    color: var(--system-info, #0073aa);
}

/* Grid Layout */
.nme-events-grid {
    display: block;
}

/* Pagination */
.nme-events-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 30px 0;
}

.nme-events-pagination a,
.nme-events-pagination span {
    padding: 8px 12px;
    border: 1px solid var(--neutral-border, #c3c4c7);
    color: var(--contrast, #01161a);
    text-decoration: none;
    border-radius: 3px;
}

.nme-events-pagination a:hover {
    background: var(--base, #fae7d5);
}

.nme-events-pagination .current {
    background: var(--accent, #C13D10);
    color: var(--base-3, #ffffff);
    border-color: var(--accent, #C13D10);
}

/* Login Required */
.nme-login-required {
    background: var(--base, #fae7d5);
    padding: 20px;
    text-align: center;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .nme-filter-row-primary {
        flex-direction: column;
    }
    
    .nme-filter-group {
        width: 100%;
    }
    
    .nme-event-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .nme-event-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .nme-event-actions {
        width: 100%;
    }
    
    .nme-event-actions .button {
        width: 100%;
        text-align: center;
    }
}