.pokehub-events-wrapper a:hover {
    color: #ffffff;
}

.pokehub-event-type-filter-form {
    display: flex;
    flex-direction: row;
}

.pokehub-event-type-filter-form .select2-search--inline {
    width: calc(100% - 30px);
}

.pokehub-event-type-filter-form .select2-search__field {
    width: 100% !important;
}

.pokehub-event-type-filter-label {
    display: none;
}

.pokehub-events-tabs {
    padding: 10px 0;
    display: block;
}

.pokehub-events-button {
    align-self: flex-start;
    margin-top: auto;
    background: var(--e-global-color-primary);
    color: var(--e-global-color-43c1c0d);
    padding: 3px 6px;
    border-radius: 4px;
    text-decoration: none !important;
    margin-right: 5px;
    display: inline-block;
}

.pokehub-events-button.active {
    background: var(--e-global-color-secondary);
}

.pokehub-events-group-title {
    font-size: 22px;
    margin-block-end: 5px !important;
    margin-block-start: 25px !important;
}

/* ===== Carte globale ===== */

.pokehub-event-card {
    margin-bottom: 14px;
}

.pokehub-event-card-inner {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 8px 12px 8px 8px;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none !important;
    color: #fff;
    border-left: 6px solid var(--event-color, #ff9800);
    background-color: #101010; /* ✅ fond uni */
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

/* ✅ Image à gauche, max 50%, sans dégradé interne */
.pokehub-event-card-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 60%;                  /* max 50% de la largeur */
    height: 100%;

    background-image: var(--event-image, none);
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;

    z-index: 1;
}

/* ✅ Fondu de l’image vers la droite, sur la même moitié gauche */
.pokehub-event-card-inner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;                     /* on couvre la zone de l'image */
    width: 60%;
    height: 100%;

    /* Transparente à gauche (image pleine), puis fond uni à droite */
    background: linear-gradient(
        to right,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0) 35%,
        rgba(0,0,0,0.4) 65%,
        #101010 100%
    );

    z-index: 2;
    pointer-events: none;
}

/* Le contenu doit passer au-dessus de l'image + dégradé */
.event-inner-left,
.event-inner-center,
.event-inner-right {
    position: relative;
    z-index: 3;
}

.pokehub-event-card-inner:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    border-left-color: color-mix(in srgb, var(--event-color), black 40%);
}

/* ===== Colonnes internes ===== */

.event-inner-left,
.event-inner-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}

.event-inner-left {
    width: 200px;
}

.event-inner-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-inner-right {
    min-width: 120px;
    align-items: flex-end;
    text-align: right;
    gap: 6px;
}

/* ===== Badge type d’événement ===== */

.event-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--event-color); /* lisible sur le fond coloré */
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    width: fit-content;
}

/* ===== Titre ===== */

.event-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    text-transform: uppercase;
}

/* ===== Ligne des dates ===== */

.event-dates-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 3px;
}

.event-date-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    border-radius: 999px;
    background: rgba(0,0,0,0.55);
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
    font-size: 12px;
    white-space: nowrap;
}

.event-date-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-right: 6px;
    box-shadow: 0 0 6px rgba(0,0,0,0.6);
}

.event-date-dot--start {
    background: #00e676;
    box-shadow: 0 0 6px rgba(0, 230, 118, 0.7);
}

.event-date-dot--end {
    background: #ff1744;
    box-shadow: 0 0 6px rgba(255, 23, 68, 0.9);
}

.event-date-text {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-date-middle {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
}

/* ===== Statut + temps restant + bouton ===== */

.event-status-label {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.25);
}

.event-status-label--current {
    background: rgba(0, 200, 83, 0.25);
}

.event-status-label--upcoming {
    background: rgba(66, 133, 244, 0.25);
}

.event-status-label--past {
    background: rgba(158, 158, 158, 0.30);
}

.event-time-remaining {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
}

.event-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--event-color);
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.pokehub-event-card-inner:hover .event-more-button {
    background: color-mix(in srgb, var(--event-color), black 40%);
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
    .pokehub-event-card-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    /* L’image prend TOUTE la largeur en mobile */
    .pokehub-event-card-inner::before {
        width: 100%;   /* full width */
        background-position: center top;
    }

    /* Mais le fade reste sur la moitié gauche */
    .pokehub-event-card-inner::after {
        width: 100%;      /* fade toujours sur la moitié */
        left: auto;
        right: 0;

        background: linear-gradient(
            to left,
            rgba(0,0,0,0) 0%,
            rgba(0,0,0,0.3) 40%,
            rgba(0,0,0,0.75) 80%,
            #101010 100%
        );
    }

    .event-inner-left,
    .event-inner-right {
        min-width: 0;
        align-items: flex-start;
        text-align: left;
    }

    .event-inner-right {
        align-items: flex-start;
    }

    .event-dates-row {
        gap: 1px;
    }

    .event-date-chip {
        font-size: 11.5px;
    }

    .event-time-remaining {
        margin-top: 2px;
    }

    .event-more-button {
        margin-top: 6px;
    }
}

