﻿/* layout.razor.css */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row ::deep a, .top-row ::deep .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
        text-decoration: underline;
    }

    .top-row ::deep a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

.hero-section {
    width: min(1096px, 100%);
    margin: 0 auto;
}

.hero-intro {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 24px 0;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: 18px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    font-family: Inter, Segoe UI, system-ui, sans-serif;
    color: #f8fafc;
}

.hero-eyebrow {
    color: #f0c84b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.hero-intro h3 {
    margin: 0 0 6px 0;
    font-size: clamp(32px, 3vw, 48px);
    line-height: 1.05;
    font-weight: 800;
}

.hero-intro p {
    max-width: 700px;
    margin: 0;
    color: #cbd5e1;
    font-size: clamp(16px, 1.35vw, 21px);
    line-height: 1.35;
}

.hero-button {
    flex: 0 0 auto;
    border: 1px solid rgba(240,200,75,.55);
    background: rgba(240,200,75,.12);
    color: #f0c84b;
    border-radius: 999px;
    /*padding: 10px 22px;*/
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.service-strip {
    margin: 22px 0 0 0;
}

a.download-btn {
    flex: 0 0 auto;
    /*border: 1px solid rgba(240,200,75,.55);
            background: rgba(240,200,75,.12);*/
    color: #f0c84b;
    text-decoration: none;
    /* border-radius: 999px; */
    /*padding: 10px 22px;*/
    font-size: 23px;
    font-weight: 400;
    cursor: pointer;
    outline: none;
    height: 25px;
}

    a.download-btn:hover {
        background-color: none;
    }

@media (max-width: 640.98px) {
    .top-row {
        justify-content: space-between;
    }

    .top-row ::deep a, .top-row ::deep .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth ::deep a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row, article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* spinner */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 7px solid #333;
    border-top: 7px solid #f0c84b;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.loading-text {
    margin-top: 16px;
    color: #f0c84b;
    font-size: 20px;
    font-weight: bold;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.image-title {
    color: #ffd84d;
    text-align: left;
    margin-top: 20px;
    padding: 0;
    line-height: 1.2;
}



/* Final homepage layout overrides */

html,
body {
    overflow-x: hidden;
    overflow-y: auto;
}

.dashboard-main {
    padding: 36px 48px 48px 48px;
}

.hero-section {
    width: min(1096px, 100%);
    margin: 0 auto;
}

.hero-intro {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 24px 0;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: 18px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
}

    .hero-intro h3 {
        margin: 0 0 6px 0;
        font-size: clamp(32px, 3vw, 48px);
        line-height: 1.05;
    }

    .hero-intro p {
        margin: 0;
        max-width: 720px;
        font-size: clamp(16px, 1.35vw, 21px);
        line-height: 1.35;
    }

.hero-button {
    flex: 0 0 auto;
}

.hero-photo-container {
    width: 100%;
    max-width: none;
    margin: 0;
}

.hero-photo-img {
    width: 100%;
    margin: 0;
    max-width: 100%;
}

.service-strip {
    width: 100%;
    box-sizing: border-box;
    margin: 22px 0 0 0;
}

.home-wrapper {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-section {
    width: 100%;
}

/* Compact top panel */
.hero-content {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 14px;
    padding: 18px 28px;
    color: #f8fafc;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    background: linear-gradient(180deg, #13294b, #102340);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.hero-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.hero-heading {
    min-width: 0;
}

.hero-eyebrow {
    margin-bottom: 7px;
    color: #ffd84d;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-title {
    margin: 0;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

    .hero-title span {
        color: #ffd84d;
    }

/* Buttons remain on the title row */
.hero-buttons {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
    margin: 0;
}

.hero-primary,
.hero-secondary {
    min-height: 46px;
    padding: 11px 22px;
    border-radius: 9px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hero-primary {
    color: #08182e;
    background: #ffd84d;
    border: 1px solid #ffd84d;
}

    .hero-primary:hover {
        transform: translateY(-2px);
        background: #ffe477;
    }

.hero-secondary {
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

    .hero-secondary:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.08);
    }

/* Supported databases form the second compact row */
.hero-databases {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-databases-label {
    color: #ffd84d;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.hero-supported {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

    .hero-supported span {
        padding: 5px 12px;
        color: #ffd84d;
        font-size: 0.8rem;
        font-weight: 700;
        background: rgba(255, 216, 77, 0.1);
        border: 1px solid rgba(255, 216, 77, 0.38);
        border-radius: 999px;
    }

/* Let the artwork dominate */
.hero-photo-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.hero-content {
    opacity: 0;
    animation: heroText .6s ease forwards;
}

.hero-photo-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    /*
       Shrinks the image only when necessary so the complete artwork
       is visible in the remaining browser height.
    */
    max-height: calc(100vh - 245px);
    object-fit: contain;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(12px);
    animation: heroReveal 1.1s ease-out .35s forwards;
    filter: drop-shadow(0 22px 45px rgba(2,8,23,.32));
    will-change: opacity, transform;
}

@keyframes heroText {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes heroReveal {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1050px) {
    .hero-title {
        white-space: normal;
    }

    .hero-main-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .hero-photo-img {
        max-height: none;
        width: 100%;
    }
}

@media (max-width: 700px) {
    .home-wrapper {
        width: calc(100% - 20px);
    }

    .hero-content {
        padding: 18px;
    }

    .hero-title span {
        display: block;
        margin-top: 4px;
    }

    .hero-buttons {
        width: 100%;
        flex-direction: column;
    }

    .hero-primary,
    .hero-secondary {
        width: 100%;
    }

    .hero-databases {
        justify-content: flex-start;
    }

    .hero-supported {
        justify-content: flex-start;
    }
}

@media (max-width: 640.98px) {
    .top-row {
        justify-content: space-between;
    }

        .top-row ::deep a, .top-row ::deep .btn-link {
            margin-left: 0;
        }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

        .top-row.auth ::deep a:first-child {
            flex: 1;
            text-align: right;
            width: 0;
        }

    .top-row, article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* spinner */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 7px solid #333;
    border-top: 7px solid #f0c84b;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.loading-text {
    margin-top: 16px;
    color: #f0c84b;
    font-size: 20px;
    font-weight: bold;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.image-title {
    color: #ffd84d;
    text-align: left;
    margin-top: 20px;
    padding: 0;
    line-height: 1.2;
}
