/* ================================================================
   Gift City Funds — Shared Stylesheet
   AltWealth | India's Alternative Investment Platform
   Font: Inter (matches main site) | Icons: Font Awesome 6.5
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --navy:       #0D1B2A;
  --navy-mid:   #162435;
  --navy-light: #1e3448;
  --gold:       #C9A84C;
  --gold-lt:    #e8c96a;
  --gold-bg:    rgba(201,168,76,0.09);
  --teal:       #0A9396;
  --teal-bg:    rgba(10,147,150,0.08);
  --green:      #16A34A;
  --green-bg:   #DCFCE7;
  --red:        #DC2626;
  --red-bg:     #FEE2E2;
  --amber:      #D97706;
  --amber-bg:   #FEF3C7;
  --blue:       #2563EB;
  --blue-bg:    #DBEAFE;
  --purple:     #7C3AED;
  --purple-bg:  #F3E8FF;
  --white:      #FFFFFF;
  --bg:         #F5F7FA;
  --s50:        #F8FAFC;
  --s100:       #F1F5F9;
  --s200:       #E2E8F0;
  --s300:       #CBD5E1;
  --s400:       #94A3B8;
  --s500:       #64748B;
  --s600:       #475569;
  --s700:       #334155;
  --s800:       #1E293B;
  --r8:  8px;
  --r12: 12px;
  --r16: 16px;
  --r20: 20px;
  --r24: 24px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--s800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
img { display: block; max-width: 100%; }

/* ════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════ */
.fund-hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 28px 40px 22px;
}
.fund-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 5% 120%, rgba(201,168,76,.15) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 98% -10%, rgba(10,147,150,.10) 0%, transparent 55%);
  pointer-events: none;
}
.fund-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201,168,76,.5) 40%, rgba(201,168,76,.5) 60%, transparent 100%);
}
.hero-bg-icon {
  position: absolute;
  right: -20px;
  top: -30px;
  font-size: 16rem;
  opacity: .025;
  color: #fff;
  pointer-events: none;
  line-height: 1;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: flex-start;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.28);
  border-radius: 22px;
  padding: 5px 14px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-badge i { font-size: .75rem; }
.hero-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}
.hero-title .accent { color: var(--gold); }

/* ════════════════════════════════════════
   SHARED COMPONENT STYLES
   ════════════════════════════════════════ */
.kinfo-icon {
  width: 30px; height: 30px;
  background: var(--gold-bg);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: .8rem;
  flex-shrink: 0;
}
.filter-btn {
  padding: 6px 14px;
  border-radius: 22px;
  border: 1.5px solid var(--s200);
  background: transparent;
  color: var(--s500);
  font-size: .78rem;
  font-weight: 600;
  transition: all .16s;
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.invest-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 7px 15px;
  border-radius: 8px;
  font-size: .74rem;
  font-weight: 700;
  transition: background .18s, transform .14s;
  flex-shrink: 0;
  white-space: nowrap;
}
.invest-btn:hover { background: var(--navy-light); transform: scale(1.03); }

.card-sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  background: var(--teal-bg);
  border: 1px solid rgba(10,147,150,.18);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: .62rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ════════════════════════════════════════
   ABOUT SECTION
   ════════════════════════════════════════ */
