/* =========================================================
   ABFL EVENT STUDIO
========================================================= */

:root{
    --event-bg:#160b31;
    --event-panel:#32185b;
    --event-panel-soft:rgba(37,19,66,.76);
    --event-purple:#5e2a7e;
    --event-lavender:#cfa9ff;
    --event-paper:#fbfaff;
    --event-text:#171224;
    --event-muted:#8f82a6;
    --event-accent:#ff4fa0;
    --event-border:rgba(255,255,255,.12);
    --event-shadow:0 28px 90px rgba(0,0,0,.32);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    min-height:100vh;
    font-family:Inter,sans-serif;
    color:white;
    background:
        radial-gradient(circle at top,#6c3aa0 0%,#241246 46%,#12091f 100%);
}

/* =========================================================
   HEADER
========================================================= */

.event-studio-header{
    position:sticky;
    top:0;
    z-index:20;

    min-height:76px;

    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:28px;

    padding:0 42px;

    background:#2d1658;
    border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:0 10px 30px rgba(0,0,0,.16);
}

.event-studio-brand{
    display:flex;
    align-items:center;
    gap:14px;

    color:white;
    text-decoration:none;
}

.event-studio-brand-dot{
    width:18px;
    height:18px;

    border-radius:50%;

    background:var(--event-accent);
    box-shadow:0 0 18px rgba(255,79,160,.45);
}

.event-studio-brand span:last-child{
    display:grid;
    gap:2px;
}

.event-studio-brand strong{
    color:white;

    font-size:27px;
    font-weight:900;
    letter-spacing:-.04em;
    line-height:1;
}

.event-studio-brand small{
    color:#d8c8ef;

    font-size:11px;
    font-weight:800;
}

.event-studio-nav{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:28px;
}

.event-studio-nav a{
    color:white;
    text-decoration:none;

    font-size:15px;
    font-weight:900;

    transition:.2s ease;
}

.event-studio-nav a:hover{
    color:var(--event-accent);
}

.event-studio-add-link{
    min-height:44px;

    display:inline-flex;
    align-items:center;

    padding:0 22px;

    border:1px solid rgba(207,169,255,.42);
    border-radius:999px;

    background:rgba(255,255,255,.06);
    color:var(--event-accent) !important;
}

.event-studio-auth{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:18px;
}

.event-studio-auth a{
    color:white;
    text-decoration:none;

    font-size:15px;
    font-weight:900;
}

.event-studio-signup{
    min-height:48px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:0 26px;

    border-radius:999px;

    background:var(--event-accent);
    box-shadow:0 12px 28px rgba(255,79,160,.24);
}

/* =========================================================
   PAGE
========================================================= */

.event-studio-shell{
    width:min(1440px,100%);
    margin:0 auto;
    padding:58px 32px 100px;
}

.event-studio-hero{
    display:grid;
    grid-template-columns:1fr 360px;
    gap:28px;
    align-items:stretch;

    margin-bottom:32px;
}

.event-studio-kicker,
.event-preview-kicker{
    display:inline-flex;

    width:max-content;

    margin-bottom:16px;
    padding:8px 14px;

    border-radius:999px;

    background:rgba(255,255,255,.1);
    color:var(--event-lavender);

    font-size:12px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.event-studio-hero h1{
    max-width:850px;

    font-family:Georgia,"Times New Roman",serif;
    font-size:70px;
    line-height:.96;
    letter-spacing:-.055em;
}

.event-studio-hero p{
    max-width:760px;

    margin-top:18px;

    color:#d8c8ef;

    font-size:18px;
    line-height:1.65;
}

.event-studio-hero-card{
    padding:28px;

    border:1px solid var(--event-border);
    border-radius:28px;

    background:var(--event-panel-soft);
    box-shadow:var(--event-shadow);
}

.event-studio-hero-card span{
    display:block;

    margin-bottom:10px;

    color:var(--event-lavender);

    font-size:12px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.event-studio-hero-card strong{
    display:block;

    color:white;

    font-family:Georgia,"Times New Roman",serif;
    font-size:31px;
    line-height:1.05;
}

.event-studio-hero-card code{
    padding:2px 6px;

    border-radius:8px;

    background:rgba(255,255,255,.12);
    color:white;
}

/* =========================================================
   LAYOUT
========================================================= */

.event-studio-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 390px;
    gap:28px;
    align-items:start;
}

.event-studio-form{
    display:grid;
    gap:22px;
}

.event-panel{
    padding:28px;

    border:1px solid var(--event-border);
    border-radius:30px;

    background:var(--event-panel-soft);
    box-shadow:0 20px 70px rgba(0,0,0,.2);
}

.event-panel-heading{
    display:flex;
    gap:16px;
    align-items:flex-start;

    margin-bottom:22px;
}

.event-panel-heading > span{
    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;

    border-radius:16px;

    background:var(--event-accent);
    color:white;

    font-size:13px;
    font-weight:900;

    box-shadow:0 12px 28px rgba(255,79,160,.24);
}

.event-panel-heading h2{
    color:white;

    font-family:Georgia,"Times New Roman",serif;
    font-size:34px;
    line-height:1;
    letter-spacing:-.035em;
}

.event-panel-heading p{
    margin-top:7px;

    color:#d8c8ef;

    font-size:14px;
    line-height:1.5;
}

.event-field-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}

.event-field{
    display:grid;
    gap:8px;
}

.event-field-full{
    grid-column:1 / -1;
}

.event-field span{
    color:#e9ddff;

    font-size:13px;
    font-weight:900;
}

.event-field input,
.event-field select,
.event-field textarea{
    width:100%;

    border:1px solid rgba(255,255,255,.14);
    border-radius:18px;
    outline:none;

    background:rgba(255,255,255,.08);
    color:white;

    font:inherit;
    font-size:15px;
    font-weight:700;
}

.event-field input,
.event-field select{
    min-height:48px;
    padding:0 15px;
}

.event-field textarea{
    resize:vertical;
    min-height:130px;
    padding:14px 15px;
    line-height:1.55;
}

.event-field input::placeholder,
.event-field textarea::placeholder{
    color:rgba(255,255,255,.42);
}

.event-field select option{
    color:#171224;
}

/* =========================================================
   ACTIONS
========================================================= */

.event-action-bar{
    position:sticky;
    bottom:18px;
    z-index:10;

    display:flex;
    justify-content:flex-end;
    gap:12px;

    padding:16px;

    border:1px solid rgba(255,255,255,.12);
    border-radius:24px;

    background:rgba(30,14,56,.88);
    backdrop-filter:blur(16px);

    box-shadow:0 20px 60px rgba(0,0,0,.24);
}

.event-primary-button,
.event-secondary-button{
    min-height:48px;

    border:0;
    border-radius:999px;

    padding:0 22px;

    color:white;

    font:inherit;
    font-size:14px;
    font-weight:900;

    cursor:pointer;
}

.event-primary-button{
    background:var(--event-accent);
    box-shadow:0 12px 28px rgba(255,79,160,.24);
}

.event-secondary-button{
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.08);
}

