/*!
 * Landing page sections — dev-doc/pahang_1st_events_laman_utama_portal_sukan/
 *
 * Only what is unique to the homepage. Tokens, typography, buttons, badges,
 * forms, the race card, the filter pills and the chrome are all apex.css,
 * which every public page loads; this sheet lays out the five bands the comp
 * puts between the header and the footer.
 *
 *   1. Hero (media, search, telemetry)   4. Categories
 *   2. Spotlight bento                   5. Why register
 *   3. Countdown                         6. Partners
 */

/* ---------------------------------------------------------------------------
   1. Hero
   ------------------------------------------------------------------------ */

.ax-hero {
    position: relative;
    /* The bar is fixed and the comp runs the photograph up behind it, so the
       hero starts under the blur rather than below it. */
    padding-top: calc(var(--ax-nav-h) + clamp(40px, 5vw, 72px));
    padding-bottom: clamp(48px, 6vw, 80px);
    background: var(--ax-lowest);
    overflow: hidden;
}

/* No photograph ships with the repo, so the comp's athlete plate is drawn: a
   cyan/blue wash off the top-right over navy, with the diagonal speed-line
   grid the design uses. Swap the gradient for a url() the day there is an
   image to put here — nothing else needs to change. */
.ax-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.55;
    background:
        radial-gradient(120% 95% at 82% 10%, rgba(0, 210, 255, 0.42) 0%, rgba(1, 70, 229, 0) 58%),
        radial-gradient(90% 70% at 12% 90%, rgba(1, 70, 229, 0.5) 0%, rgba(5, 12, 37, 0) 62%),
        linear-gradient(152deg, #131a33 0%, #0a122b 52%, #050c25 100%);
}

.ax-hero__media::after {
    content: "";
    position: absolute;
    inset: -20%;
    background-image: repeating-linear-gradient(
        108deg,
        rgba(165, 231, 255, 0.07) 0px,
        rgba(165, 231, 255, 0.07) 1px,
        transparent 1px,
        transparent 46px
    );
}

.ax-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to right, var(--ax-lowest) 0%, rgba(5, 12, 37, 0.82) 44%, rgba(5, 12, 37, 0.15) 100%),
        linear-gradient(to top, var(--ax-low) 0%, rgba(5, 12, 37, 0) 34%);
}

/* The two light streaks the comp lays across the athlete. */
.ax-hero__streaks {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.ax-hero__streaks span {
    position: absolute;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--ax-cyan), var(--ax-secondary), transparent);
}

.ax-hero__streaks span:first-child {
    top: 30%;
    width: min(420px, 44%);
    opacity: 0.7;
}

.ax-hero__streaks span:last-child {
    top: 46%;
    left: 48px;
    width: min(280px, 30%);
    height: 2px;
    opacity: 0.45;
}

.ax-hero__inner {
    position: relative;
    z-index: 2;
}

.ax-hero__chip { margin-bottom: 20px; }

.ax-hero__title {
    max-width: 22ch;
    margin-bottom: 18px;
}

.ax-hero__lead {
    max-width: 46rem;
    margin-bottom: 26px;
}

.ax-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Quick search: four facets and a submit, all of which the catalogue reads. */
.ax-hero__search {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: clamp(28px, 3.5vw, 40px);
    padding: 14px;
    border-radius: var(--ax-r-card);
    background: rgba(34, 41, 67, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

@media (min-width: 992px) {
    .ax-hero__search { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .ax-hero__search { grid-template-columns: minmax(0, 1fr); }
}

.ax-hero__submit { padding-inline: 16px; }

/* Telemetry matrix */
.ax-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

@media (min-width: 992px) {
    .ax-hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ax-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--ax-r-card);
    background: rgba(19, 26, 51, 0.72);
    backdrop-filter: blur(8px);
}

.ax-stat .ax-plate { background: var(--ax-container); }

.ax-stat__value {
    display: block;
    font-family: var(--ax-display);
    font-size: 1.625rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--ax-on-surface);
}

/* ---------------------------------------------------------------------------
   2. Spotlight
   ------------------------------------------------------------------------ */

.ax-section-bar--tight { margin-bottom: 16px; }

.ax-section-bar__lead {
    max-width: 46ch;
    margin: 10px 0 0;
}

.ax-spotlight__lead {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.ax-spotlight__note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ax-outline);
}

.ax-spotlight {
    display: grid;
    grid-template-columns: 7fr 5fr;
    border-radius: var(--ax-r-bento);
    overflow: hidden;
    background: var(--ax-container);
    box-shadow: var(--ax-lift-lg);
}

@media (max-width: 991.98px) {
    .ax-spotlight { grid-template-columns: minmax(0, 1fr); }
}

.ax-spotlight__media {
    position: relative;
    min-height: 380px;
    background-color: var(--ax-low);
    background-size: cover;
    background-position: center;
}

.ax-spotlight__media--blank {
    background-image:
        radial-gradient(110% 90% at 75% 20%, rgba(0, 210, 255, 0.35) 0%, rgba(1, 70, 229, 0) 60%),
        linear-gradient(148deg, #222943 0%, #131a33 55%, #050c25 100%);
}

.ax-spotlight__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(5, 12, 37, 0.85) 0%, rgba(5, 12, 37, 0.3) 58%, transparent 100%);
}

