/* App-specific additions on top of the Soho theme. Accent: #ef969a */

:root {
    --accent: #ef969a;
    --accent-dark: #d97c80;
    --dark: #1d1e1f;
    --muted: #7e7f81;
    --border: #e4e7e9;
}

/* Header */
.logo.text_logo {
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 20px;
    text-transform: uppercase;
    text-decoration: none;
}
.logout_form { margin: 0; }
.logout_form button {
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-transform: inherit;
    width: 100%;
    text-align: inherit;
}
.menu .sub-menu li .logout_form button {
    display: block;
    padding: 9px 21px 10px;
    color: #c8c9cc;
    font-size: 12px;
}
.menu .sub-menu li .logout_form button:hover { color: var(--accent); }

/* Page heading */
.page_heading {
    padding: 30px 20px 20px 10px;
}
.page_heading h1 {
    font-size: 28px;
    line-height: 34px;
    font-weight: 900;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.page_heading p { margin: 0; color: var(--muted); }
.back_link {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
}
.back_link:hover { color: var(--accent); }
.event_description { max-width: 760px; margin-top: 10px !important; }
.event_actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }

.shortcode_button,
a.shortcode_button,
button.shortcode_button {
    border: 0;
    cursor: pointer;
    padding: 11px 22px;
    margin: 0;
    line-height: 16px;
    font-weight: 900;
    background: var(--accent);
    color: #fff;
}
.shortcode_button:hover,
a.shortcode_button:hover { background: var(--accent-dark); color: #fff; }
.shortcode_button.btn_secondary:hover { background: #3f4041; }
.shortcode_button.btn_secondary,
.small_button.btn_secondary {
    background: #474747;
}
.small_button {
    background: var(--accent);
    border: 0;
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
    font: 700 11px/1 Roboto, sans-serif;
    padding: 8px 12px;
    text-transform: uppercase;
}
.small_button:hover { background: var(--accent-dark); }

/* Flash messages */
.flash_message {
    margin: 15px 20px 0 10px;
    padding: 12px 16px;
    border-radius: 3px;
    font-size: 13px;
    line-height: 20px;
}
.flash_success { background: #e8f5e9; color: #2e6b33; }
.flash_error { background: #fdecec; color: #a33a3a; }
.auth_box .flash_message,
.panel .flash_message,
.upload_panel .flash_message { margin: 0 0 16px; }

/* Empty state */
.empty_state {
    padding: 60px 20px;
    text-align: center;
    color: var(--muted);
}

/* Albums */
.album_cover { position: relative; display: block; }
.album_placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 2;
    background: #2e3032;
    color: #5c5f62;
    font-size: 48px;
}
.access_badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 2px;
    font-size: 10px;
    line-height: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: #474747;
}
.album_cover .access_badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
}
.access_badge.access_manage { background: var(--accent); }

/* Event gallery */
.event_gallery .gallery_item_wrapper { position: relative; background: #2e3032; }
.event_gallery .gallery_item_wrapper img { display: block; width: 100%; height: auto; }
.event_gallery .is_video .featured_items_ico { background-position: center; }
.video_badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 11px;
    line-height: 16px;
    pointer-events: none;
}
.media_placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    color: #a1a2a4;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.media_toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 2px 0;
    font-size: 11px;
    line-height: 16px;
}
.media_toolbar form { margin: 0; }
.media_meta {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
}
.media_action {
    background: none;
    border: 0;
    padding: 0;
    color: #3f4041;
    cursor: pointer;
    font: 700 11px/16px Roboto, sans-serif;
    text-decoration: none;
    text-transform: uppercase;
}
.media_action:hover { color: var(--accent); }
.media_delete:hover { color: #c0392b; }

.mfp-inline-holder .mfp-content { width: auto; }
.video_popup {
    position: relative;
    width: min(92vw, 1100px);
    margin: 0 auto;
}
.video_popup video {
    display: block;
    width: 100%;
    max-height: 85vh;
    background: #000;
}

/* Upload */
.upload_panel {
    margin: 0 20px 20px 10px;
    padding: 20px;
    background: #f4f5f6;
    border: 1px solid var(--border);
}
.upload_panel[hidden] { display: none; }
.upload_drop {
    display: block;
    padding: 22px;
    border: 2px dashed #c8cacc;
    background: #fff;
    cursor: pointer;
    text-align: center;
    margin-bottom: 14px;
}
.upload_drop input { display: block; margin: 0 auto 10px; }
.upload_hint { display: block; color: var(--muted); font-size: 12px; }
.upload_selected { display: block; margin-top: 6px; font-size: 12px; color: #3f4041; word-break: break-word; }
.upload_progress {
    height: 20px;
    margin-bottom: 14px;
    background: #e4e7e9;
    border-radius: 3px;
    overflow: hidden;
}
.upload_progress[hidden] { display: none; }
.upload_progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
    transition: width 200ms;
}

/* Content pages (viewers, account) */
.site_wrapper .container { max-width: 1170px; padding: 0 15px; box-sizing: border-box; }
.site_wrapper .page_heading { padding-left: 0; padding-right: 0; }
.panel {
    margin-bottom: 30px;
    padding: 24px;
    border: 1px solid var(--border);
    background: #fff;
}
.panel_title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.panel_text { color: var(--muted); margin: 0 0 16px; }
.app_form { max-width: 520px; }
.app_form label,
.auth_form label {
    display: block;
    margin: 0 0 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #3f4041;
}
.app_form input[type=email],
.app_form input[type=text],
.app_form input[type=password],
.auth_form input[type=email],
.auth_form input[type=text],
.auth_form input[type=password] {
    display: block;
    width: 100%;
    height: 38px;
    margin: 0 0 16px;
    padding: 0 12px;
    border: 1px solid #d5d8da;
    border-radius: 2px;
    background: #fff;
    box-sizing: border-box;
    font: 13px Roboto, sans-serif;
    color: #3f4041;
}
.app_form input:focus,
.auth_form input:focus { border-color: var(--accent); outline: none; }
.event_checkboxes {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}
.event_checkboxes legend {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #3f4041;
}
.event_checkboxes label {
    display: block;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 6px;
    cursor: pointer;
}
.table_wrap { overflow-x: auto; }
.access_table { width: 100%; border-collapse: collapse; font-size: 13px; }
.access_table th,
.access_table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}
.access_table th {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #3f4041;
    white-space: nowrap;
}
.access_table td.center { text-align: center; }
.access_table td form { margin: 0; }
.muted { color: var(--muted); font-size: 12px; }

