/* ============================================================
   AWS SBG AdU — Base styles & shared chrome (all pages)
   ============================================================ */

@import url('https://fonts.cdnfonts.com/css/amazon-ember');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    background: var(--bg-gradient);
    background-repeat: no-repeat;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-sans);
    color: #ffffff;
    background: transparent;
    position: relative;
    min-height: 100vh;
    font-size: var(--text-base);
    line-height: 1.5;
}

/* Custom cursor */
body.custom-cursor-active,
body.custom-cursor-active * {
    cursor: none !important;
}

.custom-cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(34px * var(--ui-scale));
    height: calc(34px * var(--ui-scale));
    pointer-events: none;
    z-index: 99998;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-light) 0%, var(--glow-purple) 40%, var(--glow-deep) 62%, transparent 70%);
    filter: blur(6px);
    opacity: 0.8;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(20px * var(--ui-scale));
    height: calc(20px * var(--ui-scale));
    pointer-events: none;
    z-index: 99999;
    background: url("../img/cursor.png") center / contain no-repeat;
    transform: translate(-50%, -50%);
    will-change: transform;
}

@media (pointer: coarse) and (hover: none) {
    .custom-cursor,
    .custom-cursor-glow {
        display: none;
    }
}

/* Phones, tablets (incl. iPad): no hero card cursor-tilt */
@media (hover: none), (pointer: coarse) {
    .home-page #section1-tilt-card {
        transform: none !important;
        transition: none !important;
    }
}

.touch-primary-device .home-page #section1-tilt-card {
    transform: none !important;
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .home-page #section1-tilt-card {
        transform: none !important;
        transition: none !important;
    }
}

/* Shared animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 0 20px rgba(187, 175, 253, 0.08);
    }
    50% {
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 0 40px rgba(187, 175, 253, 0.15);
    }
}

.sticker {
    position: fixed;
    bottom: calc(30px * var(--ui-scale));
    right: calc(30px * var(--ui-scale));
    width: calc(120px * var(--ui-scale));
    height: auto;
    z-index: 999;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
}

/* ============================================================
   Header — full-width fixed navigation bar.
   Brand on the left, flat nav links + CTA on the right.
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--page-padding);
    height: calc(72px * var(--ui-scale));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.site-header .top-bar {
    display: flex;
    align-items: center;
    gap: calc(10px * var(--ui-scale));
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.site-header .top-bar:hover {
    opacity: 0.85;
}

.site-header .top-bar:active {
    transform: scale(0.98);
}

.site-header .top-bar-logo {
    width: calc(34px * var(--ui-scale));
    height: calc(34px * var(--ui-scale));
    border-radius: 50%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
}

.site-header .top-bar-text {
    font-size: var(--text-nav);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    color: rgba(255, 255, 255, 0.92);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    letter-spacing: -0.2px;
    line-height: 1.1;
}

.top-bar-text .brand-short {
    display: none;
}

/* ---- Nav links (right side) ---- */
.nav-links {
    display: flex;
    align-items: center;
    gap: calc(6px * var(--ui-scale));
}

.nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--text-nav);
    font-weight: 500;
    text-decoration: none;
    padding: calc(8px * var(--ui-scale)) calc(16px * var(--ui-scale));
    border-radius: 6px;
    white-space: nowrap;
    line-height: 1;
    position: relative;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: #ffffff;
    font-weight: 600;
}

/* CTA "Join Us" button — outlined pill with orange/amber border */
.nav-link--cta {
    color: #ffffff;
    background: var(--aws-orange);
    font-weight: 600;
    border: 1.5px solid var(--aws-orange);
    border-radius: 6px;
    padding: calc(8px * var(--ui-scale)) calc(22px * var(--ui-scale));
    margin-left: calc(8px * var(--ui-scale));
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-link--cta:hover {
    color: #ffffff;
    background: var(--aws-orange-hover);
    border-color: var(--aws-orange-hover);
    box-shadow: 0 4px 15px rgba(242, 155, 60, 0.4);
}

.nav-link--cta.active {
    color: #ffffff;
    background: var(--aws-orange);
    border-color: var(--aws-orange);
}

/* Subpage shared patterns */
.page-back,
.events-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 600;
    padding: calc(8px * var(--ui-scale)) calc(18px * var(--ui-scale));
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    margin-bottom: calc(28px * var(--ui-scale));
}

