/* =========================================================
   NovoCure Spin Wheel - Clean Final CSS
   File: novocure_spin_wheel/static/src/css/spin_wheel.css
   ========================================================= */

/* Page Background */
.novocure-spin-page {
    background: linear-gradient(135deg, #fff7f4 0%, #fffaf7 45%, #f8fbfb 100%);
    padding: 42px 16px 70px;
}

/* Main Card */
.nc-spin-card {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 470px) 1fr;
    gap: 56px;
    align-items: center;
    background: #ffffff;
    border-radius: 30px;
    padding: 46px 56px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Wheel Area */
.nc-spin-wheel-area {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pointer */
.nc-spin-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 0;
    height: 0;
    font-size: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 34px solid #000000;
    border-bottom: 0;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.18));
}

/* Wheel */
.nc-spin-wheel {
    position: relative;
    width: 390px;
    height: 390px;
    max-width: 100%;
    border-radius: 50%;
    border: 12px solid #ffffff;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.14);
    transition: transform 4s cubic-bezier(.17, .67, .19, 1);
    background:
        conic-gradient(
            #f3d7c0 0deg 60deg,
            #d7eee8 60deg 120deg,
            #f7ead5 120deg 180deg,
            #dceafb 180deg 240deg,
            #f4c7ba 240deg 300deg,
            #e9f3df 300deg 360deg
        );
    overflow: hidden;
}

/* Inner center polish */
.nc-spin-wheel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

/* Wheel Labels - Centered */
.nc-spin-slice {
    position: absolute;
    left: 50%;
    top: 50%;

    width: 130px;
    min-height: 26px;

    margin-left: -65px;
    margin-top: -13px;

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

    text-align: center;
    line-height: 1.15;
    font-size: 15px;
    font-weight: 800;
    color: #000000;

    transform-origin: center center;
    white-space: normal;
    z-index: 2;
}

/* 6-slice label positions: middle of each 60-degree segment */
.nc-spin-slice:nth-child(1) {
    transform: rotate(30deg) translateY(-123px) rotate(-30deg);
}

.nc-spin-slice:nth-child(2) {
    transform: rotate(90deg) translateY(-123px) rotate(-90deg);
}

.nc-spin-slice:nth-child(3) {
    transform: rotate(150deg) translateY(-123px) rotate(-150deg);
}

.nc-spin-slice:nth-child(4) {
    transform: rotate(210deg) translateY(-123px) rotate(-210deg);
}

.nc-spin-slice:nth-child(5) {
    transform: rotate(270deg) translateY(-123px) rotate(-270deg);
}

.nc-spin-slice:nth-child(6) {
    transform: rotate(330deg) translateY(-123px) rotate(-330deg);
}

/* Content */
.nc-spin-content h1 {
    color: #1f737b;
    font-size: 46px;
    line-height: 1.18;
    font-weight: 850;
    margin: 0 0 18px;
    letter-spacing: -0.6px;
}

.nc-spin-content p {
    color: #646b70;
    font-size: 18px;
    line-height: 1.65;
    margin-bottom: 0;
}

/* Fields */
.nc-spin-fields {
    display: grid;
    gap: 14px;
    margin: 28px 0 18px;
}

