/* ==========================================================================
   Gold Button
   ========================================================================== */

.gold-btn {
  background: var(--gold-gradient);
  color: #1A1A1A;
  font-weight: bold;
  padding: 16px 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: box-shadow 0.3s;
}

.gold-btn:hover {
  box-shadow: 0 0 16px rgba(184, 134, 11, 0.4);
}

.gold-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.gold-btn .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(26, 26, 26, 0.3);
  border-top-color: #1A1A1A;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ==========================================================================
   Outlined Button
   ========================================================================== */

.outlined-btn {
  border: 1px solid var(--primary-gold);
  color: var(--light-gold);
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  transition: background-color 0.3s;
}

.outlined-btn:hover {
  background-color: rgba(184, 134, 11, 0.1);
}

/* ==========================================================================
   Section Title
   ========================================================================== */

.section-title {
  text-align: center;
}

.section-title h2 {
  font-size: 36px;
  font-weight: bold;
  letter-spacing: 1.2px;
  color: var(--text-primary);
}

.section-title-bar {
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
  margin: 8px auto 0;
}

.section-title p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 6px 24px;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.nav-bar.scrolled {
  background-color: rgba(250, 249, 246, 0.95);
  box-shadow: 0 2px 8px var(--shadow-color);
}

[data-theme="dark"] .nav-bar.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 36px;
}

.nav-links {
  display: flex;
  gap: 0;
  margin-left: auto;
}

.nav-item {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 1px;
  transition: width 0.2s;
}

.nav-item:hover::after {
  width: 20px;
}

.nav-item:hover {
  color: var(--text-gold);
}

.theme-toggle {
  color: var(--icon-gold);
}

.menu-btn {
  display: none;
}

/* ==========================================================================
   Mobile Drawer
   ========================================================================== */

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  z-index: 2000;
  background: var(--bg);
  transform: translateX(-100%);
  transition: transform 0.3s;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1999;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--card-bg);
  border: 1px solid var(--text-muted);
  border-radius: 8px;
  color: var(--text-primary);
  transition: border-color 0.2s;
}

[data-theme="dark"] .form-input {
  background: var(--bg);
}

.form-input:focus {
  border-color: var(--primary-gold);
  outline: none;
  border-width: 2px;
}

.form-input.error {
  border-color: #ff5252;
}

.form-error {
  font-size: 12px;
  color: #ff5252;
}

textarea.form-input {
  min-height: 100px;
  resize: vertical;
}

/* ==========================================================================
   Card
   ========================================================================== */

.card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid rgba(128, 128, 128, 0.15);
  padding: 24px;
}

/* ==========================================================================
   Spinner Animation
   ========================================================================== */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Drawer Items
   ========================================================================== */

.drawer-header {
  padding: 24px;
}

.drawer-header img {
  width: 180px;
}

.drawer-divider {
  height: 1px;
  background: var(--text-muted);
  opacity: 0.3;
  margin: 4px 0;
}

.drawer-item {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  font-size: 16px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.2s;
}

.drawer-item:hover {
  background: rgba(128,128,128,0.1);
}

/* ==========================================================================
   Fade-in Animation
   ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
  .section-title h2 {
    font-size: 28px;
  }

  .nav-links {
    display: none;
  }

  /* .nav-links normally pushes these right; with it hidden, do it here */
  .theme-toggle {
    margin-left: auto;
  }

  .menu-btn {
    display: block;
    margin-left: 12px;
  }

  .card {
    padding: 16px;
  }
}

@media (max-width: 400px) {
  .section-title h2 {
    font-size: 24px;
  }
}