/* =========================================================
   SIDEBAR
========================================================= */

.event-studio-sidebar{
    position:sticky;
    top:100px;

    display:grid;
    gap:18px;
}

.event-preview-card,
.event-saved-panel,
.event-debug-panel{
    padding:24px;

    border:1px solid rgba(255,255,255,.12);
    border-radius:28px;

    background:rgba(37,19,66,.78);
    box-shadow:0 20px 70px rgba(0,0,0,.2);
}

.event-preview-card{
    background:
        linear-gradient(180deg,rgba(255,255,255,.98),rgba(244,234,255,.98));
    color:var(--event-text);
}

.event-preview-card .event-preview-kicker{
    background:#ffe4f1;
    color:#9f2f68;
}

.event-preview-card h2{
    color:var(--event-text);

    font-family:Georgia,"Times New Roman",serif;
    font-size:38px;
    line-height:1.03;
    letter-spacing:-.04em;
}

.event-preview-card p{
    margin-top:10px;

    color:#6f617f;

    font-family:Georgia,"Times New Roman",serif;
    font-size:17px;
    line-height:1.5;
}

.event-preview-meta{
    display:grid;
    gap:9px;

    margin-top:18px;
}

.event-preview-meta span{
    min-height:34px;

    display:flex;
    align-items:center;

    padding:0 12px;

    border-radius:999px;

    background:#f0e3ff;
    color:#6b3c93;

    font-size:12px;
    font-weight:900;
}

.event-preview-tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;

    margin-top:18px;
}

.event-preview-tags span{
    min-height:27px;

    display:inline-flex;
    align-items:center;

    padding:0 10px;

    border-radius:999px;

    background:#fff1d8;
    color:#8a5a12;

    font-size:11px;
    font-weight:900;
}

.event-saved-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;

    margin-bottom:16px;
}

.event-saved-heading h2,
.event-debug-panel h2{
    color:white;

    font-family:Georgia,"Times New Roman",serif;
    font-size:26px;
    line-height:1;
}

.event-saved-heading button{
    width:38px;
    height:38px;

    border:1px solid rgba(255,255,255,.14);
    border-radius:14px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:rgba(255,255,255,.08);
    color:white;

    cursor:pointer;
}

.event-saved-heading svg{
    width:18px;
    height:18px;
}

.event-saved-list{
    display:grid;
    gap:10px;
}

.event-saved-empty{
    color:#d8c8ef;

    font-size:14px;
    line-height:1.5;
}

.event-saved-item{
    width:100%;

    display:grid;
    gap:6px;

    padding:14px;

    border:1px solid rgba(255,255,255,.12);
    border-radius:18px;

    background:rgba(255,255,255,.08);
    color:white;
    text-align:left;

    cursor:pointer;
}

.event-saved-item strong{
    font-size:14px;
    font-weight:900;
}

.event-saved-item span{
    color:#d8c8ef;

    font-size:12px;
    font-weight:800;
}

