/* ===================================================
   Vision Playground — Shared Stylesheet
   drkhilar.com
   =================================================== */

/* ----- Custom Properties ----- */
:root {
  --saffron: #d4890e;
  --gold: #e6a817;
  --gold-soft: #f4c430;
  --peacock: #0e4d64;
  --peacock-teal: #1a6b5a;
  --teal: #2f7d73;
  --teal-light: #4b9b8a;
  --teal-dark: #215c54;
  --teal-pale: #d8ede7;
  --cream: #fff8f0;
  --cream-dark: #f4e8d9;
  --terracotta: #c84b31;
  --dark: #2d2a26;
  --dark-mid: #5b534b;
  --gray-bg: #fdf1e4;
  --gray-mid: #8d7f70;
  --gray-border: #e9d9c7;
  --white: #ffffff;
  --red: #ef4444;
  --amber: #f59e0b;
  --shadow-sm: 0 2px 8px rgba(45, 42, 38, 0.08);
  --shadow-md: 0 10px 28px rgba(45, 42, 38, 0.12), 0 2px 8px rgba(45, 42, 38, 0.08);
  --shadow-lg: 0 20px 44px rgba(45, 42, 38, 0.16), 0 6px 16px rgba(14, 77, 100, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-display-alt: 'Marcellus', 'Times New Roman', serif;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--dark-mid);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ----- Typography ----- */
h1, h2, h3, h4, h5 { line-height: 1.25; color: var(--dark); }
.font-display { font-family: var(--font-display); }
.font-display-alt { font-family: var(--font-display-alt); }

/* ----- Decorative Utilities ----- */
.indian-divider-rangoli {
  height: 28px;
  opacity: 0.72;
  background-repeat: repeat-x;
  background-size: 180px 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 28'%3E%3Cpath d='M14 14h152' stroke='%23d4890e' stroke-width='0.9' stroke-linecap='round' opacity='0.45'/%3E%3Ccircle cx='14' cy='14' r='4' fill='none' stroke='%23c84b31' stroke-width='1.1'/%3E%3Ccircle cx='90' cy='14' r='6' fill='none' stroke='%23e6a817' stroke-width='1.1'/%3E%3Cpath d='M90 6l1.8 4 4.2 1.4-4.2 1.4L90 17l-1.8-4-4.2-1.2 4.2-1.6z' fill='%230e4d64' opacity='0.68'/%3E%3Ccircle cx='166' cy='14' r='4' fill='none' stroke='%23c84b31' stroke-width='1.1'/%3E%3C/svg%3E");
}
.paisley-border-top {
  position: relative;
}
.paisley-border-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  background-repeat: repeat-x;
  background-size: 220px 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 34'%3E%3Cpath d='M0 20c16 0 17-14 28-14 9 0 16 7 16 15 0 7-6 13-14 13-7 0-12-5-12-11 0-5 4-9 9-9' fill='none' stroke='%23f4c430' stroke-width='1.3' opacity='0.7'/%3E%3Cpath d='M72 20c16 0 17-14 28-14 9 0 16 7 16 15 0 7-6 13-14 13-7 0-12-5-12-11 0-5 4-9 9-9' fill='none' stroke='%23d4890e' stroke-width='1.3' opacity='0.7'/%3E%3Cpath d='M144 20c16 0 17-14 28-14 9 0 16 7 16 15 0 7-6 13-14 13-7 0-12-5-12-11 0-5 4-9 9-9' fill='none' stroke='%23c84b31' stroke-width='1.3' opacity='0.66'/%3E%3C/svg%3E");
  pointer-events: none;
}
.lotus-accent,
.diya-accent {
  width: 50px;
  height: 50px;
  color: var(--saffron);
  opacity: 0.86;
}

/* ----- Navigation ----- */
.pg-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-border);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.pg-nav.scrolled { box-shadow: var(--shadow-md); border-bottom-color: rgba(212, 137, 14, 0.2); }
.pg-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.pg-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.pg-nav-logo svg { width: 30px; height: 30px; flex-shrink: 0; }
.pg-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}
.pg-nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark-mid);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.pg-nav-link:hover { background: rgba(212, 137, 14, 0.1); color: var(--dark); }
.pg-nav-link.active { color: var(--saffron); background: rgba(212, 137, 14, 0.15); }
.pg-nav-cta {
  margin-left: auto;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--gold) 100%);
  color: var(--dark) !important;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  transition: filter var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.pg-nav-cta:hover { filter: brightness(1.03); transform: translateY(-1px); }
