/* =====================================================
   GIFTflow UI PRIMITIVES
   File: assets/css/gf-ui.css
   Purpose:
   - Reusable UI components only
   - NO layout
   - NO page-specific styling
===================================================== */

/* =====================================================
   HEADER / LOGO (ASTRA SAFE)
===================================================== */

.ast-header-site-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-logo {
  height: 50px;
  width: auto;
}

.gf-logo-text {
  height: 22px;
  width: auto;
  transition: opacity .2s ease;
}

/* Logged-in or scrolled → icon only */
body.logged-in .gf-logo-text,
body.gf-header-scrolled .gf-logo-text {
  display: none;
}

/* =====================================================
   FEEDBACK / ERRORS
===================================================== */

.gf-error {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--gf-danger, #d63638);
}

/* =====================================================
   BUTTON SYSTEM (USES styles.css TOKENS)
===================================================== */

/* =====================================================
   SWITCH (TOGGLE)
===================================================== */

.gf-switch {
  display: inline-block;
}

.gf-switch input {
  display: none;
}

.gf-switch-slider {
  width: 42px;
  height: 22px;
  background: #d1d5db;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}

.gf-switch-slider::after {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--gf-bg-card);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform .2s ease;
}

.gf-switch input:checked + .gf-switch-slider {
  background: var(--gf-success, #22c55e);
}

.gf-switch input:checked + .gf-switch-slider::after {
  transform: translateX(20px);
}

/* =====================================================
   META TYPOGRAPHY (STACKED LABELS)
===================================================== */

.gf-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.gf-meta-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--gf-text-main);
  text-align: center;
}

.gf-meta-sub {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--gf-text-muted);
  text-align: center;
}

/* =====================================================
   TAB / PILL SYSTEM (GLOBAL)
===================================================== */

.gf-tabs {
  display: flex;
  gap: 8px;
}

/* Base tab */
.gf-tab {
  padding: 8px 16px;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 600;

  background: var(--gf-tab-inactive-bg);
  color: var(--gf-tab-inactive-text);

  cursor: pointer;
  user-select: none;

  border: none;
  box-shadow: none;
  transform: none;
}

/* Hover */
.gf-tab:not(.is-active):hover {
  background: var(--gf-tab-hover-bg);
}

/* Active */
.gf-tab.is-active {
  background: var(--gf-tab-active-bg);
  color: var(--gf-tab-active-text);
}



/* =====================================================
   GF — KILL ALL NATIVE BLUE STATES (FINAL)
===================================================== */

/* Kill tap highlight (mobile browsers) */
* {
  -webkit-tap-highlight-color: transparent;
}


/* Social icons — prevent blue flash */
.gf-social-ic,
.gf-social-ic:hover,
.gf-social-ic:focus,
.gf-social-ic:active,
.gf-social-ic:focus-visible {
  background-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

button:focus-visible,
a:focus,
a:active,
a:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background-color: inherit;
}

/* Avatar change button — force dark strip ALWAYS */
.gf-hero-action--avatar,
.gf-hero-action--avatar:hover,
.gf-hero-action--avatar:focus,
.gf-hero-action--avatar:active,
.gf-hero-action--avatar:focus-visible {
  background: rgba(0,0,0,0.65) !important;
  color: #fff !important;
  outline: none !important;
  box-shadow: none !important;
}

/* =========================================
   GF WALLET — KYC NOTICE
========================================= */

.gf-wallet-notice {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 10px;

  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;

  border-radius: 8px;
}

/* Soft amber (not warning red) */
.gf-wallet-notice--amber {
  background: rgba(241, 196, 15, 0.18);
  color: #8a6a00;
}

/* =========================================
   GF WALLET — NOTICE POSITION FIX
========================================= */

.gf-wallet-notice {
  margin-top: 6px;        /* was visually too low */
  margin-bottom: 12px;
}
/* =========================================
   GF WALLET — INLINE VERIFY ACTION
========================================= */

.gf-wallet-verify-link {
  background: none;
  border: 0;
  padding: 0;
  margin-left: 6px;

  font-weight: 600;
  font-size: inherit;

  color: var(--gf-primary);
  cursor: pointer;
  text-decoration: underline;
}

.gf-wallet-verify-link:hover {
  text-decoration: none;
}
@media (max-width: 768px) {

  .gf-wallet-notice {
    font-size: 14px;
    text-align: center;
    margin-top: 4px;     /* tighter to £0.00 */
  }

}
/* =========================================
   GF WALLET — AMBER NOTICE POSITION
========================================= */

.gf-wallet-notice {
  margin-top: 6px !important;   /* sits under £0.00 */
  margin-bottom: 12px;
}
/* =========================================
   GF WALLET — STRUCTURE FIX (CRITICAL)
========================================= */

/* Force wallet to stack naturally (kills space-between issues) */
.gf-panel--wallet {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Wallet content block */
.gf-wallet-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;                 /* THIS is the spacing control */
}

/* =========================================
   GF WALLET — AMBER NOTICE
========================================= */

.gf-wallet-notice {
  background: #fff6d8;
  color: #8a6d00;

  font-size: 13px;
  line-height: 1.4;

  padding: 8px 12px;
  border-radius: 10px;

  margin: 0;                /* ← kills the low positioning */
}

/* Inline action */
.gf-wallet-verify-link {
  margin-left: 6px;
  padding: 0;

  background: none;
  border: 0;

  font-weight: 600;
  font-size: inherit;

  color: var(--gf-primary);
  text-decoration: underline;
  cursor: pointer;
}

.gf-wallet-verify-link:hover {
  text-decoration: none;
}

/* 
USED FOR FOOTER 
*/

/* =========================================
   ALIGN ASTRA + DASHBOARD CONTENT WIDTH
========================================= */

.ast-container{
  max-width: var(--gf-content-width, 1180px);
  margin: 0 auto;
  padding-left: var(--gf-page-pad, 24px);
  padding-right: var(--gf-page-pad, 24px);
}

.gf-dashboard-inner{
  max-width: var(--gf-content-width, 1180px);
  margin: 0 auto;
  padding-left: var(--gf-page-pad, 24px);
  padding-right: var(--gf-page-pad, 24px);
}