.event-debug-panel pre{
    max-height:320px;
    overflow:auto;

    margin-top:14px;
    padding:14px;

    border-radius:18px;

    background:rgba(0,0,0,.22);
    color:#e9ddff;

    font-size:12px;
    line-height:1.45;
    white-space:pre-wrap;
}

/* =========================================================
   TOAST
========================================================= */

.event-toast{
    position:fixed;
    right:24px;
    bottom:24px;
    z-index:50;

    max-width:340px;

    padding:14px 18px;

    border-radius:18px;

    background:#ff4fa0;
    color:white;

    font-size:14px;
    font-weight:900;

    box-shadow:0 16px 44px rgba(0,0,0,.28);

    transform:translateY(20px);
    opacity:0;
    pointer-events:none;

    transition:.22s ease;
}

.event-toast.show{
    transform:translateY(0);
    opacity:1;
}

/* =========================================================
   WORKS / REVEALS MANAGER
========================================================= */

.event-work-builder{
    display:grid;
    gap:22px;
}

.event-work-actions{
    display:flex;
    justify-content:flex-end;
    gap:12px;

    padding-top:4px;
}

.event-work-list-wrap{
    display:grid;
    gap:14px;

    padding-top:18px;

    border-top:1px solid rgba(255,255,255,.12);
}

.event-work-list-wrap h3{
    color:white;

    font-family:Georgia,"Times New Roman",serif;
    font-size:28px;
    line-height:1;
}

.event-work-list{
    display:grid;
    gap:12px;
}

.event-work-empty{
    padding:18px;

    border:1px dashed rgba(255,255,255,.18);
    border-radius:18px;

    background:rgba(255,255,255,.06);
    color:#d8c8ef;

    font-size:14px;
    line-height:1.55;
}

.event-work-item{
    display:grid;
    gap:12px;

    padding:16px;

    border:1px solid rgba(255,255,255,.12);
    border-radius:20px;

    background:rgba(255,255,255,.08);
}

.event-work-item-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
}

.event-work-item h4{
    color:white;

    font-family:Georgia,"Times New Roman",serif;
    font-size:24px;
    line-height:1.05;
}

.event-work-item p{
    margin-top:5px;

    color:#d8c8ef;

    font-size:13px;
    font-weight:800;
    line-height:1.45;
}

.event-work-chip-row{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
}

.event-work-chip-row span{
    min-height:26px;

    display:inline-flex;
    align-items:center;

    padding:0 9px;

    border-radius:999px;

    background:#f0e3ff;
    color:#6b3c93;

    font-size:10px;
    font-weight:900;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.event-work-item-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.event-work-item-actions button,
.event-work-item-actions a{
    min-height:34px;

    border:0;
    border-radius:999px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:0 12px;

    color:white;
    text-decoration:none;

    font:inherit;
    font-size:12px;
    font-weight:900;

    cursor:pointer;
}

.event-work-edit-button{
    background:#ff4fa0;
}

.event-work-remove-button{
    background:#ef4444;
}

.event-work-open-link{
    background:rgba(255,255,255,.12);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width:1120px){
    .event-studio-header{
        grid-template-columns:1fr;
        gap:18px;

        padding:18px 22px;
    }

    .event-studio-nav{
        justify-content:flex-start;
        gap:18px;

        overflow-x:auto;
        padding-bottom:4px;
    }

    .event-studio-auth{
        justify-content:flex-start;
    }

    .event-studio-hero,
    .event-studio-layout{
        grid-template-columns:1fr;
    }

    .event-studio-sidebar{
        position:static;
    }
}

@media (max-width:680px){
    .event-studio-shell{
        padding:42px 18px 90px;
    }

    .event-studio-hero h1{
        font-size:48px;
    }

    .event-field-grid{
        grid-template-columns:1fr;
    }

    .event-action-bar{
        position:static;
        flex-direction:column;
    }

    .event-primary-button,
    .event-secondary-button{
        width:100%;
    }

    .event-work-actions{
    flex-direction:column;
    }

    .event-work-actions button{
    width:100%;
    }

   .event-work-item-top{
    flex-direction:column;
   }
}

/* =========================================================
   EVENT IMAGE PREVIEW
========================================================= */

.event-preview-card{
    padding:0;
    overflow:hidden;
}

.event-preview-image{
    position:relative;
    height:180px;
    overflow:hidden;
    border-bottom:1px solid rgba(94,42,126,.12);
    background:
        radial-gradient(circle at 75% 25%,rgba(255,79,160,.26),transparent 32%),
        linear-gradient(135deg,#8a5bb0,#4b2672 55%,#2d1658);
}

.event-preview-image img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.event-preview-image-fallback{
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    align-content:center;
    gap:8px;
    color:#efe5ff;
    font-size:10px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.event-preview-image-fallback svg{
    width:34px;
    height:34px;
    color:#ff4fa0;
}

.event-preview-content{
    padding:22px 24px 24px;
}

.event-preview-card .event-preview-kicker{
    margin-bottom:12px;
}

@media (max-width:680px){
    .event-preview-image{
        height:210px;
    }
}
