/* SoulScript Global Design System — Exact AI Studio Theme Matches */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&family=Caveat:wght@600;700&display=swap');

:root {
  --bg-dark: #151215;
  --bg-card: #221f21;
  --bg-[#100d10]: #100d10;
  --gold-primary: #eac34a;
  --gold-hover: #ffe088;
  --gold-text: #241a00;
  --purple-accent: #3b1e3b;
  --pink-soft: #e4b9df;
  --border-muted: #4d444b;
  --text-main: #e8e0e3;
  --text-muted: #d0c3cb;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-handwriting: 'Caveat', cursive;
  --radius-full: 9999px;
  --radius-xl: 1.5rem;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Ambient Orbs */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb-1 {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: rgba(59, 30, 59, 0.3);
  filter: blur(140px);
}

.glow-orb-2 {
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  background: rgba(204, 168, 48, 0.1);
  filter: blur(130px);
}

/* Typography */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.font-handwriting { font-family: var(--font-handwriting); }

.text-gradient {
  background: linear-gradient(to right, #eac34a, #ffd700, #e4b9df);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-gold {
  background-color: var(--gold-primary);
  color: var(--gold-text);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(234, 195, 74, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
}

.btn-gold:hover {
  background-color: var(--gold-hover);
  box-shadow: 0 0 35px rgba(234, 195, 74, 0.6);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: rgba(234, 195, 74, 0.6);
  color: var(--text-main);
}

/* Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid rgba(234, 195, 74, 0.2);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.4s ease;
}

.glass-card-hover:hover {
  border-color: rgba(234, 195, 74, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 50;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: #e8e0e3;
  text-decoration: none;
}

/* Badges */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(59, 30, 59, 0.6);
  border: 1px solid rgba(228, 185, 223, 0.2);
  color: #eac34a;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #191518;
  border: 1px solid rgba(234, 195, 74, 0.3);
  border-radius: 1.5rem;
  max-width: 520px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Form inputs */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d0c3cb;
  margin-bottom: 0.4rem;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: #100d10;
  border: 1px solid #4d444b;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  color: #e8e0e3;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: #eac34a;
}

/* Counter */
.counter-box {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.counter-unit {
  background: #221f21;
  border: 1px solid rgba(234, 195, 74, 0.2);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  min-width: 85px;
  text-align: center;
}
.counter-number {
  font-size: 2rem;
  font-weight: 800;
  color: #eac34a;
  font-family: var(--font-serif);
}
.counter-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.photo-card {
  aspect-ratio: 4/5;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(234, 195, 74, 0.2);
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-card:hover img {
  transform: scale(1.06);
}

.sample-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: max-content;
  gap: 1rem;
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem;
}
@media (min-width: 640px) {
  .sample-modal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .sample-modal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* Custom Sleek Dark-Gold Scrollbar for Sample Modal Grid */
.sample-modal-grid::-webkit-scrollbar {
  width: 6px;
}
.sample-modal-grid::-webkit-scrollbar-track {
  background: #151215;
  border-radius: 8px;
}
.sample-modal-grid::-webkit-scrollbar-thumb {
  background: rgba(234, 195, 74, 0.4);
  border-radius: 8px;
}
.sample-modal-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(234, 195, 74, 0.8);
}

.sample-library-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #1a1518;
  border: 2px solid #4d444b;
  transition: all 0.3s ease;
  cursor: pointer;
  display: block;
}
.sample-library-card:hover {
  border-color: rgba(234, 195, 74, 0.7);
  transform: scale(1.03);
}
.sample-library-card.selected {
  border-color: #eac34a;
  box-shadow: 0 0 18px rgba(234, 195, 74, 0.45);
}
.sample-library-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Raksha Bandhan Royal Theme Styling & 3D Ritual Animations */
.shahi-farman-scroll {
  background: radial-gradient(circle at center, #350810 0%, #170206 100%);
  border-top: 14px solid #eac34a;
  border-bottom: 14px solid #eac34a;
  box-shadow: 0 0 60px rgba(0,0,0,0.95), inset 0 0 40px rgba(234,195,74,0.2);
  position: relative;
}

.shahi-farman-handle-left,
.shahi-farman-handle-right {
  position: absolute;
  top: -20px;
  bottom: -20px;
  width: 24px;
  background: linear-gradient(to right, #8a6d29, #ffe088, #8a6d29);
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(234,195,74,0.5);
  z-index: 20;
}
.shahi-farman-handle-left { left: -12px; }
.shahi-farman-handle-right { right: -12px; }

.glass-vow-card {
  background: rgba(45, 10, 18, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(234, 195, 74, 0.4);
  border-radius: 1.75rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.glass-vow-card:hover {
  border-color: rgba(234, 195, 74, 0.9);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 45px rgba(234, 195, 74, 0.3);
}

.wax-seal-badge {
  background: radial-gradient(circle at 35% 35%, #dc2626 0%, #991b1b 50%, #450a0a 100%);
  border: 3px solid #eac34a;
  box-shadow: 0 0 25px rgba(234, 195, 74, 0.6), inset 0 0 12px rgba(0,0,0,0.7);
}

/* Flame animation for Aarti Diya */
@keyframes flameFlicker {
  0%, 100% { transform: scale(1) rotate(-1deg); opacity: 0.95; filter: drop-shadow(0 0 15px #eac34a); }
  50% { transform: scale(1.15) rotate(2deg); opacity: 1; filter: drop-shadow(0 0 25px #ff7b00); }
}
.diya-flame-anim {
  animation: flameFlicker 1.2s infinite ease-in-out;
}

/* Tilak mark pulse */
@keyframes tilakPulse {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; filter: drop-shadow(0 0 15px #ef4444); }
}
.tilak-mark-anim {
  animation: tilakPulse 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
