/* EventSika — Détail public des événements.
   Styles de base, composants, thèmes et responsive.
   Charger après style.css.
*/

.public-event-detail {
    min-height: 100vh;
    background: radial-gradient(circle at 15% 20%,

            rgba(99, 102, 241, 0.08),

            transparent 30%),

        radial-gradient(circle at 85% 50%,

            rgba(139, 92, 246, 0.07),

            transparent 30%),

        #070b1a;
    color: #ffffff;
}

.event-detail-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #0b1020;
}

.event-detail-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.event-detail-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.event-detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,

            rgba(7, 11, 26, 0.35) 0%,

            rgba(7, 11, 26, 0.65) 45%,

            rgba(7, 11, 26, 0.98) 100%),

        linear-gradient(90deg,

            rgba(7, 11, 26, 0.85),

            rgba(7, 11, 26, 0.25));
}

.event-detail-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 120px;
    padding-bottom: 55px;
}

.event-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease,

        transform 0.2s ease;
}

.event-detail-back:hover {
    color: #ffffff;
    transform: translateX(-3px);
}

.event-detail-category {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 15px;
    padding: 7px 12px;
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 30px;
    background: rgba(139, 92, 246, 0.12);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #c4b5fd;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.event-detail-hero h1 {
    max-width: 850px;
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.event-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.event-detail-meta span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #cbd5e1;
    font-size: 12px;
}

.event-detail-meta i {
    color: #a78bfa;
}

.event-detail-content {
    position: relative;
    padding: 55px 0 80px;
}

.event-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.event-detail-main {
    min-width: 0;
}

.event-detail-image {
    width: 100%;
    height: 420px;
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    background: #0d1325;
}

.event-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-detail-image:hover img {
    transform: scale(1.025);
}

.event-detail-section {
    margin-bottom: 25px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.event-detail-label {
    display: block;
    margin-bottom: 7px;
    color: #8b5cf6;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.event-detail-section h2 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
}

.event-detail-description {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.9;
}

.event-detail-description p {
    margin-top: 0;
    margin-bottom: 15px;
}

.event-detail-description p:last-child {
    margin-bottom: 0;
}

.event-detail-section>p {
    color: #64748b;
    font-size: 13px;
}

.event-detail-video {
    display: block;
    width: 100%;
    max-height: 500px;
    border-radius: 14px;
    background: #000000;
    outline: none;
}

.event-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.event-detail-card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: linear-gradient(145deg,

            rgba(255, 255, 255, 0.045),

            rgba(255, 255, 255, 0.018));
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.event-detail-card h3 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 17px;
}

.event-info-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.event-info-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.event-info-item>i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 11px;
    background: rgba(99, 102, 241, 0.10);
    color: #a78bfa;
    font-size: 14px;
}

.event-info-item div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.event-info-item span {
    color: #64748b;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

.event-info-item strong {
    overflow: hidden;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
}

.event-ticket-card {
    position: relative;
    overflow: hidden;
}

.event-ticket-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.12);
    filter: blur(30px);
    pointer-events: none;
}

.event-ticket-card>* {
    position: relative;
    z-index: 1;
}

.public-ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.2s ease,

background 0.2s ease,

        transform 0.2s ease;
}

.public-ticket:hover {
    border-color: rgba(139, 92, 246, 0.25);
    background: rgba(139, 92, 246, 0.05);
    transform: translateY(-1px);
}

.public-ticket>div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.public-ticket>div span {
    color: #94a3b8;
    font-size: 10px;
}

.public-ticket>div strong {
    color: #ffffff;
    font-size: 16px;
}

.public-ticket-stock {
    flex-shrink: 0;
    padding: 5px 8px;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.08);
    color: #4ade80;
    font-size: 8px;
    font-weight: 700;
}

.event-reservation-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 13px 18px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(135deg,

            #6366f1,

            #8b5cf6);
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.20);
    transition: transform 0.2s ease,

        box-shadow 0.2s ease,

        filter 0.2s ease;
}

.event-reservation-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.30);
    filter: brightness(1.08);
}

.event-reservation-button:active {
    transform: translateY(0);
}

