/* ================================================================
   PHANGAN EVENTS WIDGET — phangan-events-widget.css
   Matches featured-events.html approved design exactly.
================================================================ */

.phev-widget,
.phev-widget * { box-sizing: border-box; margin: 0; padding: 0; }

.phev-widget {
    padding: 20px 0 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: transparent;
}

.phev-widget .phev-lbl {
    display: block;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    margin-bottom: 6px;
}

.phev-widget .phev-ttl {
    display: block;
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
    border: none;
    padding: 0;
}

.phev-widget .phev-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Card */
.phev-widget .phev-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #111;
}

.phev-widget .phev-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

/* Full-card transparent link */
.phev-widget .phev-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
}

/* Gradient overlay */
.phev-widget .phev-ov {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(to top, rgba(0,0,0,.93) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    gap: 3px;
    pointer-events: none;
}

/* Category pill */
.phev-widget .phev-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,.12);
    border: .5px solid rgba(255,255,255,.28);
    color: rgba(255,255,255,.9);
    font-size: 10px;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: .07em;
    text-transform: uppercase;
}

/* Name + date row — mobile: stacked */
.phev-widget .phev-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 1px;
}

.phev-widget .phev-name {
    display: block !important;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .03em;
    order: 1;
    margin: 0;
    padding: 0;
}

.phev-widget .phev-date {
    display: block !important;
    font-size: 10px;
    color: orange;
    line-height: 1.3;
    order: 2;
    margin: 0;
    padding: 0;
}

/* Venue — below date, uppercase */
.phev-widget .phev-row .phev-loc {
    display: block !important;
    font-size: 10px;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    line-height: 1.3;
    order: 3;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* View all link */
.phev-widget .phev-all {
    display: block;
    text-align: center;
    margin-top: 14px;
    padding: 11px;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    font-size: 13px;
    font-family: inherit;
}

.phev-widget .phev-all:hover {
    color: rgba(255,255,255,.85);
}

/* Empty state */
.phev-widget .phev-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px 0;
    font-size: 13px;
    color: rgba(255,255,255,.4);
}

/* ── Light skin ─────────────────────────────────────────────── */
.phev-widget.phev-light .phev-lbl {
    color: rgba(0,0,0,.4);
}

.phev-widget.phev-light .phev-ttl {
    color: #1a1a1a;
}

.phev-widget.phev-light .phev-all {
    color: rgba(0,0,0,.45);
}

.phev-widget.phev-light .phev-all:hover {
    color: rgba(0,0,0,.85);
}

.phev-widget.phev-light .phev-empty {
    color: rgba(0,0,0,.35);
}

/* Desktop */
@media (min-width: 768px) {
    .phev-widget { padding: 32px 24px 40px; }
    .phev-widget .phev-ttl { font-size: 28px; margin-bottom: 20px; }
    .phev-widget .phev-grid { grid-template-columns: repeat(4, 1fr); }
    .phev-widget .phev-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; }
    .phev-widget .phev-name { flex: 1; min-width: 0; order: 1; }
    .phev-widget .phev-date { width: 100%; order: 2; margin-top: 1px; }
    .phev-widget .phev-loc  { width: 100%; order: 3; }
}


/* ══════════════════════════════════════════════════════════════
   SLIDER MODE  [phangan_events slider="yes"]
══════════════════════════════════════════════════════════════ */

/* Wrapper holds slider + arrows */
.phev-widget .phev-slider-wrap {
    position: relative;
}

/* Scrollable strip */
.phev-widget .phev-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
}

.phev-widget .phev-slider::-webkit-scrollbar {
    display: none;
}

/* Each card fills 100% of the strip width */
.phev-widget .phev-slider .phev-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    border-radius: 14px;
}

/* ── Arrow buttons ─────────────────────────────────────────── */
.phev-widget .phev-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 1px;
    transition: opacity .2s, background .2s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.phev-widget .phev-arrow:hover {
    background: rgba(0,0,0,.75);
}

.phev-widget .phev-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

.phev-widget .phev-prev { left: 12px; }
.phev-widget .phev-next { right: 12px; }

/* Light skin arrows */
.phev-widget.phev-light .phev-arrow {
    background: rgba(255,255,255,.75);
    border-color: rgba(0,0,0,.12);
    color: #222;
}

.phev-widget.phev-light .phev-arrow:hover {
    background: rgba(255,255,255,.95);
}

/* ── Dot indicators ────────────────────────────────────────── */
.phev-widget .phev-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
}

.phev-widget .phev-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    cursor: pointer;
    transition: background .25s, transform .25s;
    flex-shrink: 0;
}

.phev-widget .phev-dot.phev-dot-active {
    background: orange;
    transform: scale(1.35);
}

/* Light skin dots */
.phev-widget.phev-light .phev-dot {
    background: rgba(0,0,0,.18);
}

.phev-widget.phev-light .phev-dot.phev-dot-active {
    background: #d46500;
}
