/* ============================================================
   DASHBOARD — PANEL SYSTEM (PHASE 11A-3)
   File: /assets/css/dashboard/panels.css

   PURPOSE
   ============================================================
   Consolidated panel styling extracted from gf-dashboard-pages.css.
   Covers all dashboard panel types: core panels, wallet hero, wishlist,
   profile settings, notifications, social, and transactions filters.

   EXCLUDED (kept in old file)
   ============================================================
   - .gf-btn-primary (global utility, used by checkout/public pages)
   - Creator tags system (Phase 11A-3b)

   LAYOUT BREAKPOINTS
   ============================================================
   - Desktop (≥1024px): Full-width panels in grid
   - Tablet (768-1023px): Adjusted spacing, reduced grid cols
   - Mobile (≤640px): Single column, reduced font sizes
============================================================ */


/* ============================================================
   PANELS
============================================================ */

.gf-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: #ffffff;
  border: 1px solid rgba(30, 20, 60, 0.06);
  border-radius: 18px;
  padding: 22px 24px;

  box-shadow: 0 12px 28px rgba(25, 10, 70, 0.08);
}

.gf-panel-header--muted {
  padding: 16px 20px;
  margin: -28px -32px 18px;
  border-radius: 18px 18px 0 0;
}

.gf-panel-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #2f2f3a;
}

.gf-panel-meta {
  flex-grow: 1;
  margin-bottom: 18px;

  font-size: 14px;
  line-height: 1.5;
  color: #6b6f85;
}

.gf-panel-meta strong {
  color: #6d5cff;
  font-weight: 700;
}

/* Featured panel lift */
.gf-panel--featured {
  box-shadow: 0 16px 36px rgba(88, 60, 200, 0.25);
}


/* ============================================================
   STATS
============================================================ */

.gf-stat-amount {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gf-primary);
  margin-bottom: 4px;
}

.gf-stat-inline {
  font-size: 18px;
  font-weight: 700;
  color: var(--gf-text-main);
}

.gf-stat-inline strong {
  font-size: 22px;
  color: var(--gf-primary);
}

.gf-stat-sep {
  opacity: 0.4;
  margin: 0 4px;
}


/* ============================================================
   WISHLIST SUMMARY (COMPONENT)
============================================================ */

.gf-wishlist-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gf-wishlist-summary .gf-stat-main {
  font-size: 16px;
  font-weight: 500;
  color: #2a2a2a;
}

.gf-wishlist-summary .gf-stat-main strong {
  font-weight: 700;
  color: var(--gf-primary);
}

.gf-wishlist-summary .gf-stat-sub {
  display: flex;
  align-items: center;
  gap: 6px;

  font-size: 13px;
  color: #6b6f7a;
}

.gf-wishlist-summary .gf-stat-sub strong {
  font-weight: 600;
  color: #2a2a2a;
}

.gf-wishlist-summary .gf-dot {
  opacity: 0.45;
}


/* ============================================================
   PROFILE FOOTER
============================================================ */

.gf-profile-footer {
  border-top: 1px solid rgba(120, 90, 255, 0.15);
  padding-top: 12px;
  margin-top: 12px;
}

/* status + buttons never shrink */
.gf-profile-footer,
.gf-profile-footer * {
  flex-shrink: 0;
}


/* =====================================================
   DASHBOARD WISHLIST — ALIGN WITH SIDEBAR
===================================================== */

.gf-dashboard-page .gf-wishlist-grid {
  justify-content: start;
}

