/* Layout shell CSS moved to assets/css/layouts/
   - Dashboard layout shell → layouts/dashboard.css
   - Public page layout shell → layouts/public.css
   See Phase 10 documentation for details. */

/* =====================================================
   GiftFlow Page Background – Radial Glow (Global)
===================================================== */

#content.site-content,
.gf-app-shell,
.gf-dashboard,
.gf-page,
.gf-main-page {
  background:
    radial-gradient(
      ellipse at 50% 220px,
      rgba(124, 77, 255, 0.07) 0%,
      rgba(124, 77, 255, 0.04) 35%,
      rgba(124, 77, 255, 0.02) 55%,
      rgba(245, 246, 255, 1) 78%
    );
  min-height: 100vh;
}


/* Desktop enhancement */

@media (min-width: 1024px) {
  #content.site-content,
  .gf-app-shell,
  .gf-dashboard,
  .gf-page,
  .gf-main-page {
    background:
      radial-gradient(
        ellipse at 50% 260px,
        rgba(124, 77, 255, 0.08) 0%,
        rgba(124, 77, 255, 0.045) 40%,
        rgba(124, 77, 255, 0.02) 60%,
        rgba(245, 246, 255, 1) 82%
      );
  }
}

/* =====================================================
   WISHLIST — DESKTOP LAYOUT (FINAL, AUTHORITATIVE)
   Sidebar preserved • Accordion add-item • 5–6 grid
===================================================== */

@media (min-width: 1025px) {

  /* =================================================
     LAYOUT SAFETY — DO NOT BREAK SIDEBAR
  ================================================= */
  .gf-dashboard-layout {
    display: flex;
  }

  .gf-dashboard-sidebar {
    width: 300px;
    flex-shrink: 0;
  }

  .gf-dashboard--wishlist .gf-dashboard {
    flex: 1;
    display: block;
  }

  /* =================================================
     CONTENT WIDTH (CONTROLLED, NOT FULL BLEED)
  ================================================= */
  .gf-dashboard--wishlist {
    max-width: 1200px;
    margin: 0;
  }

  /* =================================================
     PAGE HEADER
  ================================================= */
  .gf-dashboard--wishlist .gf-page-header {
    max-width: 720px;
    margin-bottom: 24px;
  }

  /* =================================================
     ADD ITEM CARD (ACCORDION CONTAINER)
  ================================================= */
  .gf-dashboard--wishlist .gf-card.gf-section {
    max-width: 520px;
    margin-bottom: 16px;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  }

  /* =================================================
     ACCORDION HEADER
  ================================================= */
  .gf-wishlist-accordion-toggle {
    width: 100%;
    padding: 18px 22px;
    background: #ffffff;
    border: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
  }

  .gf-wishlist-accordion-toggle span {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .gf-wishlist-accordion-toggle::after {
    content: "▾";
    font-size: 1.1rem;
    color: #FFFFFF;
    transition: transform 0.25s ease;
  }

  .gf-wishlist-accordion.is-open
  .gf-wishlist-accordion-toggle::after {
    transform: rotate(180deg);
  }

  /* =================================================
     ACCORDION CONTENT
  ================================================= */
  .gf-wishlist-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .gf-wishlist-accordion.is-open
  .gf-wishlist-accordion-content {
    max-height: 900px;
  }

  .gf-wishlist-accordion-content > * {
    padding: 22px;
    padding-top: 0;
  }


  .gf-dashboard--wishlist .gf-help {
    margin-top: 6px;
    opacity: 0.75;
  }

  /* =================================================
     TABS — ALWAYS OUTSIDE ACCORDION
  ================================================= */
  .gf-dashboard--wishlist .gf-wishlist-tabs {
    max-width: 520px;
    margin: 12px 0 24px;
    display: flex;
    gap: 12px;
  }

  /* =================================================
     INVENTORY GRID
  ================================================= */
  .gf-dashboard--wishlist .gf-content {
    margin-top: 8px;
  }

  .gf-dashboard--wishlist .gf-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }

  /* 5 columns */
  @media (min-width: 1200px) {
    .gf-dashboard--wishlist .gf-wishlist-grid {
      grid-template-columns: repeat(5, 1fr);
    }
  }

  /* 6 columns */
  @media (min-width: 1440px) {
    .gf-dashboard--wishlist .gf-wishlist-grid {
      grid-template-columns: repeat(6, 1fr);
    }
  }

  /* =================================================
     CARD IMAGE SIZE (DESKTOP ONLY)
  ================================================= */
  .gf-dashboard--wishlist .gf-wishlist-thumb img {
    width: 100%;
    height:100%;
	object-fit: cover;      /* ← KEY CHANGE */
	object-position: center 20%;/* ← ensures centre anchor */
    display: block;
	overflow: hidden;
	border: 1px solid #e9e9f2;
	
  }
}

