/**
 * WPS Event Tabs Styling
 * Professional Design with Modern Layout
 */

.wps-event-tabs {
    width: 100%;
    display: flex;
    gap: 24px;
    padding: 70px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    margin-top: 50px;
}

body.wps-client-page .wps-page-content {
    position: relative;
}

body.wps-client-page .wps-page-content>.wps-page-header {
    padding-right: 230px;
}

.wps-event-back-button-wrap {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
}

.wps-event-back-button {
    color: #fff;
    text-decoration: none;
}

.wps-event-back-button:hover,
.wps-event-back-button:focus {
    color: #fff;
    text-decoration: none;
}

/* View Toggle Buttons - Top Right Corner */
.wps-event-tabs-view-toggle {
    position: absolute;
    top: 0px;
    right: 24px;
    display: flex;
    gap: 8px;
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.wps-view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
}

.wps-view-toggle-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.wps-view-toggle-btn.active {
    background: var(--wps-primary-color, #00a0d2);
    border-color: var(--wps-primary-color, #00a0d2);
    color: #fff;
}

.wps-view-toggle-btn i {
    font-size: 16px;
}

.wps-event-tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 16px;
    min-width: 170px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* View Toggle Buttons */
.wps-event-tabs-view-toggle {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 8px;
    background: #f8fafc;
    border-radius: 8px;
}

.wps-view-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
    font-size: 14px;
}

.wps-view-toggle-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.wps-view-toggle-btn.active {
    background: #00a0d2;
    border-color: #00a0d2;
    color: #fff;
}

.wps-view-toggle-btn i {
    font-size: 16px;
}

.wps-event-tabs-nav .wps-tab-nav {
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 14px;
    margin-right: 0;
    position: relative;
    background: transparent;
    color: #475569;
    border: 1px solid transparent;
    border-radius: 0 8px 8px 0;
}

.wps-event-tabs-nav .wps-tab-nav:hover {
    background: #f1f5f9;
    color: #1e293b;
    padding-left: 22px;
}

.wps-event-tabs-nav .wps-tab-nav.active {
    border-left-color: var(--wps-primary-color);
    background: linear-gradient(90deg, rgba(0, 160, 210, 0.1) 0%, rgba(0, 160, 210, 0.05) 100%);
    color: var(--wps-primary-color);
    padding-left: 22px;
}

.wps-event-tabs-body {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.wps-event-tab-content {
    display: none;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wps-event-tab-content.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Horizontal Layout (default) */
@media (max-width: 852px) {
    .wps-event-tabs {
        flex-direction: column;
        gap: 16px;
        padding: 12px;
    }

    .wps-event-tabs-nav {
        flex-direction: row;
        min-width: 100%;
        margin-bottom: 0;
        padding: 6px;
        gap: 6px;
        overflow-x: auto;
        position: static;
        max-height: none;
    }

    .wps-event-tabs-body {
        width: 100%;
    }
}

/* Vertical Tabs Specific Styles */
.wps-event-tabs-vertical {
    flex-direction: row;
}

.wps-event-tabs-vertical .wps-event-tabs-nav {
    flex-direction: column;
    min-width: 180px;
}

.wps-event-tabs-vertical .wps-tab-nav.active {
    border-left-width: 4px;
}

/* Base Card Styles - Default to list layout */
.wps-tab-event-card {
    display: grid;
    grid-template-columns: 160px 2fr 1.5fr 1.3fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.wps-tab-event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--wps-primary-color, #00a0d2) 0%, var(--wps-primary-color, #0077aa) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wps-tab-event-card:hover::before {
    opacity: 1;
}

.wps-tab-event-card-link:hover .wps-tab-event-card {
    box-shadow: 0 8px 30px rgba(0, 160, 210, 0.15);
    border-color: #00a0d2;
    transform: translateY(-3px);
}

/* Event Image */
.wps-tab-event-image {
    width: 160px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wps-tab-event-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wps-tab-event-card:hover .wps-tab-event-image img {
    transform: scale(1.08);
}

.wps-tab-event-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #94a3b8;
}

.wps-tab-event-placeholder i {
    font-size: 32px;
}

/* Event Details Column */
.wps-tab-event-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.wps-tab-event-title {
    margin: 8px 0 0 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wps-tab-event-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.wps-tab-event-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--wps-primary-color, #00a0d2);
    font-weight: 600;
    margin-bottom: 4px;
}

.wps-tab-event-date i {
    color: var(--wps-primary-color, #00a0d2);
    font-size: 15px;
}

.wps-tab-event-type {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    margin-top: 8px;
}

/* Location Column */
.wps-tab-event-location-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.wps-tab-location-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.wps-tab-location-name i {
    color: var(--wps-primary-color, #00a0d2);
    font-size: 14px;
}

.wps-tab-location-address {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Registration Info Column */
.wps-tab-event-registration-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 130px;
}

.wps-tab-player-count {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wps-tab-players-text {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.wps-tab-progress-bar {
    width: 100%;
    height: 7px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wps-tab-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.wps-tab-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.wps-tab-availability-text {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Actions Column */
.wps-tab-event-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 120px;
}

/* Custom Tab Events Grid Layout */
.wps-tab-events-grid {
    display: grid;
    gap: 20px;
    align-items: start;
}

/* List View (default) - horizontal cards with columns */
.wps-tab-events-grid-list {
    grid-template-columns: 1fr;
}

/* Grid View - card-based grid layout (same as raffle grid) */
.wps-tab-events-grid-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.wps-tab-events-grid-grid .wps-tab-event-card {
    display: flex !important;
    flex-direction: column !important;
    background: #fff;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    padding: 0 !important;
    gap: 0 !important;
}

.wps-tab-events-grid-grid .wps-tab-event-card::before {
    width: 100% !important;
    height: 4px !important;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, var(--wps-primary-color, #00a0d2) 0%, var(--wps-primary-color, #0077aa) 100%);
}

.wps-tab-events-grid-grid .wps-tab-event-image {
    width: 100% !important;
    height: 296px !important;
    border-radius: 0 !important;
}

.wps-tab-events-grid-grid .wps-tab-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wps-tab-events-grid-grid .wps-tab-event-card:hover .wps-tab-event-image img {
    transform: scale(1.08);
}

.wps-tab-events-grid-grid .wps-tab-event-details {
    padding: 12px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.wps-tab-events-grid-grid .wps-tab-event-date {
    padding: 12px 16px 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--wps-primary-color, #00a0d2);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.wps-tab-events-grid-grid .wps-tab-event-date i {
    color: var(--wps-primary-color, #00a0d2);
    font-size: 15px;
}

.wps-tab-events-grid-grid .wps-tab-event-title {
    margin: 0;
    padding: 4px 16px 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

.wps-tab-events-grid-grid .wps-tab-event-type {
    display: inline-block;
    padding: 4px 12px;
    margin: 0 16px 8px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

.wps-tab-events-grid-grid .wps-tab-event-location-info {
    padding: 12px 16px 12px;
    width: 100%;
}

.wps-tab-events-grid-grid .wps-tab-location-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    padding: 0px 16px 8px;
}

.wps-tab-events-grid-grid .wps-tab-location-name i {
    color: var(--wps-primary-color, #00a0d2);
    font-size: 14px;
}

.wps-tab-events-grid-grid .wps-tab-location-address {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin-top: 4px;
}

.wps-tab-events-grid-grid .wps-tab-event-registration-info {
    padding: 8px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.wps-tab-events-grid-grid .wps-tab-player-count {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0px 16px 8px;
}

.wps-tab-events-grid-grid .wps-tab-players-text {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.wps-tab-events-grid-grid .wps-tab-progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.wps-tab-events-grid-grid .wps-tab-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wps-tab-events-grid-grid .wps-tab-availability-text {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.wps-tab-events-grid-grid .wps-tab-event-actions {
    padding: 0 16px 16px;
    width: 100%;
    text-align: center;
}

.wps-tab-events-grid-grid .wps-tab-btn {
    width: 80%;
}

/* Clickable card wrapper */
.wps-tab-event-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.wps-tab-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wps-tab-event-card:hover .wps-tab-event-image img {
    transform: scale(1.08);
}

.wps-tab-event-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #94a3b8;
}

.wps-tab-event-placeholder i {
    font-size: 32px;
}

/* Event Details Column */
.wps-tab-event-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.wps-tab-event-title {
    margin: 8px 0 0 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wps-tab-event-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.wps-tab-event-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--wps-primary-color, #00a0d2);
    font-weight: 600;
    margin-bottom: 4px;
}

.wps-tab-event-date i {
    color: var(--wps-primary-color, #00a0d2);
    font-size: 15px;
}

.wps-tab-event-type {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    margin-top: 8px;
}

/* Location Column */
.wps-tab-event-location-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.wps-tab-location-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.wps-tab-location-name i {
    color: var(--wps-primary-color, #00a0d2);
    font-size: 14px;
}

.wps-tab-location-address {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Registration Info Column */
.wps-tab-event-registration-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 130px;
}

.wps-tab-player-count {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wps-tab-players-text {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.wps-tab-progress-bar {
    width: 100%;
    height: 7px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wps-tab-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.wps-tab-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.wps-tab-availability-text {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.wps-tab-waitlist-notice {
    font-size: 13px;
    font-weight: 700;
    color: #0369a1;
}

/* Actions Column */
.wps-tab-event-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 120px;
}

.wps-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.wps-tab-btn-detail {
    color: #fff;
    border: 1px solid transparent;
}

.wps-tab-btn-detail:hover {
    filter: brightness(1.1);
    border-color: #ffffff;
    transform: translateY(-1px);
}

.wps-tab-btn-register {
    background: linear-gradient(135deg, #00a0d2 0%, #0077aa 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 160, 210, 0.35);
}

.wps-tab-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 160, 210, 0.45);
}

/* No Events */
.wps-tab-no-events {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
    background: #fff;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    min-height: 300px;
}

.wps-tab-no-events-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    margin-bottom: 20px;
}

.wps-tab-no-events-icon i {
    font-size: 36px;
    color: #94a3b8;
}

.wps-tab-no-events-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.wps-tab-no-events-text {
    font-size: 14px;
    color: #64748b;
    max-width: 400px;
}

/* Load More Button */
.wps-tab-load-more-wrap {
    margin-top: 30px;
    text-align: center;
}

.wps-tab-load-more {
    padding: 14px 40px;
    background: var(--wps-primary-color, #00a0d2);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 160, 210, 0.35);
}

.wps-tab-load-more:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 160, 210, 0.45);
}

.wps-tab-load-more:active {
    transform: translateY(0);
}

.wps-tab-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .wps-event-tabs-view-toggle {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    .wps-tab-event-card {
        grid-template-columns: 140px 1.8fr 1.3fr 1.1fr auto;
        gap: 15px;
        padding: 16px;
    }

    .wps-tab-event-image {
        width: 140px;
        height: 105px;
    }

    .wps-tab-event-title {
        font-size: 18px;
    }

    .wps-tab-event-actions {
        min-width: 110px;
    }

    .wps-tab-btn {
        padding: 9px 16px;
        font-size: 12px;
    }
}

@media (max-width: 992px) {
    .wps-tab-event-card {
        grid-template-columns: 130px 1.5fr 1.2fr auto;
        gap: 15px;
        padding: 15px;
    }

    .wps-tab-event-registration-info {
        display: none;
    }

    .wps-tab-event-image {
        width: 130px;
        height: 95px;
    }
}

@media (max-width: 852px) {
    .wps-tab-events-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .wps-event-tabs-vertical .wps-event-tabs-nav {
        flex-direction: row;
    }

    .wps-tab-event-card {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
        width: 94%;
    }

    .wps-tab-event-image {
        width: 100%;
        height: 180px;
        flex-shrink: 0;
    }

    .wps-tab-event-details {
        width: 100%;
    }

    .wps-tab-event-location-info {
        width: 100%;
    }

    .wps-tab-event-registration-info {
        width: 100%;
    }

    .wps-tab-event-actions {
        width: 100%;
        flex-direction: row;
        gap: 10px;
    }

    .wps-tab-btn {
        flex: 1;
        padding: 12px;
        font-size: 14px;
    }

    .wps-tab-event-title {
        font-size: 18px;
    }

    .wps-tab-event-date {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .wps-tab-event-card {
        width: 100% !important;
    }

    .wps-event-tabs-vertical .wps-event-tabs-nav {
        flex-direction: row;
    }

    .wps-tab-events-grid-grid .wps-tab-event-details,
    .wps-tab-events-grid-grid .wps-tab-location-name,
    .wps-tab-events-grid-grid .wps-tab-player-count {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .wps-tab-events-grid-grid .wps-tab-event-title {
        padding: 4px 16px 4px !important;
    }
}

@media (max-width: 522px) {
    .wps-event-tabs-vertical .wps-event-tabs-nav {
        flex-direction: row;
    }

    .wps-event-tabs {
        flex-direction: column;
        gap: 12px;
        padding: 10px;
    }

    /* Keep tabs horizontal on small screens */
    .wps-event-tabs-nav {
        flex-direction: row;
        min-width: 100%;
        position: static;
        max-height: none;
        padding: 6px;
        gap: 4px;
        overflow-x: auto;
        width: 100%;
    }

    .wps-event-tabs-nav .wps-tab-nav {
        flex: 1;
        min-width: 80px;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-right: none;
        margin-right: 0;
        text-align: center;
        padding: 10px 8px;
        border-radius: 6px;
        white-space: nowrap;
        font-size: 12px;
    }

    .wps-event-tabs-nav .wps-tab-nav:last-child {
        border-bottom: 3px solid transparent;
    }

    .wps-event-tabs-nav .wps-tab-nav:hover {
        padding-left: 8px;
        padding-right: 8px;
    }

    .wps-event-tabs-nav .wps-tab-nav.active {
        border-left: none;
        border-bottom-color: var(--wps-primary-color);
        padding-left: 8px;
        padding-right: 8px;
        background: rgba(0, 160, 210, 0.08);
    }

    .wps-event-tabs-body {
        width: 100%;
    }

    .wps-tab-events-grid {
        gap: 14px;
    }

    .wps-tab-event-card {
        gap: 12px;
        padding: 14px;
    }

    .wps-tab-event-image {
        height: 160px;
    }

    .wps-tab-event-title {
        font-size: 16px;
    }

    .wps-tab-event-date {
        font-size: 12px;
    }

    .wps-tab-btn {
        font-size: 13px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    body.wps-client-page .wps-page-content>.wps-page-header {
        padding-right: 0;
    }

    .wps-event-back-button-wrap {
        position: static;
        display: flex;
        justify-content: flex-start;
        margin-bottom: 14px;
    }

    .wps-event-tabs {
        padding: 8px;
        gap: 12px;
    }

    .wps-tab-events-grid {
        gap: 14px;
    }

    .wps-tab-event-card {
        gap: 12px;
        padding: 14px;
    }

    .wps-tab-event-image {
        height: 160px;
    }

    .wps-tab-event-title {
        font-size: 16px;
    }

    .wps-tab-event-date {
        font-size: 12px;
    }

    .wps-tab-location-name,
    .wps-tab-location-address {
        font-size: 12px;
    }

    .wps-tab-player-count {
        gap: 6px;
    }

    .wps-tab-players-text {
        font-size: 12px;
    }

    .wps-tab-availability-text {
        font-size: 10px;
    }

    .wps-tab-waitlist-notice {
        font-size: 12px;
    }

    .wps-tab-no-events {
        padding: 40px 16px;
    }

    .wps-tab-no-events-icon {
        width: 50px;
        height: 50px;
    }

    .wps-tab-no-events-icon i {
        font-size: 24px;
    }

    .wps-tab-no-events-title {
        font-size: 16px;
    }

    .wps-tab-no-events-text {
        font-size: 12px;
    }

    .wps-tab-load-more {
        padding: 12px 28px;
        font-size: 13px;
        width: calc(100% - 24px);
    }
}

/* Winner Badge on event/raffle listing cards */
.wps-card-winner-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffe082 100%);
    border: 1px solid #ffd54f;
    color: #7a5200;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wps-tab-events-grid-grid .wps-card-winner-badge {
    margin: 0px 8px !important;
}