/* Auth pages (login, password reset, invitation) */
body.auth_page { background: var(--dark); }
.auth_bg { background: radial-gradient(ellipse at top, #3a3c3f 0%, #1d1e1f 55%, #111 100%); }
.auth_page .cs_fadder { background: rgba(0, 0, 0, 0.35); }
.auth_page .cs_fadder { z-index: 0; }
.auth_wrapper {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    box-sizing: border-box;
}
.auth_logo {
    margin-bottom: 26px;
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-align: center;
}
.auth_box {
    width: 100%;
    max-width: 400px;
    padding: 32px;
    background: #fff;
    box-sizing: border-box;
}
.auth_title {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
}
.auth_text { margin: 0 0 18px; color: var(--muted); }
.auth_form .auth_checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
    margin-bottom: 18px;
}
.auth_form .shortcode_button { display: block; width: 100%; text-align: center; margin: 0; }
.auth_link {
    display: block;
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}
.auth_link:hover { color: var(--accent); }

@media only screen and (max-width: 760px) {
    .page_heading h1 { font-size: 22px; line-height: 28px; }
    .panel { padding: 16px; }
}

/* MS-Media logo (SVG) */
.ms_logo { display: block; height: auto; }
.logo.text_logo { padding-top: 13px; padding-bottom: 13px; }
.logo.text_logo .ms_logo { width: 150px; }
.auth_logo .ms_logo { width: 240px; margin: 0 auto; }
.app_form textarea,
.app_form input[type=date],
.app_form input[type=file] {
    display: block;
    width: 100%;
    margin: 0 0 16px;
    box-sizing: border-box;
    font: 13px Roboto, sans-serif;
    color: #3f4041;
}
.app_form textarea,
.app_form input[type=date] {
    padding: 10px 12px;
    border: 1px solid #d5d8da;
    border-radius: 2px;
    background: #fff;
}
.app_form input[type=date] { height: 38px; padding-top: 0; padding-bottom: 0; }
.app_form textarea:focus,
.app_form input[type=date]:focus { border-color: var(--accent); outline: none; }
.app_form input[type=file] { margin-bottom: 6px; }
.field_hint { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.cover_preview { margin-bottom: 10px; }
.cover_preview img { display: block; max-width: 260px; height: auto; margin-bottom: 8px; }
.cover_preview .auth_checkbox { display: flex; gap: 8px; align-items: center; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 13px; }
.page_heading .event_actions { margin-top: 14px; }
.album_cover .access_badge { display: inline-block; }
.theme_list { list-style: none; margin: 0; padding: 0; }
.theme_list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.theme_list li:last-child { border-bottom: 0; }
.theme_list li:before { display: none; }
.theme_list a { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; text-decoration: none; color: #3f4041; }
.theme_list a:hover code { color: var(--accent); }
.theme_list code, .page_heading code { font: 700 13px/1.4 Menlo, Consolas, monospace; color: #1d1e1f; }
.theme_list span { color: var(--muted); }
.keyword_filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 20px 16px 10px; }
.keyword_chip {
    display: inline-block;
    padding: 5px 11px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: #3f4041;
    font-size: 12px;
    line-height: 16px;
    text-decoration: none;
}
.keyword_chip:hover { border-color: var(--accent); color: var(--accent); }
.keyword_chip.is_active { background: var(--accent); border-color: var(--accent); color: #fff; }