/* =====================================================
   DASHBOARD SIDEBAR — FINAL, PREMIUM, STICKY
   Desktop only • Controlled weight • App-like
===================================================== */

@media (min-width: 1025px) {

  /* Sidebar shell */
  .gf-dashboard-sidebar {
    width: 300px;
    flex-shrink: 0;

    background: var(--gf-bg-page, #f6f7fb);
    border-right: 1px solid rgba(0,0,0,0.06);

    padding: 28px 0;

    /* Sticky behaviour */
    position: sticky;
    top: var(--gf-header-height, 80px);
    height: calc(100vh - var(--gf-header-height, 80px));
    overflow-y: auto;
  }

  /* Remove scrollbar ugliness */
  .gf-dashboard-sidebar::-webkit-scrollbar {
    width: 6px;
  }
  .gf-dashboard-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.08);
    border-radius: 10px;
  }

  /* Brand block */
  .gf-sidebar-brand {
    padding-left: 36px;
    padding-right: 20px;
    margin-bottom: 32px;
  }

  .gf-sidebar-logo {
    display: block;
    max-width: 140px;
  }

  /* Navigation wrapper */
  .gf-sidebar-nav {
    padding-left: 36px;
    padding-right: 20px;
  }

  /* Nav links — base */
  .gf-sidebar-link {
    display: flex;
    align-items: center;

    padding: 12px 14px;
    margin-left: -14px; /* optical alignment */

    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;

    color: #1f2937;
    text-decoration: none;

    border-radius: 14px;

    transition:
      background 0.2s ease,
      color 0.2s ease,
      transform 0.15s ease;
  }

  /* Hover — subtle, premium */
  .gf-sidebar-link:hover {
    background: rgba(138, 92, 255, 0.08);
    color: #5b3df5;
  }

  /* Active state — OWNED */
  .gf-sidebar-link.is-active {
    background: linear-gradient(
      135deg,
      rgba(138, 92, 255, 0.18),
      rgba(138, 92, 255, 0.10)
    );

    color: #4f2dff;
    font-weight: 700;

    box-shadow:
      inset 0 0 0 1px rgba(138, 92, 255, 0.18),
      0 6px 14px rgba(138, 92, 255, 0.12);
  }

  /* Prevent Astra focus styles */
  .gf-sidebar-link:focus,
  .gf-sidebar-link:active {
    outline: none;
    box-shadow: none;
  }
}

/* =========================
   TABLET (768px–1024px)
========================= */
@media (min-width: 768px) and (max-width: 1024px) {

  .gf-dashboard-layout {
    display: block;
  }

  .gf-dashboard-sidebar {
    display: none;
  }

/*  .gf-dashboard {
    padding: 24px;
  }
*/

}

/* =========================
   MOBILE (<768px)
========================= */
@media (max-width: 767px) {

  .gf-dashboard-layout {
    display: block;
  }

  .gf-dashboard-sidebar {
    display: none;
  }

}

/* ============================================================
   MARKETING PAGES (HOME / FAQ / T&C)
============================================================ */

/* Page wrapper */
.gf-page {
    width: 100%;
/*    padding-top: 120px; */ 	
}
/* =========================================================
   DASHBOARD PAGES — BYPASS ASTRA CONTENT WRAPPER
   ========================================================= */

.gf-dashboard-page #content.site-content {
    padding: 0 !important;
    margin: 0 !important;
}

.gf-dashboard-page .ast-container {
    max-width: none;
    padding: 0;
}

