/**
 * Events Manager Pro – Frontend Styles
 * Beautiful, modern, responsive event display.
 *
 * @package EventsManagerPro
 */

/* ═══════════════════════════════════════════════
 * CSS CUSTOM PROPERTIES (set dynamically via PHP)
 * ═══════════════════════════════════════════════ */
:root {
    --emp-primary: #4f46e5;
    --emp-secondary: #7c3aed;
    --emp-accent: #f59e0b;
    --emp-text: #1e293b;
    --emp-bg: #f8fafc;
    --emp-card-bg: #ffffff;
    --emp-font: 'Inter', system-ui, -apple-system, sans-serif;
    --emp-radius: 16px;
    --emp-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --emp-spacing: 24px;
    --emp-cols: 3;
    --emp-primary-rgb: 79, 70, 229;
    --emp-secondary-rgb: 124, 58, 237;
    --emp-accent-rgb: 245, 158, 11;
    --emp-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════
 * BASE / WRAPPER
 * ═══════════════════════════════════════════════ */
.emp-events-wrapper,
.emp-calendar-wrapper,
.emp-single-event {
    font-family: var(--emp-font);
    color: var(--emp-text);
    line-height: 1.6;
    position: relative;
}

.emp-events-wrapper *,
.emp-calendar-wrapper *,
.emp-single-event * {
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════
 * FILTER BAR
 * ═══════════════════════════════════════════════ */
.emp-filters {
    background: var(--emp-card-bg);
    border-radius: var(--emp-radius);
    padding: 20px 24px;
    margin-bottom: var(--emp-spacing);
    box-shadow: var(--emp-shadow);
    border: 1px solid rgba(0,0,0,0.04);
}

.emp-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.emp-filters-secondary {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
    justify-content: space-between;
}

.emp-filter-group {
    flex: 1;
    min-width: 150px;
}

.emp-filter-search {
    flex: 2;
    min-width: 200px;
}

.emp-search-wrap {
    position: relative;
}

.emp-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.emp-filter-input,
.emp-filter-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--emp-font);
    color: var(--emp-text);
    background: #fff;
    transition: border-color var(--emp-transition), box-shadow var(--emp-transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.emp-search-input {
    padding-left: 42px;
}

.emp-filter-input:focus,
.emp-filter-select:focus {
    border-color: var(--emp-primary);
    box-shadow: 0 0 0 3px rgba(var(--emp-primary-rgb), 0.12);
}

.emp-filter-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.emp-filter-dates,
.emp-filter-price {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1.5;
}

.emp-filter-dates .emp-filter-input,
.emp-filter-price .emp-filter-input {
    flex: 1;
    min-width: 0;
}

.emp-filter-sep {
    color: #94a3b8;
    font-weight: 600;
}

/* Toggle buttons */
.emp-toggle-group {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}

.emp-toggle-btn {
    padding: 7px 18px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all var(--emp-transition);
    font-family: var(--emp-font);
}

.emp-toggle-btn:hover {
    color: var(--emp-text);
}

.emp-toggle-btn.active {
    background: var(--emp-primary);
    color: #fff;
    box-shadow: 0 1px 3px rgba(var(--emp-primary-rgb), 0.3);
}

/* ═══════════════════════════════════════════════
 * EVENTS GRID CONTAINER
 * ═══════════════════════════════════════════════ */
.emp-events-container {
    position: relative;
    min-height: 200px;
}

.emp-view-grid {
    display: grid;
    grid-template-columns: repeat(var(--emp-cols), 1fr);
    gap: var(--emp-spacing);
}

.emp-view-list {
    display: flex;
    flex-direction: column;
    gap: var(--emp-spacing);
}

/* ═══════════════════════════════════════════════
 * ANIMATION
 * ═══════════════════════════════════════════════ */
@keyframes empFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emp-animate {
    animation: empFadeInUp 0.5s ease forwards;
    opacity: 0;
}

.emp-animate:nth-child(1) { animation-delay: 0.05s; }
.emp-animate:nth-child(2) { animation-delay: 0.1s; }
.emp-animate:nth-child(3) { animation-delay: 0.15s; }
.emp-animate:nth-child(4) { animation-delay: 0.2s; }
.emp-animate:nth-child(5) { animation-delay: 0.25s; }
.emp-animate:nth-child(6) { animation-delay: 0.3s; }
.emp-animate:nth-child(7) { animation-delay: 0.35s; }
.emp-animate:nth-child(8) { animation-delay: 0.4s; }
.emp-animate:nth-child(9) { animation-delay: 0.45s; }

/* ═══════════════════════════════════════════════
 * SHARED CARD STYLES
 * ═══════════════════════════════════════════════ */
.emp-card {
    background: var(--emp-card-bg);
    border-radius: var(--emp-radius);
    overflow: hidden;
    box-shadow: var(--emp-shadow);
    transition: transform var(--emp-transition), box-shadow var(--emp-transition);
    border: 1px solid rgba(0,0,0,0.04);
}

.emp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

/* Card Image */
.emp-card-image {
    position: relative;
    overflow: hidden;
}

.emp-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.emp-card:hover .emp-card-image img {
    transform: scale(1.06);
}

.emp-card-image a {
    display: block;
    line-height: 0;
}

/* Date Badge */
.emp-date-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--emp-card-bg);
    border-radius: 12px;
    padding: 8px 14px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 2;
    line-height: 1;
}