.nc-spin-fields input {
    width: 100%;
    height: 54px;
    border-radius: 11px;
    border: 1px solid #d9dde1;
    padding: 0 18px;
    font-size: 16px;
    background: #ffffff;
    color: #222222;
    box-shadow: none;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nc-spin-fields input:focus {
    border-color: #1f737b;
    box-shadow: 0 0 0 3px rgba(31, 115, 123, 0.12);
}

.nc-spin-fields input::placeholder {
    color: #8b9298;
}

/* Spin Button */
.nc-spin-button {
    min-width: 210px;
    height: 58px;
    padding: 0 34px;
    border-radius: 999px;
    border: 1px solid #1f737b;
    background: #ff9678;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 9px 20px rgba(255, 150, 120, 0.28);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nc-spin-button:hover {
    transform: translateY(-2px);
    background: #ff805d;
    box-shadow: 0 13px 26px rgba(255, 150, 120, 0.36);
}

.nc-spin-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Result Box */
.nc-spin-result {
    margin-top: 30px;
    padding: 28px 30px;
    border-radius: 22px;
    background: #fff8f1;
    border: 1px solid rgba(255, 150, 120, 0.18);
}

.nc-spin-result h3 {
    color: #1f737b;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 850;
    margin: 0 0 12px;
}

.nc-spin-result p {
    color: #646b70;
    font-size: 17px;
    margin-bottom: 18px;
}

/* Coupon */
.nc-spin-coupon-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.nc-spin-coupon-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 22px;
    border-radius: 14px;
    background: #ffffff;
    color: #f0377c;
    font-size: 20px;
    font-weight: 850;
    letter-spacing: 1.1px;
}

.nc-spin-copy-code,
.nc-spin-coupon-wrap button {
    height: 50px;
    padding: 0 22px;
    border-radius: 11px;
    border: 1px solid #1f737b;
    background: #ffffff;
    color: #1f737b;
    font-size: 16px;
    font-weight: 750;
    transition: background 0.2s ease, color 0.2s ease;
}

.nc-spin-copy-code:hover,
.nc-spin-coupon-wrap button:hover {
    background: #1f737b;
    color: #ffffff;
}

/* Shop Now */
.nc-spin-result a,
.nc-spin-shop-now {
    display: inline-block;
    margin-top: 14px;
    color: #ff7554;
    font-weight: 800;
    text-decoration: none;
}

.nc-spin-result a:hover,
.nc-spin-shop-now:hover {
    color: #1f737b;
    text-decoration: none;
}

/* Popup Mode */
.nc-spin-popup,
.novocure-spin-popup,
.spin-wheel-popup {
    border-radius: 28px;
    overflow: hidden;
}

.nc-spin-popup .modal-content,
.novocure-spin-popup .modal-content,
.spin-wheel-popup .modal-content {
    border: 0;
    border-radius: 28px;
    box-shadow: 0 24px 74px rgba(0, 0, 0, 0.22);
}

/* Popup card sizing if rendered inside modal */
.modal .nc-spin-card {
    max-width: 980px;
    padding: 34px;
    gap: 34px;
}

.modal .nc-spin-wheel-area {
    min-height: 340px;
}

.modal .nc-spin-wheel {
    width: 300px;
    height: 300px;
}

.modal .nc-spin-slice {
    font-size: 13px;
    width: 110px;
    margin-left: -55px;
}

.modal .nc-spin-slice:nth-child(1) {
    transform: rotate(30deg) translateY(-95px) rotate(-30deg);
}

.modal .nc-spin-slice:nth-child(2) {
    transform: rotate(90deg) translateY(-95px) rotate(-90deg);
}

.modal .nc-spin-slice:nth-child(3) {
    transform: rotate(150deg) translateY(-95px) rotate(-150deg);
}

.modal .nc-spin-slice:nth-child(4) {
    transform: rotate(210deg) translateY(-95px) rotate(-210deg);
}

.modal .nc-spin-slice:nth-child(5) {
    transform: rotate(270deg) translateY(-95px) rotate(-270deg);
}

.modal .nc-spin-slice:nth-child(6) {
    transform: rotate(330deg) translateY(-95px) rotate(-330deg);
}

.modal .nc-spin-content h1 {
    font-size: 34px;
}

