/* ============ GlowUpAI — Rose Theme ============ */
:root {
  --primary: #E11D48;
  --primary-light: #FB7185;
  --primary-dark: #BE123C;
  --primary-bg: #FFF1F2;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #1F2937;
  --text-light: #6B7280;
  --border: #E5E7EB;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(225,29,72,0.12), 0 4px 10px rgba(0,0,0,0.06);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

/* ---- Nav ---- */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.nav-brand {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  color: var(--text-light);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

/* ---- Layout ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }
.container-sm { max-width: 600px; margin: 0 auto; padding: 2rem 1.5rem; }

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-bg) 0%, #FDE8EC 50%, #FCE7F3 100%);
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--primary), #9333EA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1.2rem; color: var(--text-light); max-width: 600px; margin: 0 auto 2rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(225,29,72,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(225,29,72,0.4);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary-bg); }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--primary-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.card p { color: var(--text-light); font-size: .9rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

/* ---- Forms ---- */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  background: var(--surface);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225,29,72,0.1);
}
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

/* ---- Result Box ---- */
.result-box {
  background: linear-gradient(135deg, #FFF1F2, #FCE7F3);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: .95rem;
}
.result-box h2, .result-box h3, .result-box h4 { margin: 1rem 0 .5rem; color: var(--primary-dark); }
.result-box strong { color: var(--primary-dark); }

/* ---- Flash Messages ---- */
.flash {
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: .9rem;
  font-weight: 500;
}
.flash-success { background: #D1FAE5; color: #065F46; }
.flash-error { background: #FEE2E2; color: #991B1B; }
.flash-warning { background: #FEF3C7; color: #92400E; }

/* ---- Auth Pages ---- */
.auth-wrapper {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-bg) 0%, #FCE7F3 100%);
  padding: 2rem;
}
.auth-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-card h2 { text-align: center; margin-bottom: .5rem; }
.auth-card .subtitle { text-align: center; color: var(--text-light); margin-bottom: 1.5rem; font-size: .9rem; }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.pricing-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: all .2s;
}
.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pricing-card .price { font-size: 2.5rem; font-weight: 800; margin: 1rem 0; }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.pricing-card ul { list-style: none; text-align: left; margin: 1.5rem 0; }
.pricing-card ul li { padding: .4rem 0; font-size: .9rem; color: var(--text-light); }
.pricing-card ul li::before { content: "\2713"; color: var(--primary); font-weight: 700; margin-right: .5rem; }

/* ---- Dashboard ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-card .stat-label { font-size: .85rem; color: var(--text-light); margin-top: .25rem; }

.history-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.history-item .tool-name { font-weight: 600; font-size: .9rem; }
.history-item .tool-date { font-size: .8rem; color: var(--text-light); }

/* ---- Page Header ---- */
.page-header {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}
.page-header h1 { font-size: 2rem; margin-bottom: .5rem; }
.page-header p { color: var(--text-light); max-width: 500px; margin: 0 auto; }

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
  font-size: .85rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero { padding: 3rem 1rem; }
  .navbar { padding: 0 1rem; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .container { padding: 1.5rem 1rem; }
}