.emp-badge-month {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--emp-primary);
    letter-spacing: 0.5px;
}

.emp-badge-day {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--emp-text);
    margin-top: 2px;
}

/* Price Badge */
.emp-price-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--emp-primary);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(var(--emp-primary-rgb), 0.35);
    z-index: 2;
}

/* Card Body */
.emp-card-body {
    padding: 20px 22px 22px;
}

/* Tags */
.emp-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: linear-gradient(135deg, rgba(var(--emp-primary-rgb), 0.1), rgba(var(--emp-secondary-rgb), 0.08));
    color: var(--emp-primary);
}

.emp-tag-light {
    background: rgba(255,255,255,0.2);
    color: #fff;
    backdrop-filter: blur(4px);
}

.emp-tag-outline {
    background: transparent;
    border: 1.5px solid var(--emp-primary);
    color: var(--emp-primary);
}

.emp-card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

/* Card Title */
.emp-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.emp-card-title a {
    color: var(--emp-text);
    text-decoration: none;
    transition: color var(--emp-transition);
}

.emp-card-title a:hover {
    color: var(--emp-primary);
}

/* Card Excerpt */
.emp-card-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta items */
.emp-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.emp-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.emp-icon {
    font-size: 14px;
    flex-shrink: 0;
}

/* Card Actions / Buttons */
.emp-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
 * BUTTONS
 * ═══════════════════════════════════════════════ */
.emp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--emp-font);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--emp-transition);
    line-height: 1.4;
    white-space: nowrap;
}

.emp-btn-sm {
    padding: 7px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.emp-btn-primary {
    background: linear-gradient(135deg, var(--emp-primary), var(--emp-secondary));
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--emp-primary-rgb), 0.3);
}

.emp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--emp-primary-rgb), 0.4);
    color: #fff;
}

.emp-btn-secondary {
    background: var(--emp-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--emp-accent-rgb), 0.3);
}

.emp-btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--emp-accent-rgb), 0.4);
    color: #fff;
}

.emp-btn-outline {
    background: transparent;
    color: var(--emp-primary);
    border-color: var(--emp-primary);
}

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

/* ═══════════════════════════════════════════════
 * CLASSIC CARD
 * ═══════════════════════════════════════════════ */
/* (Uses shared styles above) */

/* ═══════════════════════════════════════════════
 * OVERLAY CARD
 * ═══════════════════════════════════════════════ */
.emp-card-overlay {
    position: relative;
    height: 360px;
}

.emp-overlay-link {
    display: block;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: #fff;
}

