﻿/* === Base === */
body {
    background: #37195a;
    font-family: 'SF Pro Display', 'San Francisco', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #f2f2f7;
}

/* === Welcome Banner === */
#welcome-message {
    position: fixed;
    inset: 0 0 auto 0; /* top banner */
    width: 100%;
    background: rgba(55,25,90,0.97);
    color: #fff;
    font-size: 30px;
    text-align: center;
    z-index: 2000;
    padding: 28px 0 18px;
    letter-spacing: 1.5px;
    box-shadow: 0 6px 24px rgba(55,25,90,0.13);
    border-radius: 0 0 20px 20px;
    display: none; /* shown by JS if desired */
}

/* === Circle Infographic (desktop) === */
.circle-infographic-container {
    width: 950px;
    height: 800px;
    margin: 30px auto;
    position: relative;
    overflow: visible;
    background: transparent;
    display: block; /* hidden on mobile via media query */
}

#lines-svg {
    position: absolute;
    inset: 0;
    width: 950px;
    height: 800px;
    pointer-events: none;
    z-index: 40;
    overflow: visible;
}

.circle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 420px;
    height: 420px;
    margin-left: -210px;
    margin-top: -210px;
    background: #fff;
    color: #37195a;
    border-radius: 50%;
    box-shadow: 0 4px 24px #0001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.circle-center-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #37195a;
    padding: 4px;
}

.circle-center-desc {
    font-size: .8rem;
    color: #444;
    min-height: 40px;
}

/* Icons around the ring */
.circle-icon {
    position: absolute;
    width: 58px;
    height: 58px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px #0001;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.6rem;
    transition: transform .2s, box-shadow .2s;
    z-index: 30;
}

    .circle-icon:hover, .circle-icon.active {
        background: #f0f7ff;
        box-shadow: 0 6px 16px #4bcaff33;
        transform: scale(1.12);
    }

    /* Color accents */
    .circle-icon.color-1 {
        color: #5C6BC0
    }

    .circle-icon.color-2 {
        color: #42A5F5
    }

    .circle-icon.color-3 {
        color: #26A69A
    }

    .circle-icon.color-4 {
        color: #388E3C
    }

    .circle-icon.color-5 {
        color: #FFA000
    }

    .circle-icon.color-6 {
        color: #FF7043
    }

    .circle-icon.color-7 {
        color: #D32F2F
    }

    .circle-icon.color-8 {
        color: #7B1FA2
    }

    .circle-icon.color-9 {
        color: #00796B
    }

    .circle-icon.color-10 {
        color: #0288D1
    }

    .circle-icon.color-11 {
        color: #FBC02D
    }

    .circle-icon.color-12 {
        color: #C2185B
    }

    .circle-icon.color-13 {
        color: #689F38
    }

    .circle-icon.color-14 {
        color: #455A64
    }

    .circle-icon.color-15 {
        color: #F57C00
    }

    .circle-icon.color-16 {
        color: #422066
    }

/* Outside descriptions */
.outside-description {
    position: absolute;
    width: 240px;
    font-size: 12.5px;
    color: #2d2347;
    background: #fff;
    border-radius: 14px;
    border: 1.2px solid #ece7fa;
    box-shadow: 0 4px 28px rgba(55,25,90,0.11), 0 1.5px 8px rgba(0,0,0,0.04);
    padding: 14px 18px;
    z-index: 50;
    pointer-events: none;
    text-align: left;
    opacity: 0;
    transform: translateY(10px) scale(.98);
    transition: opacity .23s cubic-bezier(.4,0,.2,1), transform .26s cubic-bezier(.4,0,.2,1), box-shadow .24s;
}

    .outside-description.show {
        opacity: 1;
        pointer-events: auto;
        transform: none;
        box-shadow: 0 8px 36px rgba(55,25,90,0.15), 0 1.5px 16px rgba(0,0,0,0.07);
    }

    .outside-description .desc-title {
        font-weight: 700;
        font-size: 13.5px;
        color: #422066;
        margin-bottom: 5px;
        letter-spacing: .01em;
    }

/* === Desktop Center Login overlay (if you still inject it) === */
.login-form-modal {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.98);
    z-index: 200;
    animation: popIn .32s cubic-bezier(.33,1.55,.55,1.06);
    box-shadow: 0 8px 24px #2b8aff22;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(.7)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.close-login {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 1.6rem;
    color: #bbb;
    cursor: pointer;
    background: none;
    border: none;
}

    .close-login:hover {
        color: #f57c00
    }

/* Shared login form styles (used by both desktop and mobile) */
.login-form {
    width: 90%;
    max-width: 285px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 32px rgba(55,25,90,0.11);
    margin: 0 auto;
    padding: 32px 22px 28px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    color: #31174a;
}

    .login-form label {
        font-size: .95rem;
        color: #422066;
        font-weight: 600;
        margin: 13px 0 6px;
    }

    .login-form input {
        padding: 11px 13px;
        border-radius: 10px;
        border: 1.2px solid #e1d7f4;
        background: #f7f4fb;
        font-size: 1rem;
        outline: none;
    }

        .login-form input:focus {
            border-color: #a381f6;
            background: #fff;
        }

    .login-form .login-submit {
        margin-top: 20px;
        padding: 11px 0;
        width: 100%;
        border: none;
        border-radius: 13px;
        font-size: 1.07rem;
        font-weight: bold;
        background: linear-gradient(90deg,#7c3aed 60%, #37195a 100%);
        color: #fff;
        box-shadow: 0 2px 10px rgba(124,58,237,0.13);
        cursor: pointer;
    }

        .login-form .login-submit:hover {
            background: linear-gradient(90deg,#6d28d9 60%, #37195a 100%);
            box-shadow: 0 4px 20px rgba(124,58,237,0.15);
        }

    .login-form .login-error {
        margin-top: 10px;
        color: #b91c1c;
        font-size: 12px;
    }

/* === Mobile inline login card (div) === */
#mobileLoginPanel {
    display: none; /* shown on ≤768px via media query */
    max-width: 520px;
    margin: 18px auto 28px auto;
    padding: 18px 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,.15);
    color: #111;
}

    #mobileLoginPanel h2 {
        margin: 0 0 14px;
        color: #383838;
        font-weight: 700;
        font-size: 20px;
    }

/* === Floating reopen login button (if you keep JS for it) === */
#reopenLoginBtn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    padding: 10px 14px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg,#7c3aed 60%, #37195a 100%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    z-index: 9998;
}

    #reopenLoginBtn:hover {
        filter: brightness(1.05);
    }

/* === Responsive === */
@media (max-width: 1024px) {
    .circle-infographic-container {
        transform: scale(.94)
    }
}

@media (max-width: 900px) {
    .circle-infographic-container {
        width: 100%;
        height: 780px
    }
}

@media (max-width: 768px) {
    /* hide the big circle on small screens; show the login card */
    .circle-infographic-container {
        display: none !important;
    }

    #mobileLoginPanel {
        display: block;
    }

    #welcome-message {
        font-size: 22px;
    }
}
