﻿/* ────────────────────────────────────────────────────────────────
   layout.css  –  Amberalis Header, Footer, Page Shell
   ──────────────────────────────────────────────────────────────── */

/* ── RESET / SHELL ────────────────────────────────────────────── */

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

body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    margin: 0 !important;
    background: var(--bg-dark, #121212);
    font-family: var(--font-body, 'Inter', sans-serif);
    overflow-y: scroll !important;
    overflow-x: hidden !important;
}

.main-content {
    flex: 1 !important;
    padding-top: 28px;
    padding-bottom: 48px;
    width: 100%;
    min-width: 0;
}

/* ── CONTAINER ────────────────────────────────────────────────── */

.container,
.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
}

@media (min-width: 640px) {
    .container { padding-left: 24px; padding-right: 24px; }
}

/* ── HEADER ───────────────────────────────────────────────────── */

.site-header {
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,176,46,.15);
    height: 56px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 16px rgba(0,0,0,.4);
    width: 100%;
}

.site-header__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (min-width: 640px) {
    .site-header__inner { padding: 0 24px; }
}

/* Logo */
.site-header__logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none !important;
    font-family: var(--font-head, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-amber, #FFB02E) !important;
    flex-shrink: 0;
}

.site-header__logo-mark {
    width: 28px;
    height: 28px;
    background: var(--primary-amber, #FFB02E);
    color: var(--bg-dark, #121212);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head, 'Montserrat', sans-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    flex-shrink: 0;
}

.site-header__logo:hover {
    color: var(--primary-amber, #FFB02E) !important;
    text-decoration: none !important;
}

.site-header__logo img {
    height: 28px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

/* Right actions */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Header buttons */
.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border-radius: var(--r-input, 4px);
    font-size: 12.5px;
    font-weight: 500;
    font-family: var(--font-body, 'Inter', sans-serif);
    cursor: pointer;
    text-decoration: none !important;
    transition: background var(--trans, 150ms ease), color var(--trans, 150ms ease), border-color var(--trans, 150ms ease);
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Ghost */
.header-btn--ghost {
    background: transparent;
    color: var(--text-2, #b0b4be) !important;
    border: 1px solid transparent;
}
.header-btn--ghost:hover {
    background: rgba(255,255,255,.06);
    color: var(--text-main, #F5F5F5) !important;
}

/* Outline */
.header-btn--outline {
    background: transparent;
    color: var(--text-2, #b0b4be) !important;
    border: 1px solid rgba(255,176,46,.25);
}
.header-btn--outline:hover {
    background: rgba(255,176,46,.08);
    color: var(--primary-amber, #FFB02E) !important;
    border-color: rgba(255,176,46,.5);
}

/* Primary */
.header-btn--primary {
    background: var(--primary-amber, #FFB02E);
    color: var(--bg-dark, #121212) !important;
    border: 1px solid transparent;
    font-weight: 700;
    font-family: var(--font-head, 'Montserrat', sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11.5px;
}
.header-btn--primary:hover {
    background: var(--primary-amber-h, #e89e1a);
    color: var(--bg-dark, #121212) !important;
    text-decoration: none !important;
}

/* Hide button text on very small screens, show icon only */
@media (max-width: 420px) {
    .header-btn--ghost .header-btn-label,
    .header-btn--outline .header-btn-label { display: none; }
    .header-btn { padding: 0 9px; }
}

/* ── RESPONSIVE HEADER ────────────────────────────────────────── */

/* Below 600px: hide logo wordmark, keep only the coloured square mark */
@media (max-width: 600px) {
    .site-header__logo-text {
        display: none;
    }

    /* If the wordmark is a bare text node we clip the logo to mark width */
    .site-header__logo {
        font-size: 0 !important;   /* collapses bare text nodes */
        gap: 0;
    }

    .site-header__logo-mark {
        font-size: 13px; /* restore mark's own font size */
    }
}

/* Below 520px: collapse all button labels, icon-only square buttons */
@media (max-width: 520px) {
    .site-header__inner {
        gap: 8px;
        padding: 0 12px;
    }

    .site-header__actions {
        gap: 4px;
    }

    .header-btn {
        padding: 0 9px;
        font-size: 0 !important;  /* hide bare text nodes inside buttons */
        min-width: 34px;
        justify-content: center;
    }

    /* Restore icon size and any explicit label spans */
    .header-btn svg {
        width: 15px;
        height: 15px;
    }

    .header-btn .header-btn-label,
    .header-btn span:not(.header-btn-icon) {
        display: none;
    }

    /* Restore primary button letter-spacing suppressed by font-size:0 */
    .header-btn--primary {
        letter-spacing: 0;
    }
}

/* Below 360px: tighten even further */
@media (max-width: 360px) {
    .site-header__inner {
        padding: 0 8px;
        gap: 6px;
    }

    .header-btn {
        padding: 0 7px;
        min-width: 30px;
        height: 30px;
    }
}

/* ── FOOTER ───────────────────────────────────────────────────── */

.site-footer {
    background: rgba(18,18,18,.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,176,46,.12);
    padding: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.site-footer__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

@media (min-width: 640px) {
    .site-footer__inner { padding: 0 24px; min-height: 52px; }
}

.site-footer__left {
    display: flex;
    align-items: center;
}

/* Logo and name hidden in footer — header is always visible */
.site-footer__logo,
.site-footer__logo-mark {
    display: none !important;
}

.site-footer__copy {
    font-size: 12px;
    color: var(--text-3, #6e737f);
    padding-left: 0;
    border-left: none;
}

.site-footer__links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.site-footer__link {
    font-size: 12px;
    color: var(--text-3, #6e737f) !important;
    text-decoration: none !important;
    transition: color var(--trans, 150ms ease);
}
.site-footer__link:hover { color: var(--primary-amber, #FFB02E) !important; }

/* ── SUPPRESS Bootstrap navbar ────────────────────────────────── */
.navbar { display: none !important; }