/* Tablet */
@media (max-width: 991px) {
    .novocure-spin-page {
        padding: 28px 14px 50px;
    }

    .nc-spin-card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 30px 24px;
        border-radius: 24px;
    }

    .nc-spin-wheel-area {
        min-height: 360px;
        order: 1;
    }

    .nc-spin-content {
        order: 2;
        text-align: center;
    }

    .nc-spin-content h1 {
        font-size: 36px;
    }

    .nc-spin-content p {
        font-size: 16px;
    }

    .nc-spin-wheel {
        width: 320px;
        height: 320px;
    }

    .nc-spin-slice {
        font-size: 13px;
        width: 112px;
        margin-left: -56px;
    }

    .nc-spin-slice:nth-child(1) {
        transform: rotate(30deg) translateY(-102px) rotate(-30deg);
    }

    .nc-spin-slice:nth-child(2) {
        transform: rotate(90deg) translateY(-102px) rotate(-90deg);
    }

    .nc-spin-slice:nth-child(3) {
        transform: rotate(150deg) translateY(-102px) rotate(-150deg);
    }

    .nc-spin-slice:nth-child(4) {
        transform: rotate(210deg) translateY(-102px) rotate(-210deg);
    }

    .nc-spin-slice:nth-child(5) {
        transform: rotate(270deg) translateY(-102px) rotate(-270deg);
    }

    .nc-spin-slice:nth-child(6) {
        transform: rotate(330deg) translateY(-102px) rotate(-330deg);
    }
}

/* Mobile */
@media (max-width: 575px) {
    .novocure-spin-page {
        padding: 20px 10px 36px;
    }

    .nc-spin-card {
        padding: 22px 16px;
        border-radius: 20px;
    }

    .nc-spin-wheel-area {
        min-height: 305px;
    }

    .nc-spin-pointer {
        top: 0;
        border-left-width: 12px;
        border-right-width: 12px;
        border-bottom-width: 26px;
    }

    .nc-spin-wheel {
        width: 270px;
        height: 270px;
        border-width: 9px;
    }

    .nc-spin-slice {
        font-size: 12px;
        width: 96px;
        min-height: 22px;
        margin-left: -48px;
        margin-top: -11px;
    }

    .nc-spin-slice:nth-child(1) {
        transform: rotate(30deg) translateY(-86px) rotate(-30deg);
    }

    .nc-spin-slice:nth-child(2) {
        transform: rotate(90deg) translateY(-86px) rotate(-90deg);
    }

    .nc-spin-slice:nth-child(3) {
        transform: rotate(150deg) translateY(-86px) rotate(-150deg);
    }

    .nc-spin-slice:nth-child(4) {
        transform: rotate(210deg) translateY(-86px) rotate(-210deg);
    }

    .nc-spin-slice:nth-child(5) {
        transform: rotate(270deg) translateY(-86px) rotate(-270deg);
    }

    .nc-spin-slice:nth-child(6) {
        transform: rotate(330deg) translateY(-86px) rotate(-330deg);
    }

    .nc-spin-content h1 {
        font-size: 30px;
    }

    .nc-spin-button {
        width: 100%;
    }

    .nc-spin-result {
        text-align: center;
        padding: 22px 16px;
    }

    .nc-spin-coupon-code,
    .nc-spin-copy-code,
    .nc-spin-coupon-wrap button {
        width: 100%;
    }
}

/* =========================================================
   NOVOCURE SPIN WHEEL - SHOP NOW BUTTON
========================================================= */

.nc-spin-result .nc-spin-shop-now-btn {
    min-width: 180px !important;
    min-height: 48px !important;
    margin-top: 18px !important;
    padding: 13px 28px !important;

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

    border-radius: 999px !important;
    background: linear-gradient(135deg, #FF9169 0%, #FFB078 100%) !important;
    border: 1px solid rgba(255, 145, 105, 0.55) !important;

    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;

    box-shadow: 0 12px 28px rgba(255, 145, 105, 0.30) !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease !important;
}

.nc-spin-result .nc-spin-shop-now-btn:hover,
.nc-spin-result .nc-spin-shop-now-btn:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 34px rgba(255, 145, 105, 0.42) !important;
    opacity: 0.96 !important;
}

.nc-spin-result .nc-spin-shop-now-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 10px 22px rgba(255, 145, 105, 0.28) !important;
}

@media (max-width: 767px) {
    .nc-spin-result .nc-spin-shop-now-btn {
        min-width: 165px !important;
        min-height: 44px !important;
        padding: 12px 22px !important;
        font-size: 14px !important;
        margin-top: 16px !important;
    }
}