.event-no-ticket {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px dashed rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.event-no-ticket i {
    color: #64748b;
    font-size: 18px;
}

.event-no-ticket p {
    margin: 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.5;
}

@media (max-width: 1000px) {
    .event-detail-layout {
        grid-template-columns: 1fr;
    }

    .event-detail-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-detail-image {
        height: 360px;
    }
}

@media (max-width: 700px) {
    .event-detail-hero {
        min-height: 390px;
    }

    .event-detail-hero-content {
        padding-top: 100px;
        padding-bottom: 35px;
    }

    .event-detail-hero h1 {
        font-size: 34px;
        letter-spacing: -0.8px;
    }

    .event-detail-meta {
        flex-direction: column;
        gap: 9px;
    }

    .event-detail-content {
        padding: 30px 0 55px;
    }

    .event-detail-image {
        height: 250px;
        border-radius: 15px;
    }

    .event-detail-section {
        padding: 20px;
        border-radius: 15px;
    }

    .event-detail-section h2 {
        font-size: 18px;
    }

    .event-detail-sidebar {
        display: flex;
        flex-direction: column;
    }

    .event-detail-card {
        padding: 20px;
    }
}

@media (max-width: 450px) {
    .event-detail-hero {
        min-height: 360px;
    }

    .event-detail-hero h1 {
        font-size: 29px;
    }

    .event-detail-image {
        height: 210px;
    }

    .public-ticket {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-ticket-stock {
        align-self: flex-start;
    }
}

.event-reservation {
    max-width: 650px;
    margin: 45px auto;
    padding: 35px;
    background: linear-gradient(145deg,

            #111827,

            #1e1b4b);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.15);
}

.event-reservation h2 {
    color: #ffffff;
    font-size: 25px;
    font-weight: 700;
    margin: 0 0 12px;
}

.event-reservation>p {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 25px;
}

.reservation-form .ticket-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reservation-form .ticket-form-group label {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
}

.reservation-form .dashboard-form-control {
    width: 100%;
    padding: 15px 16px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 11px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.reservation-form .dashboard-form-control:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.reservation-form select {
    cursor: pointer;
}

.reservation-form select option {
    background: #111827;
    color: white;
}

.reservation-form .dashboard-create-event,
.event-reservation>.dashboard-create-event {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px 25px;
    background: linear-gradient(135deg,

            #8b5cf6,

            #6366f1);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.reservation-form .dashboard-create-event:hover,
.event-reservation>.dashboard-create-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

@media (max-width: 768px) {
    .event-reservation {
        margin: 25px 15px;
        padding: 24px 20px;
        border-radius: 16px;
    }

    .event-reservation h2 {
        font-size: 21px;
    }

    .reservation-form .dashboard-create-event {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .event-reservation {
        padding: 20px 15px;
    }

    .reservation-form {
        gap: 17px;
    }

    .reservation-form .dashboard-form-control {
        padding: 13px;
    }
}

html[data-theme="light"] .public-event-detail {
    background: radial-gradient(circle at 15% 20%, rgba(99, 102, 241, .06), transparent 30%), #f5f7fc;
    color: #172033;
}

html[data-theme="light"] .event-detail-content {
    color: #172033;
}

html[data-theme="light"] .event-detail-section,
html[data-theme="light"] .event-detail-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .06);
}

html[data-theme="light"] .event-detail-image {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

html[data-theme="light"] .event-detail-section h2,
html[data-theme="light"] .event-detail-card h3,
html[data-theme="light"] .event-info-item strong,
html[data-theme="light"] .public-ticket>div strong {
    color: #172033;
}

html[data-theme="light"] .event-detail-description,
html[data-theme="light"] .event-detail-description p,
html[data-theme="light"] .event-detail-section>p,
html[data-theme="light"] .event-info-item span,
html[data-theme="light"] .public-ticket>div span,
html[data-theme="light"] .event-no-ticket p {
    color: #475569;
}

html[data-theme="light"] .event-info-item {
    border-bottom-color: #e2e8f0;
}

html[data-theme="light"] .event-info-item>i {
    background: #ede9fe;
    color: #7c3aed;
}

html[data-theme="light"] .public-ticket {
    background: #f8fafc;
    border-color: #e2e8f0;
}

html[data-theme="light"] .public-ticket:hover {
    background: #f3efff;
    border-color: #c4b5fd;
}

html[data-theme="light"] .public-ticket-stock {
    background: #dcfce7;
    color: #166534;
}

html[data-theme="light"] .event-no-ticket {
    background: #f8fafc;
    border-color: #cbd5e1;
}

html[data-theme="light"] .event-reservation {
    background: linear-gradient(145deg, #f8faff, #f1efff);
    border-color: #ddd6fe;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

html[data-theme="light"] .event-reservation h2 {
    color: #172033;
}

html[data-theme="light"] .event-reservation>p,
html[data-theme="light"] .reservation-form .ticket-form-group label {
    color: #334155;
}

html[data-theme="light"] .reservation-form .dashboard-form-control,
html[data-theme="light"] .reservation-form select,
html[data-theme="light"] .reservation-form input {
    background: #ffffff;
    color: #172033;
    border: 1px solid #cbd5e1;
    color-scheme: light;
}

html[data-theme="light"] .reservation-form select option {
    background: #ffffff;
    color: #172033;
}

html[data-theme="light"] .reservation-form .dashboard-form-control:focus,
html[data-theme="light"] .reservation-form select:focus,
html[data-theme="light"] .reservation-form input:focus {
    border-color: #8b5cf6;
    outline: none;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .12);
}

html[data-theme="light"] .reservation-form .dashboard-create-event,
html[data-theme="light"] .event-reservation>.dashboard-create-event {
    color: #ffffff;
}

html[data-theme="light"] .event-detail-hero {
    background: #e9edf8;
}

html[data-theme="light"] .event-detail-background img {
    filter: brightness(1.12) saturate(1.08);
}

html[data-theme="light"] .event-detail-overlay {
    background: linear-gradient(

            90deg,

            rgba(8, 15, 35, 0.72) 0%,

            rgba(8, 15, 35, 0.38) 45%,

            rgba(8, 15, 35, 0.08) 100%

        ),

        linear-gradient(

            180deg,

            rgba(8, 15, 35, 0.08) 0%,

            rgba(8, 15, 35, 0.12) 55%,

            rgba(8, 15, 35, 0.42) 100%

        );
}

html[data-theme="light"] .event-detail-hero h1 {
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .event-detail-back,
html[data-theme="light"] .event-detail-meta span {
    color: #ffffff;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
}

html[data-theme="light"] .event-detail-meta i {
    color: #ddd6fe;
}

html[data-theme="light"] .event-detail-category {
    background: rgba(49, 28, 105, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
