/*
 * Dedicated Dewpoint Host Open Play page.
 * Every selector is owned by this module.
 */

.dp-host-open-play-page {
    min-height: calc(100vh - 88px);
    padding: 56px 24px 96px;
    background: #fefeff;
    color: #111827;
}

.dp-host-open-play-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.dp-host-open-play-back {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin: 0 0 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6d45e7;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.dp-host-open-play-heading {
    margin: 0 auto 38px;
    text-align: center;
}

.dp-host-open-play-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #7448e8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.dp-host-open-play-title {
    margin: 0;
    color: #111827;
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 850;
    line-height: 1.12;
}

.dp-host-open-play-subtitle {
    max-width: 670px;
    margin: 12px auto 0;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.7;
}

.dp-host-open-play-content {
    padding: clamp(20px, 3vw, 36px);
    border: 1px solid #e6e4f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(26, 24, 69, 0.07);
}

.dp-host-open-play-unavailable {
    width: min(640px, 100%);
    margin: 64px auto;
    padding: 28px;
    border: 1px solid #e6e4f0;
    border-radius: 20px;
    background: #ffffff;
    color: #6b7280;
    text-align: center;
}

@media (max-width: 768px) {
    .dp-host-open-play-page {
        padding: 34px 16px 70px;
    }

    .dp-host-open-play-heading {
        margin-bottom: 26px;
    }

    .dp-host-open-play-content {
        padding: 18px 14px;
        border-radius: 18px;
    }
}


.dp-host-open-play-primary {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    margin-top: 18px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(
        135deg,
        #7548e9 0%,
        #2875e8 100%
    );

    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.dp-host-open-play-primary:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.dp-host-open-play-calendar {
    box-sizing: border-box;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #e6e4f1;
    border-radius: 18px;
    background: #ffffff;
}

.dp-host-open-play-date-shell {
    display: flex;
    width: 100%;
    margin: 16px 0 12px;
    align-items: center;
    gap: 9px;
}

.dp-host-open-play-date-strip {
    display: flex;
    min-width: 0;
    padding: 3px 0 8px;
    flex: 1;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.dp-host-open-play-date-strip > button {
    display: flex;
    box-sizing: border-box;
    min-width: 86px;
    min-height: 76px;
    padding: 8px;
    flex: 0 0 86px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid #e3e1ef;
    border-radius: 15px;
    background: #ffffff;
    color: #141526;
    cursor: pointer;
    font-family: inherit;
}

.dp-host-open-play-date-active {
    border-color: #7448e9;
    background: linear-gradient(
        135deg,
        #7548e9 0%,
        #2875e8 100%
    );

    color: #ffffff;
}

.dp-host-open-play-date-arrow {
    display: grid;
    width: 38px;
    height: 46px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid #e3e1ef;
    border-radius: 12px;
    background: #ffffff;
    color: #6442db;
    cursor: pointer;
    font-size: 22px;
}

.dp-host-open-play-legend {
    display: flex;
    margin: 10px 0 14px;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    color: #697387;
    font-size: 11px;
}

.dp-host-open-play-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dp-host-open-play-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 1px solid #d6d2ed;
    border-radius: 3px;
    background: #f2efff;
}

.dp-host-open-play-legend i.picked {
    border-color: #7048e8;
    background: linear-gradient(
        135deg,
        #7548e9,
        #2875e8
    );
}

.dp-host-open-play-legend i.booked {
    border-color: #f0c8d0;
    background: #fff0f2;
}

.dp-host-open-play-legend i.blocked {
    border-color: #d8dbe2;
    background: #f0f2f6;
}

.dp-host-open-play-grid-scroll {
    width: 100%;
    overflow-x: auto;
}

.dp-host-open-play-grid {
    display: grid;
    box-sizing: border-box;
    min-width: 680px;
    padding: 8px;
    gap: 6px;
    border: 1px solid #e6e4f1;
    border-radius: 15px;
    background: #ffffff;
}

.dp-host-open-play-grid-head {
    display: flex;
    min-height: 37px;
    align-items: center;
    justify-content: center;
    color: #565b72;
    font-size: 11px;
    font-weight: 800;
}

.dp-host-open-play-grid-head.time {
    justify-content: flex-start;
    padding-left: 8px;
}

.dp-host-open-play-time {
    display: flex;
    padding: 0 8px;
    align-items: center;
    color: #27293c;
    font-size: 11px;
    white-space: nowrap;
}

.dp-host-open-play-slot {
    display: flex;
    box-sizing: border-box;
    min-width: 0;
    min-height: 48px;
    padding: 6px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid #dedaf7;
    border-radius: 13px;
    background: #f5f3ff;
    color: #5941cb;
    cursor: pointer;
    font-family: inherit;
}

.dp-host-open-play-slot b {
    font-size: 11px;
    font-weight: 750;
}

.dp-host-open-play-slot span {
    font-size: 10px;
}

.dp-host-open-play-slot.available {
    border-color: #d7cffd;
    background: #f3f0ff;
    color: #533dc1;
}

.dp-host-open-play-slot.picked {
    border-color: #7447e8;
    background: linear-gradient(
        135deg,
        #7548e9 0%,
        #2875e8 100%
    );

    color: #ffffff;
}

.dp-host-open-play-slot.booked {
    border-color: #f0c8d0;
    background: #fff0f2;
    color: #b74f61;
}

.dp-host-open-play-slot.held {
    border-color: #f2daa5;
    background: #fff7e5;
    color: #996b13;
}

.dp-host-open-play-slot.past {
    border-color: #e3e4e9;
    background: #f6f7f9;
    color: #9198a5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .dp-host-open-play-calendar {
        padding: 11px;
    }

    .dp-host-open-play-date-strip > button {
        min-width: 74px;
        flex-basis: 74px;
    }

    .dp-host-open-play-grid {
        min-width: 620px;
    }
}