.page-back:hover,
.events-back:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.page-back .arrow,
.events-back .arrow {
    transition: transform 0.25s ease;
}

.page-back:hover .arrow,
.events-back:hover .arrow {
    transform: translateX(-4px);
}

.page-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-md);
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.join-page,
.sbg-page,
.events-page,
.of-page,
.oh-page {
    position: relative;
    z-index: 1;
    padding: calc(130px * var(--ui-scale)) var(--page-padding) calc(40px * var(--ui-scale));
}

.join-hero,
.sbg-hero,
.events-header,
.of-hero,
.oh-hero {
    text-align: center;
    margin-bottom: calc(40px * var(--ui-scale));
    animation: fadeInUp 0.8s ease-out both;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-hero-logo {
    width: calc(160px * var(--ui-scale));
    height: calc(160px * var(--ui-scale));
    border-radius: calc(28px * var(--ui-scale));
    object-fit: contain;
    filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.5));
    margin: 0 auto calc(28px * var(--ui-scale));
    display: block;
}

.page-hero-logo--flat {
    border-radius: 0;
}

.join-hero h1,
.sbg-hero h1,
.events-header h1,
.of-hero h1,
.oh-hero h1 {
    font-size: var(--text-hero);
    font-weight: 800;
    line-height: 1.04;
    margin-bottom: var(--space-md);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.join-hero p,
.sbg-hero p,
.events-header p,
.events-subtitle,
.of-hero p,
.oh-hero p {
    font-size: var(--text-subtitle);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

/* Site footer */
.site-footer {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    z-index: 2;
    isolation: isolate;
}

.site-footer-card {
    position: relative;
    width: 100%;
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.site-footer-card::before {
    display: none;
}

.site-footer-main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: calc(48px * var(--ui-scale)) var(--page-padding) calc(32px * var(--ui-scale));
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(18px * var(--ui-scale));
}

.site-footer-logo-row {
    display: flex;
    align-items: center;
    gap: calc(16px * var(--ui-scale));
}

.site-footer-logo {
    width: calc(56px * var(--ui-scale));
    height: calc(56px * var(--ui-scale));
    border-radius: 12px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    flex-shrink: 0;
}

.site-footer-titles {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.site-footer-title {
    font-size: var(--text-xl);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-footer-subtitle {
    font-size: var(--text-sm);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.5px;
}

.site-footer-desc {
    max-width: 540px;
    margin: 0;
    font-size: var(--text-md);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.site-footer-socials {
    display: flex;
    gap: calc(14px * var(--ui-scale));
    margin-top: 4px;
}

.site-footer-social {
    width: calc(46px * var(--ui-scale));
    height: calc(46px * var(--ui-scale));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--aws-orange);
    border: 1px solid rgba(242, 155, 60, 0.6);
    box-shadow: 0 6px 18px rgba(242, 155, 60, 0.3);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

button.site-footer-social {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.site-footer-social:hover {
    transform: translateY(-3px);
    background: var(--aws-orange-hover);
    box-shadow: 0 0 22px rgba(242, 155, 60, 0.55);
}

.site-footer-social svg {
    width: calc(20px * var(--ui-scale));
    height: calc(20px * var(--ui-scale));
    display: block;
}

.site-footer-bottom {
    position: relative;
    z-index: 1;
    padding: calc(16px * var(--ui-scale)) var(--page-padding) calc(20px * var(--ui-scale));
    text-align: center;
    font-size: var(--text-xs);
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.55);
    background: #000000;
}

.footer-copy-toast {
    position: fixed;
    bottom: calc(28px + env(safe-area-inset-bottom));
    left: 50%;
    z-index: 10010;
    transform: translateX(-50%) translateY(10px);
    padding: 12px 20px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(38, 32, 58, 0.96) 0%, rgba(22, 16, 38, 0.96) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-copy-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Finder window footer — branding + community stats (one line) */
[class$="-finder-footer"],
.section3-footer {
    padding: 8px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: nowrap;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    background: rgba(30, 30, 35, 0.9);
    min-height: 32px;
    font-family: var(--font-sans);
}

[class$="-finder-footer"] > span,
.section3-footer > span {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
}

[class$="-finder-footer-items"],
.section3-footer-items {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex-shrink: 0;
}

[class$="-finder-footer-items"] span,
.section3-footer-items span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.35);
    font-variant-numeric: tabular-nums;
}