.emp-overlay-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.emp-card-overlay:hover .emp-overlay-img {
    transform: scale(1.08);
}

.emp-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
    z-index: 1;
}

.emp-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
}

.emp-overlay-content .emp-card-title {
    color: #fff;
    font-size: 20px;
    margin-bottom: 10px;
}

.emp-overlay-content .emp-card-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

.emp-overlay-content .emp-meta-item {
    color: rgba(255,255,255,0.85);
}

.emp-overlay-content .emp-price-badge {
    position: static;
    display: inline-block;
    margin-top: 10px;
}

/* ═══════════════════════════════════════════════
 * HORIZONTAL CARD
 * ═══════════════════════════════════════════════ */
.emp-card-horizontal {
    display: flex;
    flex-direction: row;
}

.emp-card-horizontal .emp-card-image {
    width: 280px;
    flex-shrink: 0;
}

.emp-card-horizontal .emp-card-image img {
    height: 100%;
    min-height: 240px;
}

.emp-card-horizontal .emp-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.emp-view-grid .emp-card-horizontal {
    grid-column: span var(--emp-cols);
}

/* ═══════════════════════════════════════════════
 * MINIMAL CARD
 * ═══════════════════════════════════════════════ */
.emp-card-minimal {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    border-left: 4px solid var(--emp-primary);
}

.emp-card-minimal:hover {
    border-left-color: var(--emp-secondary);
}

.emp-minimal-date {
    flex-shrink: 0;
    text-align: center;
    min-width: 54px;
}

.emp-minimal-month {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--emp-primary);
    letter-spacing: 0.5px;
}

.emp-minimal-day {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--emp-text);
    line-height: 1.1;
}

.emp-card-minimal .emp-card-body {
    padding: 0;
    flex: 1;
}

.emp-card-minimal .emp-card-title {
    font-size: 16px;
    margin-bottom: 4px;
}

.emp-card-minimal .emp-card-meta {
    flex-direction: row;
    gap: 14px;
    margin-bottom: 0;
}

.emp-minimal-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--emp-primary);
    flex-shrink: 0;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════
 * MODERN CARD
 * ═══════════════════════════════════════════════ */
.emp-card-modern .emp-card-image img {
    height: 200px;
}

.emp-modern-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.emp-modern-date {
    display: flex;
    flex-direction: column;
}

.emp-modern-day {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: var(--emp-primary);
}

.emp-modern-month {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emp-modern-price {
    background: linear-gradient(135deg, var(--emp-primary), var(--emp-secondary));
    color: #fff;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.emp-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* ═══════════════════════════════════════════════
 * ELEGANT CARD
 * ═══════════════════════════════════════════════ */
.emp-elegant-inner {
    position: relative;
}

.emp-card-elegant .emp-card-image img {
    height: 200px;
}

.emp-elegant-ribbon {
    position: absolute;
    top: 180px;
    right: 20px;
    background: linear-gradient(135deg, var(--emp-primary), var(--emp-secondary));
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(var(--emp-primary-rgb), 0.4);
    z-index: 2;
}

.emp-card-elegant .emp-card-body {
    padding-top: 24px;
}

.emp-elegant-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.emp-elegant-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--emp-primary);
}

/* ═══════════════════════════════════════════════
 * NO EVENTS
 * ═══════════════════════════════════════════════ */
.emp-no-events {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    color: #94a3b8;
}

.emp-no-events-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.emp-no-events p {
    font-size: 16px;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════
 * PAGINATION
 * ═══════════════════════════════════════════════ */
.emp-pagination {
    margin-top: var(--emp-spacing);
    display: flex;
    justify-content: center;
}

.emp-pagination ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.emp-pagination li {
    margin: 0;
}

.emp-pagination a,
.emp-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--emp-transition);
    border: 2px solid transparent;
}

.emp-pagination a {
    color: var(--emp-text);
    background: var(--emp-card-bg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.emp-pagination a:hover {
    background: var(--emp-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--emp-primary-rgb), 0.3);
}

.emp-pagination .current {
    background: var(--emp-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--emp-primary-rgb), 0.3);
}