@media (max-width: 991.98px) {
    .ax-spotlight__media { min-height: 260px; }

    .ax-spotlight__media::after {
        background: linear-gradient(to top, rgba(5, 12, 37, 0.9) 0%, rgba(5, 12, 37, 0.25) 62%, transparent 100%);
    }
}

.ax-spotlight__badges {
    position: absolute;
    z-index: 1;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.ax-spotlight__plate {
    position: absolute;
    z-index: 1;
    left: 16px;
    bottom: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    width: fit-content;
    max-width: calc(100% - 32px);
    padding: 10px 14px;
    border-radius: var(--ax-r);
    background: rgba(5, 12, 37, 0.8);
    backdrop-filter: blur(8px);
}

.ax-spotlight__plate strong {
    display: block;
    font-family: var(--ax-display);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ax-on-surface);
}

.ax-spotlight__rule {
    flex: 0 0 auto;
    width: 1px;
    height: 26px;
    background: var(--ax-highest);
}

.ax-spotlight__body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(22px, 2.6vw, 36px);
    background: var(--ax-container);
}

.ax-spotlight__date {
    margin: 0 0 8px;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ax-primary);
}

.ax-spotlight__title {
    font-size: clamp(1.625rem, 2.3vw, 2.125rem);
    margin-bottom: 12px;
}

.ax-spotlight__title a { color: inherit; text-decoration: none; }

.ax-spotlight__title a:hover,
.ax-spotlight__title a:focus-visible { color: var(--ax-cyan); }

.ax-spotlight__text { margin: 0; }

.ax-spotlight__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.ax-fact {
    padding: 14px 16px;
    border-radius: var(--ax-r-card);
    background: var(--ax-low);
}

.ax-fact strong {
    display: block;
    margin-top: 4px;
    font-family: var(--ax-display);
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--ax-on-surface);
}

.ax-fact__note {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--ax-on-variant);
}

.ax-fact--blue { background: var(--ax-blue); }
.ax-fact--blue .ax-micro { color: var(--ax-on-blue); }
.ax-fact--blue strong { color: #ffffff; }
.ax-fact--blue .ax-fact__note { color: var(--ax-on-blue); }

/* ---------------------------------------------------------------------------
   3. Countdown
   ------------------------------------------------------------------------ */

.ax-countdown {
    padding: 16px;
    border-radius: var(--ax-r-card);
    background: var(--ax-high);
}

.ax-countdown__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 10px;
}

.ax-countdown__head .material-symbols-outlined {
    font-size: 1rem;
    color: var(--ax-primary);
}

.ax-countdown__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    text-align: center;
}

.ax-countdown__cell {
    padding: 8px 4px;
    border-radius: 6px;
    background: var(--ax-low);
}

.ax-countdown__value {
    display: block;
    font-family: var(--ax-display);
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    /* The digits change every second; without this the cells jitter as glyph
       widths change under them. */
    font-variant-numeric: tabular-nums;
    color: var(--ax-on-surface);
}

.ax-countdown__value--cyan { color: var(--ax-cyan); }
.ax-countdown__value--blue { color: var(--ax-secondary); }

.ax-countdown__live {
    margin: 0;
    font-family: var(--ax-display);
    font-size: 1.375rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ax-cyan);
}

/* ---------------------------------------------------------------------------
   4. Categories
   ------------------------------------------------------------------------ */

.ax-category {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: var(--ax-r-card);
    background: var(--ax-container);
    text-decoration: none;
    transition: background-color 0.25s ease;
}

.ax-category:hover,
.ax-category:focus-visible { background: var(--ax-high); }

.ax-category:hover .ax-plate,
.ax-category:focus-visible .ax-plate {
    background: var(--ax-cyan);
    color: var(--ax-on-cyan);
}

.ax-category__title {
    margin: 20px 0 10px;
    text-transform: uppercase;
    color: var(--ax-on-surface);
}

.ax-category__text {
    flex: 1;
    margin: 0 0 20px;
}

.ax-category__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 14px;
}

.ax-category__foot .material-symbols-outlined {
    font-size: 1.25rem;
    color: var(--ax-primary);
    transition: transform 0.2s ease;
}

.ax-category:hover .ax-category__foot .material-symbols-outlined {
    transform: translateX(4px);
}

/* ---------------------------------------------------------------------------
   5. Why register
   ------------------------------------------------------------------------ */

.ax-why__tag { margin-bottom: 16px; }
.ax-why__title { margin-bottom: 16px; }
.ax-why__lead { margin-bottom: 24px; }

.ax-benefit {
    height: 100%;
    padding: 20px;
    border-radius: var(--ax-r-card);
    background: var(--ax-low);
}

.ax-benefit .ax-plate { background: var(--ax-container); color: var(--ax-cyan); }

.ax-benefit__title {
    margin: 14px 0 6px;
    color: var(--ax-on-surface);
}

.ax-benefit__text { margin: 0; }

/* ---------------------------------------------------------------------------
   6. Partners
   ------------------------------------------------------------------------ */

.ax-partners { padding-block: clamp(36px, 4vw, 56px); }

.ax-partners__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ax-partners__title {
    margin-top: 6px;
    text-transform: uppercase;
    color: var(--ax-on-surface);
}

.ax-partners__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ax-partners__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--ax-r);
    background: var(--ax-container);
    font-family: var(--ax-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ax-on-variant);
}

.ax-partners__item .material-symbols-outlined {
    font-size: 1.125rem;
    color: var(--ax-primary);
}
