/* ============================================
   Pagina Evenimente — Events Styles
   Matches old Next.js EventsWrapper layout
   ============================================ */

.page-evenimente {
    padding: 120px 0 80px;
}

.evenimente-container {
    max-width: 1308px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 1023px) {
    .evenimente-container { padding: 0 20px; }
}
@media (max-width: 767px) {
    .evenimente-container { padding: 0 15px; }
}
@media (max-width: 639px) {
    .evenimente-container { padding: 0 10px; }
}

/* ── Events list ─────────────────────────── */
.evenimente-list {
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ── Event card ──────────────────────────── */
.event-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.event-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Image column */
.event-card__image-col {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.event-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.event-card:hover .event-card__img {
    transform: scale(1.05);
}

/* Content column */
.event-card__content-col {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Title — miniMedium size */
.event-card__title {
    font-family: var(--font-display);
    font-size: calc(30px + 25 * (100vw / 1308));
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-white);
    margin: 0 0 32px;
}

/* Meta items (location, date, time) */
.event-card__meta-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.event-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
}

.event-card__meta svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

/* Bottom row: price + button */
.event-card__bottom {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 8px;
}

.event-card__price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
}

.event-card__price del {
    font-weight: 400;
    font-size: 0.875rem;
    opacity: 0.6;
    margin-left: 8px;
}

.event-card__btn {
    display: inline-block;
    width: fit-content;
    padding: 8px 16px;
    border-radius: 45px;
    border: 1px solid var(--color-white);
    background: transparent;
    color: var(--color-white);
    font-size: 14px;
    font-weight: 300;
    font-family: 'Manrope', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.event-card__btn:hover {
    background: var(--color-white);
    color: var(--color-black);
    transform: scale(1.02);
}

.event-card__btn:active {
    transform: scale(0.98);
}

/* ── Desktop: side-by-side layout ────────── */
@media (min-width: 1024px) {
    .event-card {
        flex-direction: row;
    }

    .event-card__image-col {
        width: 45%;
        height: auto;
        min-height: 350px;
    }

    .event-card__content-col {
        width: 55%;
        padding: 24px 24px 24px 32px;
        background: rgba(0, 0, 0, 0.95);
    }

    .event-card__title {
        margin-bottom: 40px;
    }

    .event-card__meta-list {
        gap: 32px;
        margin-bottom: 40px;
    }

    .event-card__bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 16px;
    }

    .event-card__price {
        font-size: 1.25rem;
    }
}

@media (min-width: 1308px) {
    .event-card__title {
        font-size: 55px;
    }
}

/* ── Empty state ─────────────────────────── */
.evenimente-empty {
    text-align: center;
    padding: 80px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
}

/* ── Single Event (old CPT template) ─────── */
.single-eveniment {
    padding: 120px 0 80px;
}

.single-eveniment__border {
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.single-eveniment__header {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.single-eveniment__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-white);
}

.single-eveniment__date-bar {
    padding: 16px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.single-eveniment__grid {
    display: grid;
    grid-template-columns: 1fr;
}

.single-eveniment__image {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.single-eveniment__image img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
}

.single-eveniment__content {
    padding: 30px;
}

.single-eveniment__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 7px;
    padding: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.single-eveniment__gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.single-eveniment__gallery-item:hover img {
    opacity: 0.8;
}

.single-eveniment__back {
    margin-top: 30px;
    text-align: center;
}

@media (min-width: 768px) {
    .single-eveniment__grid {
        grid-template-columns: 1fr 1fr;
    }

    .single-eveniment__image {
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }

    .single-eveniment__content {
        padding: 40px;
    }

    .single-eveniment__gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .single-eveniment__gallery-item img {
        height: 270px;
    }
}

/* ═══════════════════════════════════════════
   Single Event Detail Page (product-based)
   Matches old Next.js SingleEvent layout
   ═══════════════════════════════════════════ */

.single-event-page {
    padding: 80px 0;
    min-height: 100vh;
}

.single-event-container {
    max-width: 1308px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 0;
}

@media (max-width: 1023px) {
    .single-event-container { padding: 40px 20px; }
}
@media (max-width: 639px) {
    .single-event-container { padding: 20px 10px; }
}

/* ── Hero Section ──────────────────────────── */
.single-event-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
}

.single-event-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.single-event-hero:hover .single-event-hero__img {
    transform: scale(1.05);
}

.single-event-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.1) 100%);
}

.single-event-hero__title-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.single-event-hero__title {
    font-family: var(--font-display), 'Cormorant', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-white);
    margin: 0;
}

/* ── Content Grid ──────────────────────────── */
.single-event-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (min-width: 1024px) {
    .single-event-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* ── Glass Card ────────────────────────────── */
.glass-card {
    background: var(--color-black);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
    margin-bottom: 16px;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.glass-card__title {
    font-family: var(--font-display), 'Cormorant', serif;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-white);
    margin: 0 0 20px;
}

/* ── Event content ─────────────────────────── */
.event-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.7;
}

.event-content p {
    margin-bottom: 16px;
}

.event-content h2,
.event-content h3 {
    font-family: var(--font-display), 'Cormorant', serif;
    color: var(--color-white);
    margin: 24px 0 12px;
}

.event-content ul,
.event-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.event-content li {
    margin-bottom: 8px;
}

.event-content a {
    color: #818cf8;
    text-decoration: underline;
}

/* ── Includes list ─────────────────────────── */
.event-includes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-includes-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.event-includes-list li:last-child {
    border-bottom: none;
}

.event-includes-list li::before {
    content: "✓";
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.5);
}

/* ── Conditions ────────────────────────────── */
.event-conditions {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ── Sidebar detail list ───────────────────── */
.event-detail-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-family: 'Manrope', sans-serif;
}

.event-detail-item svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

/* ── Price display ─────────────────────────── */
.event-price-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
}

.event-price-display del {
    font-weight: 400;
    font-size: 1rem;
    opacity: 0.5;
    margin-left: 8px;
}

/* ── Wishlist / Add to cart button ──────────── */
.event-wishlist-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 14px 24px;
    background: var(--color-white);
    color: var(--color-black);
    border: 1px solid var(--color-white);
    border-radius: 9999px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-wishlist-btn:hover {
    background: transparent;
    color: var(--color-white);
}

.event-wishlist-btn--disabled {
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Gallery ───────────────────────────────── */
.single-event-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 32px;
}

.single-event-gallery__item {
    border-radius: 8px;
    overflow: hidden;
}

.single-event-gallery__item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.single-event-gallery__item:hover img {
    transform: scale(1.02);
    opacity: 0.85;
}

@media (min-width: 768px) {
    .single-event-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .single-event-gallery__item img {
        height: 270px;
    }
}

/* ── Back link ─────────────────────────────── */
.single-event-back {
    text-align: center;
    padding: 20px 0;
}
