/* ═══════════════════════════════════════════════════════════════
   UMU Events Plugin – Stylesheet v1.3.0
   Colour palette:
     Red   : #ff0000
     Black : #000000
     White : #ffffff  (primary background)
     Dark  : #222222  (body text — matches UMU site)
     Muted : #6b6b6b  (secondary text)
     Line  : #e8e8e8  (dividers — very light)
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   WIDGET  [umu_events]
───────────────────────────────────────────── */
.umu-events-widget {
    max-width: 640px;
    margin: 20px auto;
    padding: 0;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(255, 0, 0, 0.15);
    font-family: inherit;
}

.umu-events-header {
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffffff;
    background: #000000;
    margin: 0;
    padding: 14px 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.umu-events-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px 20px;
    background: #ffffff;
}

.umu-event-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #e8e8e8;
    transition: background 0.2s ease;
}

.umu-event-card:last-child {
    border-bottom: none;
}

.umu-event-card:hover {
    background: #f5f5f5;
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
}

.umu-event-date-badge {
    flex: 0 0 60px;
    height: 60px;
    background: #ff0000;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(255, 0, 0, 0.3);
    flex-shrink: 0;
}

.umu-month {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.umu-day {
    font-size: 1.5rem;
    font-weight: 900;
}

.umu-event-info {
    flex: 1;
    min-width: 0;
}

.umu-event-title {
    font-size: 1rem;
    font-weight: 700;
    color: #222222;
    margin: 0 0 5px 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.umu-event-excerpt {
    font-size: 0.85rem;
    color: #6b6b6b;
    margin-bottom: 5px;
    line-height: 1.4;
}

.umu-event-venue {
    font-size: 0.82rem;
    color: #ff0000;
}

.umu-event-venue strong {
    color: #222222;
}

.umu-event-thumb {
    flex: 0 0 72px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #000000;
    flex-shrink: 0;
}

.umu-event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.umu-see-all {
    display: inline-block;
    margin: 4px 20px 20px;
    padding: 11px 24px;
    background: #ff0000;
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    transition: background 0.25s ease;
    border-radius: 6px;
}

.umu-see-all:hover {
    background: #cc0000;
}

/* ─────────────────────────────────────────────
   FULL PAGE  [umu_all_events]
───────────────────────────────────────────── */
.umu-all-events-page {
    font-family: inherit;
    background: #ffffff;
    min-height: 60vh;
    color: #222222;
}

/* Grid */
.umu-all-events-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1000px;
    margin: 40px 80px;
    width: 100%;
}

/* Page Header */
.umu-page-header {
    display: none;
    background: #000000;
    color: #ffffff;
    padding: 56px 24px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.umu-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,0,0,0.08) 10px,
        rgba(255,0,0,0.08) 20px
    );
}

.umu-page-header-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.umu-header-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.umu-page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: 4px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(255,0,0,0.4);
}



/* Card */
.umu-all-event-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.umu-all-event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(255, 0, 0, 0.18);
    border-color: #ff0000;
}

.umu-past-event {
    opacity: 1;
}

/* Banner */
.umu-all-event-banner {
    position: relative;
    height: 160px;
    width: 200px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.umu-all-event-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.umu-all-event-card:hover .umu-all-event-banner img {
    transform: scale(1.06);
}

.umu-banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff0000 0%, #880000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

/* Date badge on banner */
.umu-all-event-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff0000;
    color: #ffffff;
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.35);
    min-width: 54px;
}

.umu-all-month {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.umu-all-day {
    display: block;
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
}

.umu-all-year {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    margin-top: 3px;
    opacity: 0.85;
}

/* Indicator badges */
.umu-indicator {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 1px 8px;
    border-radius: 8px;
}

.umu-indicator-ended {
    background: #fbe9e7;
    color: #c62828;
}

.umu-indicator-coming {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Card Body */
.umu-all-event-body {
    padding: 16px 20px;
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.umu-all-event-title {
    font-size: 1rem;
    font-weight: 800;
    color: #222222;
    margin: 0 0 14px 0;
    line-height: 1.35;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.umu-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.87rem;
    color: #555555;
    margin-bottom: 8px;
    line-height: 1.4;
}

.umu-detail-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.umu-all-event-content {
    margin-top: 14px;
    font-size: 0.9rem;
    color: #444444;
    line-height: 1.65;
    border-top: 1px solid #e8e8e8;
    padding-top: 14px;
    max-height: 150px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}

.umu-all-event-content p {
    margin: 0 0 10px 0;
}

.umu-all-event-excerpt {
    margin-top: 10px;
    font-size: 0.88rem;
    color: #6b6b6b;
    line-height: 1.5;
    max-height: 80px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* No Events */
.umu-no-events {
    text-align: center;
    padding: 70px 20px;
    color: #888888;
    max-width: 480px;
    margin: 0 auto;
}

.umu-no-events-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.umu-no-events h3 {
    font-size: 1.3rem;
    color: #ff0000;
    margin-bottom: 8px;
}

/* Pagination */
.umu-pagination {
    text-align: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.umu-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 3px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #222222;
    text-decoration: none;
    border: 2px solid #e8e8e8;
    background: #ffffff;
    transition: all 0.2s ease;
}

.umu-pagination .page-numbers:hover,
.umu-pagination .page-numbers.current {
    background: #ff0000;
    border-color: #ff0000;
    color: #ffffff;
}

.umu-pagination .page-numbers.prev,
.umu-pagination .page-numbers.next {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.umu-pagination .page-numbers.prev:hover,
.umu-pagination .page-numbers.next:hover {
    background: #ff0000;
    border-color: #ff0000;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 600px) {
    .umu-event-card {
        flex-wrap: wrap;
        gap: 10px;
    }
    .umu-event-thumb {
        order: -1;
        flex: 0 0 100%;
        height: 130px;
    }
    .umu-all-events-grid {
        grid-template-columns: 1fr;
        padding: 24px 12px;
    }
    .umu-page-header {
        padding: 36px 16px 32px;
    }
}