/* ═══════════════════════════════════════════════
 * LOADING OVERLAY
 * ═══════════════════════════════════════════════ */
.emp-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--emp-radius);
}

.emp-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(var(--emp-primary-rgb), 0.15);
    border-top-color: var(--emp-primary);
    border-radius: 50%;
    animation: empSpin 0.8s linear infinite;
}

@keyframes empSpin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════
 * CALENDAR
 * ═══════════════════════════════════════════════ */
.emp-calendar-wrapper {
    background: var(--emp-card-bg);
    border-radius: var(--emp-radius);
    box-shadow: var(--emp-shadow);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
}

.emp-calendar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--emp-primary), var(--emp-secondary));
    color: #fff;
}

.emp-cal-title {
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.emp-cal-nav {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--emp-transition);
}

.emp-cal-nav:hover {
    background: rgba(255,255,255,0.3);
}

.emp-cal-view-toggle {
    display: flex;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 2px;
}

.emp-cal-view-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.7);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--emp-transition);
    font-family: var(--emp-font);
}

.emp-cal-view-btn:hover {
    color: #fff;
}

.emp-cal-view-btn.active {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* Calendar Grid */
.emp-calendar-grid {
    padding: 16px;
}

.emp-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 8px;
}

.emp-cal-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    padding: 8px 0;
}

.emp-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.emp-cal-day {
    position: relative;
    min-height: 80px;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background var(--emp-transition);
    cursor: default;
}

.emp-cal-day:hover {
    background: rgba(var(--emp-primary-rgb), 0.04);
}

.emp-cal-day-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--emp-text);
}

.emp-cal-day.emp-cal-other-month .emp-cal-day-number {
    color: #cbd5e1;
}

.emp-cal-day.emp-cal-today {
    background: rgba(var(--emp-primary-rgb), 0.08);
}

.emp-cal-day.emp-cal-today .emp-cal-day-number {
    background: var(--emp-primary);
    color: #fff;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.emp-cal-event {
    display: block;
    font-size: 11px;
    padding: 2px 6px;
    margin-top: 2px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(var(--emp-primary-rgb), 0.12), rgba(var(--emp-secondary-rgb), 0.08));
    color: var(--emp-primary);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background var(--emp-transition);
}

.emp-cal-event:hover {
    background: var(--emp-primary);
    color: #fff;
}

/* Calendar Tooltip */
.emp-cal-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--emp-text);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    width: 220px;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: none;
    pointer-events: none;
}

.emp-cal-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--emp-text);
}

.emp-cal-event:hover + .emp-cal-tooltip,
.emp-cal-tooltip:hover {
    display: block;
}

/* Calendar List View */
.emp-calendar-list {
    padding: 16px;
}

.emp-cal-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    transition: background var(--emp-transition);
    text-decoration: none;
    color: var(--emp-text);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.emp-cal-list-item:last-child {
    border-bottom: none;
}

.emp-cal-list-item:hover {
    background: rgba(var(--emp-primary-rgb), 0.04);
}

.emp-cal-list-date {
    flex-shrink: 0;
    text-align: center;
    min-width: 56px;
}

.emp-cal-list-day {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--emp-primary);
    line-height: 1;
}

.emp-cal-list-month {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
}

.emp-cal-list-info {
    flex: 1;
    min-width: 0;
}

.emp-cal-list-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
}

.emp-cal-list-meta {
    font-size: 13px;
    color: #64748b;
}

.emp-cal-list-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
 * SINGLE EVENT
 * ═══════════════════════════════════════════════ */
.emp-single-event {
    max-width: 880px;
    margin: 0 auto;
}

.emp-single-hero {
    position: relative;
    border-radius: var(--emp-radius);
    overflow: hidden;
    margin-bottom: 28px;
}

.emp-single-image {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

.emp-single-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--emp-card-bg);
    border-radius: 14px;
    padding: 12px 18px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.emp-single-date-badge .emp-badge-month {
    font-size: 13px;
}

