/* Rulora Application Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Merriweather:wght@400;700&display=swap');

/* Base styles */
body {
  font-family: 'Inter', sans-serif;
}

/* Custom CSS Variables for Brand Colors */
:root {
  --brand-background: #fdfaf6;
  --brand-text: #2c2c2c;
  --brand-primary: #5c4d91;
  --brand-accent: #7c5cbf;
  --brand-accent-hover: #9d83d5;
  --brand-secondary: #6b7280;
  --brand-heading: #0c4a6e;
}

/* Utility classes for when Tailwind custom config isn't available */
.brand-bg-background { background-color: var(--brand-background); }
.brand-text { color: var(--brand-text); }
.brand-bg-primary { background-color: var(--brand-primary); }
.brand-text-primary { color: var(--brand-primary); }
.brand-bg-accent { background-color: var(--brand-accent); }
.brand-text-accent { color: var(--brand-accent); }
.brand-bg-accent-hover { background-color: var(--brand-accent-hover); }
.brand-text-accent-hover { color: var(--brand-accent-hover); }
.brand-text-secondary { color: var(--brand-secondary); }
.brand-text-heading { color: var(--brand-heading); }

/* Typography classes */
.font-heading { font-family: 'Merriweather', serif; }
.font-sans { font-family: 'Inter', sans-serif; }

.text-h1 {
  font-size: 3.5rem;
  line-height: 1.1;
}

.text-h2 {
  font-size: 2.25rem;
  line-height: 1.2;
}

.text-h3 {
  font-size: 1.5rem;
  line-height: 1.3;
}

/* Common layout patterns */
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: white;
  color: var(--brand-text);
  font-family: 'Inter', sans-serif;
}

.site-header {
  background-color: var(--brand-primary);
  color: white;
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.site-header .logo {
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 1rem;
}

.site-header .title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-family: 'Merriweather', serif;
  font-weight: bold;
  letter-spacing: 0.025em;
}

.main-content {
  flex-grow: 1;
  text-align: center;
  padding: 4rem 1.5rem;
  background-color: var(--brand-background);
}

/* Form styles */
.form-container {
  max-width: 28rem;
  margin: 0 auto;
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  padding: 2rem;
}

.form-title {
  text-align: center;
  margin-bottom: 2rem;
}

.form-title h2 {
  font-size: 2.25rem;
  line-height: 1.2;
  font-family: 'Merriweather', serif;
  font-weight: bold;
  color: var(--brand-heading);
  margin-bottom: 0.5rem;
}

.form-title p {
  color: var(--brand-secondary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-text);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--brand-accent);
}

.form-button {
  width: 100%;
  background-color: var(--brand-accent);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
  cursor: pointer;
}

.form-button:hover {
  background-color: var(--brand-accent-hover);
}

.form-help-text {
  font-size: 0.75rem;
  color: var(--brand-secondary);
  margin-top: 0.25rem;
}

/* Alert styles */
.alert {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
}

.alert-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.alert-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.alert-info {
  background-color: var(--brand-background);
  border: 1px solid #e5e7eb;
}

/* Navigation links */
.nav-link {
  color: var(--brand-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--brand-accent-hover);
}

.back-link {
  color: var(--brand-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--brand-accent);
}

/* Game card styles */
.game-card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-card h3 {
  font-size: 1.5rem;
  line-height: 1.3;
  font-family: 'Inter', sans-serif;
  font-weight: bold;
  color: var(--brand-heading);
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

/* Benefits list styles */
.benefits-box {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--brand-background);
  border-radius: 0.5rem;
  border: 1px solid #f3f4f6;
}

.benefits-box h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brand-heading);
  margin-bottom: 1rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--brand-text);
}

.benefits-list li .checkmark {
  color: #10b981;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* Responsive design helpers */
@media (max-width: 640px) {
  .site-header .title {
    font-size: 2rem;
  }

  .text-h1 {
    font-size: 2.5rem;
  }

  .text-h2 {
    font-size: 1.875rem;
  }

  .main-content {
    padding: 2rem 1rem;
  }

  .form-container {
    margin: 0 1rem;
    padding: 1.5rem;
  }
}