/* Desktop */
@media (min-width: 1024px) {
    .gf-dashboard-page .gf-wishlist-grid {
        grid-template-columns: repeat(5, 175px);
        gap: 15px;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .gf-dashboard-page .gf-wishlist-grid {
    grid-template-columns: repeat(3, 200px);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .gf-dashboard-page .gf-wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* =====================================================
   TRANSACTIONS FILTERS
===================================================== */

.gf-transactions-filters{
display:flex;
gap:10px;
margin-bottom:25px;
}

/* ===============================
   FILTER BUTTON — DEFAULT
=============================== */
.gf-filter {
    padding: 6px 14px;
    border-radius: 20px;

    background: #fff;
    color: #8A5CFF; /* 🔴 purple text */

    border: 1px solid rgba(138, 92, 255, 0.3);

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    transition: all .2s ease;
}

/* ===============================
   HOVER (optional but clean)
=============================== */
.gf-filter:hover {
    background: rgba(138, 92, 255, 0.08);
    border-color: rgba(138, 92, 255, 0.5);
}

/* ===============================
   ACTIVE (SELECTED)
=============================== */
.gf-filter.active {
    background: #8A5CFF;
    color: #fff;

    border-color: #8A5CFF;

    box-shadow: 0 4px 10px rgba(138, 92, 255, 0.25);
}


/* ============================================================
   PANEL HEADER — ICON + TEXT LAYOUT
============================================================ */

.gf-panel-header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gf-panel-header-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.gf-panel-subtitle {
  font-size: 12px;
  color: rgba(47, 47, 58, 0.55);
  margin-top: 1px;
  font-weight: 700;
}


/* ============================================================
   BTN-OUTLINE — ARROW + CONSISTENT STYLING
============================================================ */

/* SINGLE SOURCE OF TRUTH for panel CTAs — <a> and <button> must be
   pixel-identical in every state (rest, hover, press, post-click).
   !important pins the colours so no element-level rule (style.css
   button baseline, Astra, anything cached) can recolour them. */
.gf-btn-outline,
button.gf-btn-outline,
a.gf-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(124, 77, 255, 0.28) !important;
  background: #ffffff !important;
  color: #6d28d9 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: inherit;
}

/* mouse/touch focus identical to rest; placed BEFORE :hover so a
   focused button still shows the hover tint while hovered */
.gf-btn-outline:focus,
.gf-btn-outline:active {
  outline: none;
  background: #ffffff !important;
  border-color: rgba(124, 77, 255, 0.28) !important;
  color: #6d28d9 !important;
}

.gf-btn-outline:focus-visible {
  outline: 2px solid rgba(124, 77, 255, 0.35);
  outline-offset: 2px;
}

.gf-btn-outline:hover {
  background: rgba(124, 77, 255, 0.06) !important;
  border-color: rgba(124, 77, 255, 0.45) !important;
  color: #6d28d9 !important;
  transform: translateY(-1px);
}


/* ============================================================
   WALLET HERO PANEL
============================================================ */

.gf-panel--wallet-hero {
  background: linear-gradient(140deg, #2e1a6e 0%, #1a0f4a 55%, #0f0830 100%);
  border: 1px solid rgba(138, 92, 255, 0.25);
  border-radius: 18px;
  padding: 24px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: space-between;

  box-shadow:
    0 20px 48px rgba(14, 8, 48, 0.38),
    0 4px 16px rgba(138, 92, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.gf-wallet-hero-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
}

.gf-wallet-hero-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.gf-wallet-hero-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.gf-wallet-hero-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
  margin-top: 2px;
}

/* Decorative card graphic */
.gf-wallet-hero-graphic {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 72px;
  height: 50px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  pointer-events: none;
}

.gf-wallet-hero-graphic::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(138, 92, 255, 0.5);
  box-shadow: -10px 0 0 rgba(255, 200, 100, 0.3);
}

/* Total amount */
.gf-wallet-hero-amount {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 18px;
}

/* Available / Pending split */
.gf-wallet-hero-split {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.gf-wallet-hero-split-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gf-wallet-hero-split-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gf-wallet-info-tip {
  font-size: 11px;
  opacity: 0.6;
  cursor: help;
}

.gf-wallet-hero-split-value {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.gf-wallet-hero-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 20px;
  line-height: 1;
  align-self: center;
}

/* KYC status pill */
.gf-wallet-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  width: fit-content;
}

.gf-wallet-hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gf-wallet-hero-status--enabled {
  background: rgba(22, 163, 74, 0.2);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: #86efac;
}

.gf-wallet-hero-status--enabled .gf-wallet-hero-status-dot {
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.7);
}

.gf-wallet-hero-status--disabled {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
}

.gf-wallet-hero-status--disabled .gf-wallet-hero-status-dot {
  background: #f87171;
}

/* Go to wallet button */
.gf-wallet-hero-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #4c1d95;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: background 0.15s ease, transform 0.12s ease;
}