.pg-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  border-radius: var(--radius-sm);
  background: none;
}
.pg-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--gold) 100%);
  color: var(--dark);
  border-color: var(--saffron);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(212, 137, 14, 0.3);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  border-color: rgba(244, 196, 48, 0.6);
}
.btn-secondary:hover {
  background: rgba(244, 196, 48, 0.14);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--dark-mid);
  border-color: var(--gray-border);
}
.btn-ghost:hover { background: var(--gray-bg); border-color: var(--gray-mid); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ----- Page Hero ----- */
.pg-hero {
  background: linear-gradient(145deg, #0d2f4a 0%, #17364d 52%, #5a3c23 100%);
  padding: 72px 24px 64px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.pg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 65% 0%, rgba(244, 196, 48, 0.24) 0%, transparent 70%);
}
.pg-hero-content { position: relative; max-width: 680px; margin: 0 auto; }
.pg-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(212, 137, 14, 0.2);
  border: 1px solid rgba(244, 196, 48, 0.45);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 20px;
}
.pg-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 16px;
}
.pg-hero p {
  font-size: 1.05rem;
  color: rgba(255, 248, 240, 0.78);
  max-width: 520px;
  margin: 0 auto;
}

/* ----- Section Wrappers ----- */
.section {
  padding: 80px 24px;
}
.section-sm { padding: 48px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-family: var(--font-display-alt);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--gray-mid);
  max-width: 520px;
  margin: 0 auto;
}

/* ----- Tool Cards ----- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.tool-card {
  background: linear-gradient(180deg, #fffdf9 0%, #fff7ee 100%);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron) 0%, var(--terracotta) 100%);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.tool-card::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 2c0 6.6-5.4 12-12 12 6.6 0 12 5.4 12 12 0-6.6 5.4-12 12-12-6.6 0-12-5.4-12-12z' fill='none' stroke='%23d4890e' stroke-width='1.2'/%3E%3Ccircle cx='14' cy='14' r='3' fill='%23c84b31'/%3E%3C/svg%3E");
  background-size: contain;
}
.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 137, 14, 0.36);
}
.tool-card:hover::before { transform: scaleX(1); }
.tool-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(212, 137, 14, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--peacock);
  flex-shrink: 0;
}
.tool-card-icon svg { width: 26px; height: 26px; }
.tool-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.tool-card p {
  font-size: 0.875rem;
  color: var(--gray-mid);
  line-height: 1.55;
  flex: 1;
}
.tool-card-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--peacock);
  margin-top: 4px;
}
.tool-card-arrow svg { width: 16px; height: 16px; transition: transform var(--transition); }
.tool-card:hover .tool-card-arrow svg { transform: translateX(4px); }
.tool-card.featured {
  background: linear-gradient(145deg, #0f3955 0%, #18465e 52%, #6f4b2b 100%);
  border-color: rgba(244, 196, 48, 0.3);
  color: var(--white);
}
.tool-card.featured .tool-card-icon { background: rgba(244, 196, 48, 0.22); color: var(--gold-soft); }
.tool-card.featured h3 { color: var(--white); }
.tool-card.featured p { color: rgba(255, 248, 240, 0.72); }
.tool-card.featured .tool-card-arrow { color: var(--gold-soft); }
.tool-card.featured:hover { border-color: var(--gold); }

/* ----- Badge / Tag ----- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-teal { background: rgba(14, 77, 100, 0.1); color: var(--peacock); }
.badge-amber { background: rgba(212, 137, 14, 0.17); color: #8a4c0d; }
.badge-dark { background: var(--dark); color: var(--white); }

/* ----- Profile Strip ----- */
.profile-strip {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
  padding: 12px 24px;
}
.profile-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.profile-strip-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-strip-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--terracotta) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.profile-strip-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
}
.profile-strip-cred {
  font-size: 0.75rem;
  color: var(--gray-mid);
}
.profile-strip-contact {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-strip-contact a {
  font-size: 0.78rem;
  color: var(--peacock);
  font-weight: 500;
  padding: 4px 10px;
  border: 1px solid rgba(14, 77, 100, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(14, 77, 100, 0.08);
  transition: all var(--transition);
}
.profile-strip-contact a:hover { background: var(--peacock); color: var(--white); }

/* ----- Footer ----- */
.pg-footer {
  background: linear-gradient(145deg, #2d2a26 0%, #3d3127 100%);
  color: rgba(255, 248, 240, 0.58);
  padding: 44px 24px 36px;
  text-align: center;
  position: relative;
}
.pg-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  opacity: 0.8;
  background-repeat: repeat-x;
  background-size: 220px 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 30'%3E%3Cpath d='M10 20c12 0 13-11 22-11 8 0 13 5 13 12 0 6-5 10-11 10s-10-4-10-9c0-4 4-8 8-8' fill='none' stroke='%23f4c430' stroke-width='1.2' opacity='0.7'/%3E%3Cpath d='M80 20c12 0 13-11 22-11 8 0 13 5 13 12 0 6-5 10-11 10s-10-4-10-9c0-4 4-8 8-8' fill='none' stroke='%23d4890e' stroke-width='1.2' opacity='0.7'/%3E%3Cpath d='M150 20c12 0 13-11 22-11 8 0 13 5 13 12 0 6-5 10-11 10s-10-4-10-9c0-4 4-8 8-8' fill='none' stroke='%23c84b31' stroke-width='1.2' opacity='0.65'/%3E%3C/svg%3E");
}
.pg-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  position: relative;
}
.pg-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 248, 240, 0.85);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.pg-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.pg-footer-links a {
  font-size: 0.8rem;
  color: rgba(255, 248, 240, 0.52);
  transition: color var(--transition);
}
.pg-footer-links a:hover { color: var(--gold-soft); }
.pg-footer-copy { font-size: 0.75rem; }
.pg-footer-disclaimer {
  font-size: 0.7rem;
  max-width: 480px;
  line-height: 1.55;
}

