/* Unified Color Scheme */
:root {
  --primary-color: #667eea;
  --primary-dark: #5a6fd8;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  --success-color: #4ade80;
  --warning-color: #fbbf24;
  --error-color: #f87171;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --background-primary: #ffffff;
  --background-secondary: #f9fafb;
  --background-tertiary: #f3f4f6;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-heavy: rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-success: linear-gradient(135deg, var(--success-color) 0%, #22c55e 100%);
  --gradient-warning: linear-gradient(135deg, var(--warning-color) 0%, #f59e0b 100%);
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Layout */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Forms */
.form-container {
  background: var(--background-primary);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow-light);
  max-width: 600px;
  margin: 0 auto;
}

.form-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--background-primary);
  color: var(--text-primary);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

/* Buttons */
.primary-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.primary-btn:active {
  transform: translateY(0);
}

.secondary-btn {
  background: var(--background-primary);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

/* Prayer List */
.prayer-list-container {
  background: var(--background-primary);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow-light);
}

.prayer-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--background-tertiary);
  border-radius: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.stat strong {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.prayer-list {
  list-style: none;
  margin-bottom: 2rem;
}

.prayer-item {
  display: flex;
  align-items: flex-start;
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px var(--shadow-light);
  transition: all 0.3s ease;
}

.prayer-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-medium);
}

.prayer-content {
  flex: 1;
  margin-left: 1rem;
}

.prayer-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.prayer-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Prayer Button */
.prayer-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
}

.prayer-button {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  min-width: 80px;
}

.prayer-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.prayer-button:active {
  transform: translateY(0);
}

.prayer-count {
  font-size: 0.8em;
  color: var(--text-light);
  text-align: center;
  margin-top: 0.25em;
}

/* Prayer Status */
.prayer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.5em;
  padding: 0.25em 0.75em;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 500;
}

.prayer-status.prayed {
  background: var(--gradient-success);
  color: white;
}

.prayer-status.not-prayed {
  background: var(--gradient-warning);
  color: white;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* Actions */
.actions {
  text-align: center;
  margin-top: 2rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-light);
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .form-container {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .prayer-list-container {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .prayer-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .prayer-content {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
  }
  
  .prayer-meta {
    justify-content: center;
  }
  
  .prayer-stats {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}