.about-section {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--s200);
  border-radius: var(--r16);
  padding: 28px;
}
.about-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--r12);
  background: var(--gold-bg);
  border: 1px solid rgba(201,168,76,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 14px;
}
.about-card h3 {
  font-size: .95rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.about-card p, .about-card li { font-size: .82rem; color: var(--s500); line-height: 1.7; }
.about-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.about-card ul li { display: flex; align-items: flex-start; gap: 8px; }
.about-card ul li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   DISCLAIMER
   ════════════════════════════════════════ */
.disclaimer-box {
  margin-top: 40px;
  background: var(--s50);
  border: 1px solid var(--s200);
  border-radius: var(--r12);
  padding: 16px 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.disclaimer-box i { color: var(--s400); font-size: .88rem; margin-top: 2px; flex-shrink: 0; }
.disclaimer-box p { font-size: .73rem; color: var(--s500); line-height: 1.65; }

/* ════════════════════════════════════════
   EXPLORER LAYOUT
   ════════════════════════════════════════ */
.fund-explorer-layout {
  display: flex !important;
  gap: 32px !important;
  max-width: 1300px !important;
  margin: 40px auto !important;
  padding: 0 40px !important;
  align-items: flex-start !important;
}
.sidebar-filters {
  width: 280px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  position: sticky !important;
  top: 80px !important;
}
.sf-header { display: flex !important; justify-content: space-between !important; align-items: center !important; margin-bottom: -10px !important; }
.sf-header h4 { font-size: 1rem !important; font-weight: 700 !important; color: #111 !important; }
.sf-clear { background: transparent !important; color: var(--green) !important; font-size: 0.8rem !important; font-weight: 600 !important; border: none !important; }
.sf-group { display: flex !important; flex-direction: column !important; gap: 10px !important; border-bottom: 1px solid var(--s200) !important; padding-bottom: 24px !important; }
.sf-group:last-child { border-bottom: none !important; }
.sf-title { font-size: 0.85rem !important; font-weight: 700 !important; color: #111 !important; margin-bottom: 4px !important; }
.sf-lbl { display: flex !important; align-items: center !important; gap: 10px !important; font-size: 0.85rem !important; color: var(--s600) !important; cursor: pointer !important; }
.sf-lbl input { accent-color: var(--blue) !important; }
.sf-more { background: transparent !important; color: var(--green) !important; font-size: 0.85rem !important; font-weight: 600 !important; text-align: left !important; border: none !important; padding: 0 !important; margin-top: 4px !important; }
.sf-btn-group { display: flex !important; border: 1px solid var(--s200) !important; border-radius: 4px !important; overflow: hidden !important; }
.sf-btn-group button { flex: 1 !important; background: #fff !important; border: none !important; border-right: 1px solid var(--s200) !important; font-size: 0.7rem !important; padding: 8px 4px !important; color: var(--s600) !important; }
.sf-btn-group button:last-child { border-right: none !important; }
.sf-btn-group button:hover { background: var(--s50) !important; }
.sf-search { border: 1px solid var(--s200) !important; border-radius: 4px !important; padding: 8px 12px !important; font-size: 0.8rem !important; margin-bottom: 4px !important; }

.explorer-content { flex: 1 !important; min-width: 0 !important; }

.explorer-sorting-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  background: #fff !important;
  padding: 10px 20px !important;
  border: 1px solid var(--s200) !important;
  border-radius: 8px !important;
  margin-bottom: 20px !important;
  flex-wrap: nowrap !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.06) !important;
}
.es-pills-row { display: flex !important; align-items: center !important; gap: 6px !important; flex-wrap: wrap !important; justify-content: flex-end !important; flex-shrink: 0 !important; }
.es-pill-sep { display: inline-block !important; width: 1px !important; height: 20px !important; background: #d1d5db !important; margin: 0 4px !important; flex-shrink: 0 !important; }
.es-count { font-size: 0.82rem !important; font-weight: 600 !important; color: #555 !important; white-space: nowrap !important; }
.es-pill, .es-period-pill {
  display: inline-flex !important; align-items: center !important; gap: 4px !important;
  padding: 5px 13px !important; border-radius: 20px !important; border: 1.5px solid #d1d5db !important;
  background: #fff !important; color: #555 !important; font-size: 0.78rem !important; font-weight: 500 !important;
  cursor: pointer !important; transition: all 0.15s ease !important; white-space: nowrap !important;
  font-family: inherit !important; line-height: 1 !important;
}
.es-pill:hover, .es-period-pill:hover { border-color: #0D1B2A !important; color: #0D1B2A !important; background: #f4f6f9 !important; }
.es-pill.active { background: #0D1B2A !important; border-color: #0D1B2A !important; color: #fff !important; font-weight: 600 !important; }
.es-period-pill.active { background: #1a7a4a !important; border-color: #1a7a4a !important; color: #fff !important; font-weight: 600 !important; }
.es-search-wrap { flex: 1 !important; display: flex !important; justify-content: center !important; max-width: 320px !important; position: relative !important; }
.es-search-icon { position: absolute !important; left: 10px !important; top: 50% !important; transform: translateY(-50%) !important; color: #94a3b8 !important; font-size: 0.75rem !important; pointer-events: none !important; }
.es-search-input {
  padding: 7px 14px 7px 30px !important; border: 1.5px solid #d1d5db !important; border-radius: 20px !important;
  font-size: 0.82rem !important; font-family: inherit !important; color: #1e293b !important;
  background: #f8fafc !important; outline: none !important; transition: all 0.18s !important; width: 100% !important;
}
.es-search-input:focus { border-color: #0D1B2A !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(13,27,42,0.07) !important; }
.sf-filter-btn.active { background: #0D1B2A !important; color: #fff !important; }

/* ════════════════════════════════════════
   EMPTY STATE
   ════════════════════════════════════════ */
.empty-state { text-align: center; padding: 64px 20px; color: var(--s400); }
.empty-state i { font-size: 2.8rem; display: block; margin-bottom: 14px; color: var(--s300); }
.empty-state p { font-size: .88rem; }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .fund-explorer-layout { flex-direction: column !important; }
  .sidebar-filters { width: 100% !important; position: relative !important; top: 0 !important; }
}
@media (max-width: 860px) {
  .fund-hero { padding: 24px 20px 20px; }
  .fund-explorer-layout { padding: 0 20px !important; margin: 24px auto !important; }
  .about-section { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .es-search-wrap { max-width: 100% !important; }
}

@import url('../assets/css/fund-widget.css');
