@font-face {
    font-family: "Basel";
    src: local("/assets/Basel-Regular.otf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Basel';
    src: local("/assets/Basel-Bold.otf") format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'ABCGravityUprightVariable';
    src: local("/assets/ABCGravityUprightVariable.woff2") format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* Apply the custom font to all elements */
body {
    font-family: "Basel", sans-serif !important;
}


h1, h2, h3, h4, h5, h6 {
    font-family: "ABCGravityUprightVariable", sans-serif !important;
}

.btn-outline-primary {
  --bs-btn-font-weight: 600;
  --bs-btn-color: #953BF6;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: #953BF6;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #5a0dd4;
  --bs-btn-hover-border-color: #5a0dd4;
  --bs-btn-focus-shadow-rgb: 102, 16, 242;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #4f0bbb;
  --bs-btn-active-border-color: #4f0bbb;
}

.hype-meter-progress .progress-bar {
    font-weight: 600;
    transition: width 0.6s ease-in-out, background-color 0.3s ease;
    animation: hype-bar-fill 0.8s ease-out;
}

/* Hover feedback on progress bar segments */
.hype-meter-progress .progress-bar:hover {
    filter: brightness(1.1);
    cursor: pointer;
}

/* Animate progress bars filling on load */
@keyframes hype-bar-fill {
    from { width: 0%; }
}

/* Score badge hover */
#section-1 .mantine-Paper-root:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

/* --- Hype card: score cards use flexbox column so score rows align at bottom --- */
.hype-score-card {
    display: flex;
    flex-direction: column;
}

.hype-score-row {
    margin-top: auto;
}

/* Growth indicator link — clickable card styling */
.hype-score-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.hype-score-link .mantine-Paper-root {
    cursor: pointer;
    width: 100%;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.hype-score-link:hover .mantine-Paper-root {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    border-color: #868e96;
}

/* --- Hype card: mobile responsiveness --- */
@media (max-width: 768px) {
    /* Let the header row wrap so the badge drops below the title */
    .hype-card-header {
        flex-wrap: wrap !important;
    }

    /* Shrink the badge in the header on mobile */
    .hype-card-header .mantine-Badge-root {
        font-size: 10px !important;
        height: 20px !important;
        padding: 0 8px !important;
    }

    /* Smaller title on mobile */
    .hype-card-title {
        font-size: 1rem !important;
    }

    /* Smaller logo on mobile */
    .hype-card-logo {
        height: 24px !important;
        max-width: 80px !important;
    }

    /* Compact padding on score cards */
    .hype-score-card {
        padding: 6px 8px !important;
    }

    /* Smaller score values on mobile */
    .hype-score-row .mantine-Text-root {
        font-size: var(--mantine-font-size-md) !important;
    }

    /* Smaller badges on mobile */
    .hype-score-row .mantine-Badge-root {
        font-size: 9px !important;
        padding: 0 4px !important;
        height: 16px !important;
    }

    /* Hide growth driver subtitle on very small screens */
    #growth-driver-label {
        display: none;
    }
}

/* =========================================================================
   Growth card (section-4) — visual polish
   ========================================================================= */

/* Subtle top accent border (purple gradient) */
.growth-card {
    border-top: 3px solid #953AF6 !important;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Smooth fade-in when the card becomes visible */
.growth-card[style*="display: block"],
.growth-card[style*="display:block"] {
    animation: growth-card-enter 0.45s ease-out both;
}

@keyframes growth-card-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Plotly chart container — remove default padding artifacts */
.growth-card .js-plotly-plot .plotly {
    border-radius: 8px;
}

/* Hover lift on the card */
.growth-card:hover {
    box-shadow: 0 4px 20px rgba(149, 58, 246, 0.08),
                0 1px 4px rgba(0, 0, 0, 0.06) !important;
}

/* ── Growth chart: force full width on all screens ── */
.growth-card .js-plotly-plot,
.growth-card .plot-container,
.growth-card .svg-container {
    width: 100% !important;
}

/* ── Growth chart: mobile-specific tightening ── */
@media (max-width: 768px) {
    /* Remove card horizontal padding so chart fills edge-to-edge */
    .growth-card {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    /* Let the Plotly container breathe */
    .growth-card .js-plotly-plot {
        min-height: 280px;
    }

    /* Shrink the mode bar so it doesn't eat space */
    .growth-card .modebar-container {
        transform: scale(0.8);
        transform-origin: top right;
    }

    /* Tighter gap between logo/title and chart */
    .growth-card .mantine-Stack-root {
        gap: 4px !important;
    }

    /* Smaller company logo on mobile */
    #growth-card-logo {
        height: 18px !important;
        max-width: 60px !important;
    }
}
