/*
 * dialog-splashscreen.css
 *
 * Styles for the splash screen and starting service panel
 */

/* -------------------------------------------------------
   Embedded Fonts
------------------------------------------------------- */

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Variable-latin-ext.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Sora';
    src: url('../fonts/Sora-Variable.woff2') format('woff2');
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sora';
    src: url('../fonts/Sora-Variable-latin.woff2') format('woff2');
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/JetBrainsMono-latin.woff2') format('woff2');
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/JetBrainsMono-latin-ext.woff2') format('woff2');
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* -------------------------------------------------------
   Starting Service Panel
------------------------------------------------------- */

.splash-wait-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #38384a 0%, #26262e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.splash-wait-dialog {
    background: #111118;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    padding: 44px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    min-width: 260px;
    text-align: center;
    animation: slideUp 0.3s ease;
}

.splash-wait-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #2dd4bf;
    border-radius: 50%;
    animation: splash-spin 0.8s linear infinite;
    margin-bottom: 4px;
}

@keyframes splash-spin {
    to { transform: rotate(360deg); }
}

.splash-wait-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
}

.splash-wait-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: -6px;
}

/* -------------------------------------------------------
   Splash Screen
------------------------------------------------------- */

.splashscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #38384a 0%, #26262e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding: 16px 0;
    box-sizing: border-box;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.splashscreen-dialog {
    background: #111118;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-top: auto;
    margin-bottom: auto;
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Language bar — pinned top-right, outside content flow */
.splashscreen-lang-bar {
    position: absolute;
    top: 16px;
    right: 20px;
}

/* Main content area */
.splashscreen-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 80px 36px;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Logo / title gif */
.splashscreen-title-graphic {
    height: 96px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 20px;
}

/* Horizontal rule */
.splashscreen-rule {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 16px 0;
}

/* Tagline */
.splashscreen-tagline {
    color: white;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.55;
    margin-bottom: 0;
    font-family: 'Sora', sans-serif;
}

/* Shared bevel button style — primary and secondary tab buttons */
.splashscreen-tab,
.splashscreen-tab-sm {
    background: #3a3a3a;
    border-top: 3px solid #606060;
    border-bottom: 3px solid #181818;
    border-left: none;
    border-right: none;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.88);
    padding: 5px 12px;
    font-size: 0.65rem;
    cursor: default;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s ease, border-color 0.1s ease, transform 0.1s ease;
}

.splashscreen-tab:hover,
.splashscreen-tab-sm:hover {
    background: #484848;
    border-top-color: #787878;
    border-bottom-color: #202020;
    color: rgba(255, 255, 255, 1);
}

.splashscreen-tab:active,
.splashscreen-tab-sm:active {
    background: #2e2e2e;
    border-top-color: #181818;
    border-bottom-color: #606060;
    transform: translateY(1px);
}

/* Primary tabs */
.splashscreen-tabs-primary {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

/* Secondary tabs */
.splashscreen-tabs-secondary {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

/* Dynamic text (toptext / bottomtext from server) */
.splashscreen-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    line-height: 1.5;
    margin-bottom: 0;
    width: 100%;
    text-align: center;
}

.splashscreen-text h1, .splashscreen-text h2, .splashscreen-text h3 {
    color: white;
}

.splashscreen-text p {
    margin: 0.4em 0;
}

.splashscreen-text ul, .splashscreen-text ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Disclaimer text (bottomtext) — smaller and dimmer */
.splashscreen-text-disclaimer {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Get Started button */
.splashscreen-continue-button {
    padding: 18px 44px;
    background: #2dd4bf;
    border-top: 3px solid #5ef0de;
    border-bottom: 3px solid #0f8a7a;
    border-left: none;
    border-right: none;
    border-radius: 0;
    color: #0a2218;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.01em;
    margin-top: 24px;
    margin-bottom: 24px;
    font-family: 'Sora', sans-serif;
    width: 100%;
    transition: background 0.15s ease, border-color 0.1s ease, transform 0.1s ease;
}

.splashscreen-continue-button:hover {
    background: #3de0cb;
    border-top-color: #72f4e6;
    border-bottom-color: #1aaa8e;
    color: #071a12;
}

.splashscreen-continue-button:active {
    background: #25b8a4;
    border-top-color: #0f8a7a;
    border-bottom-color: #5ef0de;
    transform: translateY(1px);
}

/* Footer */
.splashscreen-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    line-height: 1.9;
    font-family: 'Inter', sans-serif;
}

.splashscreen-footer-links {
    color: #2dd4bf;
}

.splashscreen-footer-links a {
    color: #2dd4bf;
    text-decoration: underline;
}

.splashscreen-footer a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
}

.splashscreen-footer-links a {
    color: #2dd4bf !important;
    text-decoration: underline !important;
}

/* -------------------------------------------------------
   Mobile / Phone
------------------------------------------------------- */
@media (max-width: 600px) {
    .splashscreen-overlay {
        align-items: stretch;
        padding: 0;
    }

    .splashscreen-dialog {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        overflow-y: auto;
        margin: 0;
    }

    .splashscreen-content {
        padding: 40px 64px 36px;
        min-height: 100vh;
    }

    .splashscreen-title-graphic {
        height: 72px;
    }
}