.emp-single-date-badge .emp-badge-day {
    font-size: 28px;
}

.emp-single-content {
    background: var(--emp-card-bg);
    border-radius: var(--emp-radius);
    padding: 36px 40px;
    box-shadow: var(--emp-shadow);
}

.emp-single-header {
    margin-bottom: 28px;
}

.emp-single-cats {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.emp-single-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    color: var(--emp-text);
}

/* Meta Grid */
.emp-single-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.emp-meta-card {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    background: var(--emp-bg);
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.04);
}

.emp-meta-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.emp-meta-info strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.emp-meta-info p {
    margin: 0;
    font-size: 14px;
    color: var(--emp-text);
    font-weight: 500;
}

.emp-meta-info a {
    color: var(--emp-primary);
    text-decoration: none;
}

.emp-meta-info small {
    color: #94a3b8;
    font-size: 12px;
}

.emp-venue-name {
    font-weight: 700 !important;
}

/* Description */
.emp-single-description {
    margin-bottom: 24px;
    line-height: 1.8;
    font-size: 15px;
}

.emp-single-description p {
    margin-bottom: 14px;
}

/* Tags */
.emp-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* Actions */
.emp-single-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.emp-single-actions .emp-btn {
    padding: 14px 32px;
    font-size: 16px;
}

/* ═══════════════════════════════════════════════
 * SEARCH HIGHLIGHT
 * ═══════════════════════════════════════════════ */
.emp-highlight {
    background: rgba(var(--emp-accent-rgb), 0.25);
    border-radius: 2px;
    padding: 0 2px;
}

/* ═══════════════════════════════════════════════
 * SKELETON LOADING
 * ═══════════════════════════════════════════════ */
.emp-skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: empShimmer 1.5s infinite;
    border-radius: 8px;
}

.emp-skeleton-card {
    border-radius: var(--emp-radius);
    overflow: hidden;
}

.emp-skeleton-image {
    height: 220px;
    width: 100%;
}

.emp-skeleton-line {
    height: 14px;
    margin: 10px 20px;
    border-radius: 6px;
}

.emp-skeleton-line.short {
    width: 60%;
}

@keyframes empShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════
 * RESPONSIVE
 * ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .emp-view-grid {
        --emp-cols: 2 !important;
    }
    .emp-card-horizontal {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .emp-view-grid {
        --emp-cols: 1 !important;
    }

    .emp-card-horizontal {
        flex-direction: column;
        grid-column: span 1;
    }

    .emp-card-horizontal .emp-card-image {
        width: 100%;
    }

    .emp-card-horizontal .emp-card-image img {
        height: 200px;
        min-height: auto;
    }

    .emp-filters-row {
        flex-direction: column;
    }

    .emp-filter-group {
        width: 100%;
        min-width: auto;
    }

    .emp-filter-search {
        min-width: auto;
    }

    .emp-filter-dates,
    .emp-filter-price {
        flex: auto;
        width: 100%;
    }

    .emp-single-content {
        padding: 24px 20px;
    }

    .emp-single-title {
        font-size: 24px;
    }

    .emp-single-meta-grid {
        grid-template-columns: 1fr;
    }

    .emp-cal-day {
        min-height: 48px;
        padding: 4px;
    }

    .emp-cal-event {
        font-size: 9px;
        padding: 1px 4px;
    }

    .emp-calendar-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .emp-cal-view-toggle {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .emp-filters {
        padding: 14px 16px;
    }

    .emp-card-body {
        padding: 16px;
    }

    .emp-card-title {
        font-size: 16px;
    }

    .emp-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .emp-single-actions .emp-btn {
        padding: 12px 24px;
        font-size: 14px;
        flex: 1;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════
 * PRINT
 * ═══════════════════════════════════════════════ */
@media print {
    .emp-filters,
    .emp-pagination,
    .emp-card-actions,
    .emp-single-actions,
    .emp-cal-nav,
    .emp-cal-view-toggle {
        display: none !important;
    }

    .emp-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}