/* ----- Info Card ----- */
.info-card {
  background: #fffdf8;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: 0 3px 10px rgba(45, 42, 38, 0.04);
}
.info-card.info-teal {
  background: rgba(14, 77, 100, 0.07);
  border-color: rgba(14, 77, 100, 0.2);
}
.info-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.info-card p { font-size: 0.85rem; color: var(--dark-mid); line-height: 1.6; }
.info-card ul { padding-left: 18px; }
.info-card ul li { font-size: 0.85rem; color: var(--dark-mid); margin-bottom: 4px; line-height: 1.5; }

/* ----- Slider ----- */
.pg-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--gray-border);
  outline: none;
  cursor: pointer;
}
.pg-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--saffron);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(212, 137, 14, 0.38);
  transition: transform var(--transition);
}
.pg-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.pg-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--saffron);
  border: none;
  cursor: pointer;
}

/* ----- Tab Group ----- */
.tab-group {
  display: flex;
  gap: 4px;
  background: var(--gray-bg);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.tab-btn {
  flex: 1;
  padding: 8px 14px;
  border-radius: calc(var(--radius-sm) - 2px);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-mid);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab-btn.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}
.tab-btn:hover:not(.active) { color: var(--dark-mid); }

/* ----- Progress Bar ----- */
.pg-progress {
  height: 4px;
  background: var(--gray-border);
  border-radius: 2px;
  overflow: hidden;
}
.pg-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--saffron) 0%, var(--terracotta) 100%);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ----- Utilities ----- */
.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-muted { color: var(--gray-mid); }
.font-bold { font-weight: 700; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.gap-3 { gap: 12px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .pg-nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--gray-border); flex-direction: column; padding: 12px; box-shadow: var(--shadow-md); }
  .pg-nav-links.open { display: flex; }
  .pg-nav-link { padding: 10px 16px; border-radius: var(--radius-sm); }
  .pg-nav-cta { margin-left: 0; }
  .pg-nav-toggle { display: flex; }
  .section { padding: 56px 20px; }
  .section-sm { padding: 36px 20px; }
  .tool-grid { grid-template-columns: 1fr; }
  .profile-strip-contact { display: none; }
  .pg-hero { padding: 56px 20px 48px; }
}
@media (max-width: 480px) {
  .tab-group { flex-direction: column; }
  .btn-lg { padding: 13px 24px; font-size: 0.9rem; }
}