/* Pagination */
.pokehub-events-pagination {
	height: 30px;
	margin: 6px 0 4px;
	padding-top: 5px;
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 13px;
	color: var(--e-global-color-267e1d5);
	flex-wrap: wrap;
	float: right;
}

.pokehub-events-pagination .pagination-links {
	display: flex;
	gap: 0.25rem;
	align-items: center;
}

.pokehub-events-pagination .button,
.pokehub-events-pagination .tablenav-pages-navspan {
	cursor: pointer;
	border-width: 1px;
	border-style: solid;
	-webkit-appearance: none;
	text-decoration: none;
	border-radius: 3px;
	white-space: nowrap;
	box-sizing: border-box;
	display: inline-block;
	vertical-align: baseline;
	min-width: 30px;
	min-height: 30px;
	margin: 0;
	padding: 0 4px;
	font-size: 16px;
	line-height: 1.625;
	text-align: center;
	color: var(--e-global-color-267e1d5);
	border-color: var(--e-global-color-ff316d3);
	background: var(--e-global-color-ff316d3);
}

.pokehub-events-pagination .button:hover {
	background: var(--e-global-color-secondary);
	border-color: var(--e-global-color-secondary);
	text-decoration: none;
	color: var(--e-global-color-267e1d5);
}

.pokehub-events-pagination .button:focus {
	background: var(--e-global-color-secondary);
	border-color: var(--e-global-color-secondary);
	color: var(--e-global-color-267e1d5);
	box-shadow: 0 0 0 1px var(--e-global-color-secondary);
	outline: 2px solid transparent;
	outline-offset: 0;
}

.pokehub-events-pagination .button.disabled,
.pokehub-events-pagination .tablenav-pages-navspan.disabled {
	color: var(--e-global-color-267e1d5) !important;
	border-color: var(--e-global-color-ff316d3) !important;
	background: var(--e-global-color-ff316d3) !important;
	box-shadow: none !important;
	opacity: 0.5;
    pointer-events: none;
    cursor: default;
	transform: none !important;
}

.pokehub-events-pagination .displaying-num,
.pokehub-events-pagination .paging-input,
.pokehub-events-pagination .total-pages {
	color: var(--admin-lab-color-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 13px;
	line-height: 1.4em;
}

/* Conteneur global des deux dates (si encore utilisé ailleurs) */
.event-dates {
    display: flex;
    align-items: center;
    gap: 12px;
}

.event-date-separator {
    font-size: 18px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.35);
    margin: 0 2px;
}

.event-date-pill {
    display: inline-flex;
    align-items: stretch;
    border-radius: 12px;
    background: transparent;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    overflow: visible;
}

.event-date-pill-left {
    position: relative;
    width: 26px;
    background: #101010;
    border: 3px solid #373a3d;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.event-date-pill-light {
    width: 16px;
    height: 16px;
    border-radius: 10px;
    background: #00c853;
    box-shadow: 0 0 6px rgba(0, 200, 83, 0.9);
}

.event-date-pill-light--start {
    background: #00c853;
    box-shadow: 0 0 6px rgba(0, 200, 83, 0.9);
    margin-top: -30px;
}

.event-date-pill-light--end {
    background: #ff1744;
    box-shadow: 0 0 6px rgba(255, 23, 68, 0.9);
    margin-top: 30px;
}

.event-date-pill-main {
    display: flex;
    text-align: center;
    flex-direction: column;
    min-width: 70px;
    border-radius: 0 12px 12px 0;
    overflow: hidden;
    margin-left: -12px;
}

.event-date-pill-top {
    display: flex;
    align-items: baseline;
    gap: 4px;
    background: #ffffff;
    padding: 4px 8px 2px 20px;
}

.event-date-day-short,
.event-date-month-short {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #d32f2f;
    letter-spacing: 0.04em;
}

.event-date-day-num {
    font-size: 18px;
    font-weight: 800;
    color: #111111;
    line-height: 1;
}

.event-date-pill-bottom {
    background: #5d5b5b;
    padding: 4px 8px 5px 20px;
}

.event-date-time {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .event-dates {
        gap: 8px;
    }

    .event-date-pill-main {
        min-width: 64px;
    }

    .event-date-day-num {
        font-size: 16px;
    }

    .event-date-time {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .pokehub-event-card .event-content {
        flex-direction: column;
    }

    .pokehub-event-card .event-thumb {
        flex: 0 0 auto;
        width: 100%;
        max-height: 180px;
        margin-top: 10px;
    }

    .pokehub-event-card .event-thumb img {
        border-radius: 0;
    }

    .pokehub-event-card .event-header,
    .pokehub-event-card .event-dates,
    .pokehub-event-card .event-meta-line,
    .pokehub-event-card .event-link {
        padding-left: 14px;
        padding-right: 14px;
    }

    .event-meta-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .event-time-info {
        text-align: left;
    }

    .event-more-button {
        position: absolute;
        right: 0px;
        bottom: 5px;
    }
}
