/* ==========================================================================
   1. COLOR SCHEMES & CSS VARIABLES
   Change 'data-color-scheme' on <html> to swap themes: 'emerald', 'indigo', 'gold'
   ========================================================================== */

:root {
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --transition: all 0.25s ease;
}

/* COLOR SCHEME 1: EMERALD FINTECH (Default) */
html[data-color-scheme="emerald"] {
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-light: rgba(16, 185, 129, 0.12);
  --accent: #06b6d4;
}

/* COLOR SCHEME 2: MODERN INDIGO & PURPLE */
html[data-color-scheme="indigo"] {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.12);
  --accent: #a855f7;
}

/* COLOR SCHEME 3: WARM GOLD & DESERT SUNSET */
html[data-color-scheme="gold"] {
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --primary-light: rgba(245, 158, 11, 0.12);
  --accent: #ec4899;
}

/* DARK MODE PALETTE */
html[data-theme="dark"] {
  --bg-main: #0b0f17;
  --bg-card: #151c28;
  --bg-card-hover: #1e293b;
  --bg-input: #0f172a;
  --border-color: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* LIGHT MODE PALETTE */
html[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #f8fafc;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   2. BASE & NAVIGATION STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER & NAVIGATION */
header {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: var(--bg-main);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.logo-icon-placeholder {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-btn, .scheme-select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.theme-btn:hover, .scheme-select:hover {
  border-color: var(--primary);
}

/* ==========================================================================
   3. HERO & PAGE CONTENT
   ========================================================================== */
.hero {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 868px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 30px 0;
  }
  .nav-links {
    display: none; /* Collapses on small mobile screens */
  }
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-text h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.claim-bar {
  display: flex;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.claim-bar:focus-within {
  border-color: var(--primary);
}

.claim-prefix {
  padding: 12px 0 12px 16px;
  color: var(--text-muted);
  font-weight: 600;
  user-select: none;
}

.claim-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  padding: 0 8px;
}

.claim-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.claim-btn:hover {
  background: var(--primary-hover);
}

/* INTERACTIVE TIP CARD */
.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.creator-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.creator-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
}

.creator-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.creator-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.tip-option {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.tip-option:hover, .tip-option.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.custom-tip-container {
  margin-bottom: 20px;
}

.custom-tip-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.custom-tip-input:focus {
  border-color: var(--primary);
}

.message-input {
  width: 100%;
  height: 80px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  resize: none;
  margin-bottom: 20px;
  font-family: inherit;
}

.message-input:focus {
  border-color: var(--primary);
}

.pay-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pay-btn:hover {
  background: var(--primary-hover);
}

/* CONTENT PAGES (ABOUT, TERMS, PRIVACY) */
.page-content {
  padding: 50px 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.page-subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 30px;
}

.content-block h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.content-block p, .content-block ul {
  margin-bottom: 15px;
  color: var(--text-muted);
}

.content-block ul {
  padding-left: 20px;
}

.content-block li {
  margin-bottom: 8px;
}

/* FOOTER */
footer {
  margin-top: auto;
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}