/* pin every state — clicked/focused must look identical to rest,
   immune to global link/button recolour rules */
.gf-wallet-hero-btn,
.gf-wallet-hero-btn:focus,
.gf-wallet-hero-btn:active {
  outline: none;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #4c1d95 !important;
}

.gf-wallet-hero-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.gf-wallet-hero-btn:hover {
  background: #ffffff !important;
  color: #4c1d95 !important;
  transform: translateY(-1px);
}

.gf-wallet-hero-btn-arrow {
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 640px) {
  .gf-wallet-hero-amount {
    font-size: 32px;
  }

  .gf-wallet-hero-graphic {
    display: none;
  }
}


/* Wishlist panel styling moved to dashboard/wishlist-panel.css */


/* ============================================================
   PROFILE SETTINGS PANEL
============================================================ */

.gf-profile-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gf-profile-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  min-height: 32px;
}

.gf-profile-row-icon {
  flex-shrink: 0;
  color: #8a8aac;
}

.gf-profile-row-label {
  flex: 1;
  color: #4f5266;
  font-weight: 500;
}

.gf-profile-row-value {
  font-size: 12.5px;
  color: #2f2f3a;
  font-weight: 600;
  text-align: right;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Status chips */
.gf-profile-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.gf-profile-chip--green {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
}

.gf-profile-chip--grey {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.10);
  color: #6b7280;
}

.gf-profile-chip--amber {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}


/* ============================================================
   NOTIFICATIONS + SOCIAL — SHARED ROW STYLE
============================================================ */

.gf-notif-summary,
.gf-social-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gf-notif-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  min-height: 32px;
}

.gf-notif-row-icon {
  flex-shrink: 0;
  color: #8a8aac;
  width: 16px;
  height: 16px;
}

.gf-notif-row-label {
  flex: 1;
  color: #4f5266;
  font-weight: 500;
}

.gf-notif-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.gf-notif-pill--on {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
}

.gf-notif-pill--off {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.09);
  color: #6b7280;
}

/* X (Twitter) logo pill in social panel */
.gf-social-x-logo {
  font-size: 14px;
  font-weight: 900;
  color: #1a1a1a;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  line-height: 1;
}


/* ============================================================
   BOTTOM ROW WRAPPER (Notifications + Social)
   Sits inside the parent .gf-dashboard-grid and spans all
   columns, providing its own 2-column sub-grid.
============================================================ */

.gf-panels-bottom-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 767px) {
  .gf-panels-bottom-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .gf-panels-bottom-row {
    gap: 20px;
  }
}


/* ============================================================
   PANEL HEADER COLORS — SOFT FADED GRADIENTS
   Premium, polished headers with subtle color gradients
============================================================ */

/* Wishlist — Warm gold faded gradient */
.gf-panel:has(.gf-wishlist-active) .gf-panel-header--muted {
  background: linear-gradient(
    to bottom,
    rgba(252, 211, 77, 0.25),
    rgba(251, 191, 36, 0.08)
  );
  color: #92400e;
}

/* Profile Settings — Soft blue faded gradient */
.gf-panel:has(.gf-profile-summary) .gf-panel-header--muted {
  background: linear-gradient(
    to bottom,
    rgba(147, 197, 253, 0.25),
    rgba(191, 219, 254, 0.08)
  );
  color: #0c4a6e;
}

/* Notifications — Soft peach faded gradient */
.gf-panel--notifications .gf-panel-header--muted {
    background: linear-gradient(
        rgba(16, 185, 129, 0.15),
        rgba(255, 255, 255, 0.08)
    );
  color: #047857;
}

/* Social Integration — Soft purple faded gradient */
.gf-panel:has(.gf-social-summary) .gf-panel-header--muted {
  background: linear-gradient(
    to bottom,
    rgba(168, 85, 247, 0.25),
    rgba(217, 70, 239, 0.08)
  );
  color: #6b21a8;
}