/* ============================================================
   CONTENT SECTIONS (WHY / FAQ / T&C)
============================================================ */

.gf-section {
    background:
        linear-gradient(
            180deg,
            rgba(138,92,255,0.04),
            rgba(138,92,255,0.00) 40%
        ),
        var(--gf-bg-card);
}

.gf-section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 12px;
}

.gf-section-sub {
    text-align: center;
    color: var(--gf-text-muted);
    margin-bottom: 28px;
}

/* FAQ */
.gf-faq {
    max-width: 820px;
    margin: 0 auto;
}

.gf-faq details {
    background: #F9F7FF;
    border: 1px solid rgba(138,92,255,0.2);
    border-radius: 14px;
    margin-bottom: 14px;
}

.gf-faq summary {
    padding: 18px 22px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.gf-faq summary::after {
    content: "▾";
    position: absolute;
    right: 18px;
    color: var(--gf-primary);
}

.gf-faq p {
    padding: 0 22px 20px;
    color: var(--gf-text-muted);
}


/* ============================================================
   PREMIUM TYPOGRAPHY REFINEMENT (GLOBAL)
   Non-destructive – layout safe
============================================================ */

/* Base text */
body {
    font-size: 15px;
    line-height: 1.65;
    color: #2a2a33;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings – premium weight + spacing */
.gf-page-title,
.gf-section-title {
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #15151d;
}

/* Large page titles */
.gf-page-title {
    font-size: clamp(2.1rem, 3vw, 2.6rem);
    margin-bottom: 6px;
}


/* Subtitles / supporting copy */
.gf-page-sub,
.gf-section-sub {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(42, 42, 55, 0.7);
	margin-left:6px;
	margin-right: 6px;
}

/* Helper / hint text */
.gf-help {
    font-size: 0.75rem;
    color: rgba(42, 42, 55, 0.55);
}


/* Tabs */
.gf-wishlist-tab {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Wishlist card titles */
.gf-wishlist-title-display {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1b1b24;
}

/* Wishlist prices */
.gf-wishlist-price-display {
font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
    letter-spacing: -0.01em;
  color: var(--gf-purple);
  text-align: center;
}

/* =====================================================
   DASHBOARD SURFACE NORMALISATION
   Fix: item cards washed out vs form
===================================================== */

/* Section cards (form + others) */
.gf-card,
.gf-add-wishlist,
.gf-wishlist-card {
  background: #ffffff; /* SAME WHITE */
}

/* Wishlist grid container should NOT tint cards */
.gf-wishlist-grid {
  background: transparent;
}


.gf-user-image-wrap.is-disabled {
  opacity: 0.45;
}

.gf-user-image-wrap.is-disabled button.gf-image-option {
  pointer-events: none;
}

.gf-image-disabled-note {
  font-size: 12px;
  color: #b91c1c;
  margin-top: 6px;
}


/* ===================================
    DASHBOARD TEMPLATE STYLING
======================================  */

/* Profile page surface alignment */
.gf-dashboard--profile .gf-content {
  max-width: 880px;
}

.gf-dashboard--profile .gf-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(30, 20, 80, 0.08);
  border: 1px solid rgba(138, 92, 255, 0.08);
}

.gf-dashboard--profile .gf-card + .gf-card {
  margin-top: 24px;
}

/* Profile form refinement */
.gf-dashboard--profile .gf-input,
.gf-dashboard--profile textarea {
  background: #f7f6ff;
  border: 1px solid rgba(138, 92, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
}

.gf-dashboard--profile .gf-input:focus,
.gf-dashboard--profile textarea:focus {
  outline: none;
  border-color: #8a5cff;
  box-shadow: 0 0 0 3px rgba(138, 92, 255, 0.15);
}

.gf-dashboard--profile h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.gf-dashboard--profile .gf-help {
  margin-bottom: 16px;
}


.gf-dashboard-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* =====================================================
   DASHBOARD APP — BASE SHELL (AUTHORITATIVE)
   Matches Wishlist sidebar alignment WITHOUT width clamp
===================================================== */

@media (min-width: 1025px) {

  .gf-dashboard--app {
    max-width: none;        /* <-- key difference */
    padding: 0 32px;
    margin: 0;
  }

  .gf-dashboard--app .gf-page-header {
    max-width: 880px;
    margin-bottom: 24px;
  }

  .gf-dashboard--app .gf-content,
  .gf-dashboard--app .gf-section {
    max-width: 880px;
  }
}


/* ================================
   HARD ASTRA NEUTRALISATION
   Dashboard + App pages only
================================ */

.gf-dashboard-page .ast-container,
.gf-dashboard-page .site-content,
.gf-dashboard-page .content-area,
.gf-dashboard-page .site-main {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Ensure GiftFlow shell owns spacing */
.gf-dashboard-page .gf-app-shell {
  width: 100%;
}
/* Header must grow to contain hero */
.gf-app-header {
  height: auto;
  overflow: visible; /* CRITICAL */
}


/* =====================================================
   GF HERO — MOBILE FIRST (AUTHORITATIVE)
===================================================== */

.gf-hero-breakout{
  position:relative;
  background:transparent;
}



/* Banner button */
/* =====================================================
   UPDATE BANNER BUTTON — SUBTLE (MATCH AVATAR CHANGE)
===================================================== */

.gf-hero-action--banner{
  position:absolute;
  top:5px;
  right:5px;
  z-index:5;

  height:26px;
  padding:0 12px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:rgba(0,0,0,.55);
  color:#fff;

  font-size:10px;
  font-weight:600;
  border-radius:999px;

  backdrop-filter: blur(2px);
}

.gf-hero-breakout{
  position: relative;
}

/* =====================================================
   AVATAR CHANGE — CURVED STRIP INSIDE CIRCLE (LOCKED)
===================================================== */

.gf-hero-action--avatar{
  position:absolute;
  left:0;
  right:0;
  bottom:0;

  height:14px;
  padding:0 10px;

  display:flex;
  align-items:center;
  justify-content:center;

  background: rgba(0,0,0,.55);

  color:#fff;
  font-size:10px;
  font-weight:700;
  line-height:1;

  border-radius:0 0 999px 999px !important;

  box-shadow:0 -2px 10px rgba(138,92,255,.30) !important;
}

/* make sure the avatar clips it into the circle */
.gf-hero-avatar{
  overflow:hidden;
}

/* ================================
   HERO CONTENT ALIGNMENT — FINAL
================================ */

/* ==============================
   HERO IDENTITY — PREMIUM
============================== */

.gf-hero-name{
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.gf-hero-bio{
  max-width:720px;
  font-size:15px;
  line-height:1.6;
  color:#4b4b5a;
  margin-top:6px;
}
/* ==============================
   SOCIAL PILLS (HORIZONTAL SCROLL)
============================== */




.gf-hero-actions-row{
  margin-top:10px;
}


@media (max-width:768px){
    .gf-hero-details{

    border-radius:0 0 24px 24px;
  }
}

/* =====================================================
   ASTRA MOBILE — HARD NEUTRALISATION (FINAL)
   Desktop untouched
===================================================== */
@media (max-width: 1024px) {

  /* Kill Astra top offsets */
  body.ast-header-break-point,
  body.ast-theme-transparent-header {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* Remove invisible header spacers */
/*  .ast-header-spacer,
  .ast-mobile-header-wrap {
    display: none !important;
    height: 0 !important;
  }
*/
  /* Kill container padding & clamps */
  #page,
  #content,
  .site-content,
  .content-area,
  .site-main,
  .ast-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }

}


/* =====================================================
   WISHLIST HEADER — DESKTOP GRID ALIGNMENT
   Makes header match wishlist grid width
===================================================== */

@media (min-width:1024px){

  .gf-dashboard--wishlist .gf-page-header{

    max-width:920px;   /* matches 5-card grid width */
    margin-left:auto;
    margin-right:auto;

    display:grid;
   /*  grid-template-columns: 1fr 1fr; */
    gap:10px;

    align-items:center;

  }

  .gf-dashboard--wishlist .gf-page-title{
    grid-column:1 / -1;
  }

  .gf-dashboard--wishlist .gf-page-sub{
    max-width:520px;
  }

}
