/* ==========================================================================
   Smile Events Pro — Premium Frontend
   Netflix-style cards / SaaS UI / Dark mode default
   ========================================================================== */

:root {
    --sep-bg:            #0a0a0f;
    --sep-surface:       #141420;
    --sep-surface-hover: #1c1c2e;
    --sep-border:        rgba(255, 255, 255, 0.06);
    --sep-text:          #e8e8ed;
    --sep-text-muted:    #8a8a9a;
    --sep-heading:       #ffffff;
    --sep-accent:        #e35a2b;
    --sep-accent-glow:   rgba(227, 90, 43, 0.35);
    --sep-gold:          #f5a623;
    --sep-live-red:      #ef4444;
    --sep-upcoming:      #f59e0b;
    --sep-past:          #6b7280;
    --sep-radius:        12px;
    --sep-radius-sm:     8px;
    --sep-shadow:        0 4px 24px rgba(0, 0, 0, 0.4);
    --sep-shadow-hover:  0 8px 40px rgba(0, 0, 0, 0.6), 0 0 24px var(--sep-accent-glow);
    --sep-font-heading:  'DM Serif Display', Georgia, serif;
    --sep-font-body:     'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --sep-transition:    0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   Grid
   ========================================================================== */

.sep-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 16px 0;
}

@media (max-width: 1100px) {
    .sep-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .sep-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 480px) {
    .sep-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Event Card
   ========================================================================== */

.sep-card {
    display: flex;
    flex-direction: column;
    background: var(--sep-surface);
    border: 1px solid var(--sep-border);
    border-radius: var(--sep-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--sep-text);
    transition: transform var(--sep-transition), box-shadow var(--sep-transition), border-color var(--sep-transition);
    position: relative;
}

.sep-card:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: var(--sep-shadow-hover);
    border-color: rgba(227, 90, 43, 0.25);
    z-index: 2;
}

.sep-card:focus {
    outline: 2px solid var(--sep-accent);
    outline-offset: 2px;
}

/* Card Image */
.sep-card__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--sep-surface-hover);
}

.sep-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--sep-transition), filter var(--sep-transition);
}

.sep-card:hover .sep-card__image img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.sep-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--sep-surface) 0%, var(--sep-surface-hover) 100%);
}

.sep-card__image .sep-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
}

/* Card Body */
.sep-card__body {
    padding: 16px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sep-card__title {
    font-family: var(--sep-font-heading);
    font-size: 18px;
    font-weight: 400;
    color: var(--sep-heading);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sep-card__date {
    font-family: var(--sep-font-body);
    font-size: 13px;
    color: var(--sep-text-muted);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Badges
   ========================================================================== */

.sep-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-family: var(--sep-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.sep-badge--live {
    background: rgba(239, 68, 68, 0.15);
    color: var(--sep-live-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.sep-badge--upcoming {
    background: rgba(245, 158, 11, 0.12);
    color: var(--sep-upcoming);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.sep-badge--past {
    background: rgba(107, 114, 128, 0.15);
    color: var(--sep-past);
    border: 1px solid rgba(107, 114, 128, 0.25);
}

/* Pulsing live dot */
.sep-badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sep-live-red);
    animation: sep-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 6px var(--sep-live-red);
}

@keyframes sep-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.4); }
}

/* ==========================================================================
   Live Event Banner
   ========================================================================== */

.sep-live-banner {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--sep-radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--sep-surface);
}

.sep-live-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.85) 0%, rgba(10, 10, 15, 0.5) 100%);
}

.sep-live-banner__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 48px 32px;
    max-width: 640px;
}

.sep-live-banner__title {
    font-family: var(--sep-font-heading);
    font-size: clamp(28px, 4vw, 48px);
    color: var(--sep-heading);
    margin: 16px 0 24px;
    line-height: 1.2;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.sep-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--sep-font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--sep-transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
}

.sep-btn--primary {
    background: var(--sep-accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(227, 90, 43, 0.3);
}

.sep-btn--primary:hover {
    background: #cc4e22;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(227, 90, 43, 0.45);
    color: #fff;
    text-decoration: none;
}

.sep-btn--live {
    background: var(--sep-live-red);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
    animation: sep-btn-glow 2s ease-in-out infinite;
}

@keyframes sep-btn-glow {
    0%, 100% { box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3); }
    50%      { box-shadow: 0 4px 28px rgba(239, 68, 68, 0.55); }
}

.sep-btn--live:hover {
    background: #dc2626;
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   Single Event Page
   ========================================================================== */

.sep-single-event {
    background: var(--sep-bg);
    color: var(--sep-text);
    font-family: var(--sep-font-body);
    min-height: 100vh;
}

/* Hero */
.sep-single__hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.sep-single__hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}

.sep-single__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--sep-bg) 0%, rgba(10, 10, 15, 0.6) 50%, rgba(10, 10, 15, 0.3) 100%);
}

.sep-single__hero-content {
    position: relative;
    z-index: 1;
    padding: 64px 48px 48px;
    max-width: 800px;
}

.sep-single__title {
    font-family: var(--sep-font-heading);
    font-size: clamp(32px, 5vw, 56px);
    color: var(--sep-heading);
    margin: 16px 0 8px;
    line-height: 1.15;
}

.sep-single__subtitle {
    font-size: 18px;
    color: var(--sep-text-muted);
    margin: 0 0 20px;
    font-weight: 400;
}

.sep-single__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
}

.sep-single__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--sep-text-muted);
    font-weight: 500;
}

.sep-single__meta-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--sep-accent);
}

/* Body */
.sep-single__body {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 48px 80px;
}

.sep-single__content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--sep-text);
}

.sep-single__content h2,
.sep-single__content h3 {
    font-family: var(--sep-font-heading);
    color: var(--sep-heading);
    margin-top: 40px;
}

/* Speakers */
.sep-single__speakers {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid var(--sep-border);
}

.sep-section-heading {
    font-family: var(--sep-font-heading);
    font-size: 28px;
    color: var(--sep-heading);
    margin: 0 0 32px;
}

/* ==========================================================================
   Single Event Embed (shortcode)
   ========================================================================== */

.sep-single-embed {
    background: var(--sep-surface);
    border: 1px solid var(--sep-border);
    border-radius: var(--sep-radius);
    overflow: hidden;
    max-width: 720px;
}

.sep-single-embed__banner {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.sep-single-embed__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sep-single-embed__banner .sep-badge {
    position: absolute;
    top: 16px;
    left: 16px;
}

.sep-single-embed__body {
    padding: 28px 32px 32px;
}

.sep-single-embed__title {
    font-family: var(--sep-font-heading);
    font-size: 26px;
    color: var(--sep-heading);
    margin: 0 0 8px;
}

.sep-single-embed__subtitle {
    font-size: 15px;
    color: var(--sep-text-muted);
    margin: 0 0 16px;
}

.sep-single-embed__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--sep-text-muted);
    font-weight: 500;
    margin-bottom: 20px;
}

.sep-single-embed__content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--sep-text);
    margin-bottom: 24px;
}

.sep-single-embed__speakers {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--sep-border);
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.sep-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--sep-text-muted);
    font-family: var(--sep-font-body);
    font-size: 15px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .sep-single__hero { min-height: 360px; }
    .sep-single__hero-content { padding: 40px 24px 32px; }
    .sep-single__body { padding: 32px 24px 64px; }
    .sep-live-banner { min-height: 280px; }
    .sep-live-banner__content { padding: 32px 20px; }
    .sep-single-embed__body { padding: 20px 24px 24px; }
}
