body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f6f8;
  color: #2c3e50;
}

header {
  background: linear-gradient(90deg, #6a7ba2 0%, #b0bec5 100%);
  color: #fff;
  padding: 2rem 0 1rem 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(42, 56, 80, 0.05);
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 2px;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 70vh;
  padding: 3rem 1rem;
}

.poem-space {
  background: #ffffffcc;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(42, 56, 80, 0.07);
  min-width: 320px;
  max-width: 600px;
  width: 100%;
  min-height: 300px;
  padding: 2rem 1rem 1.5rem 1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
}

.poem-space h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.1rem;
}

.category-nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.category-nav a {
  color: #6a7ba2;
  background: #f4f6f8;
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.category-nav a:hover {
  background: #b0bec5;
  color: #fff;
}

.welcome {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.daily-poem {
  text-align: center;
  margin-top: 1rem;
  width: 100%;
  max-width: 600px;
}

.daily-poem h2 {
  color: #6a7ba2;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

#random-poem-container {
  background: #ffffffcc;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(42, 56, 80, 0.07);
  padding: 1.5rem;
  margin: 0 auto;
}

.loading {
  color: #6a7ba2;
  font-style: italic;
}

.poem-card {
  text-align: center;
}

.poem-title {
  color: #2c3e50;
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  font-weight: 500;
}

.poem-category {
  color: #6a7ba2;
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
}

.poem-category a {
  color: #6a7ba2;
  text-decoration: none;
  font-weight: 500;
}

.poem-category a:hover {
  text-decoration: underline;
}

.poem-preview {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #6a7ba2;
}

.poem-preview p {
  margin: 0;
  color: #6a7ba2;
  font-style: italic;
}

.read-more {
  display: inline-block;
  background: #6a7ba2;
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s;
  margin-top: 1rem;
}

.read-more:hover {
  background: #5a6b92;
}

.poem-body {
  text-align: center;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.1rem;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  white-space: pre-wrap;
}

.poem-body p {
  margin-bottom: 0.3rem;
}

.poem-body br {
  line-height: 0.5;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0 1rem 0;
  padding: 0.5rem 0;
  background: transparent;
  border-radius: 8px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.site-nav a:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Contact Form Styles */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.contact-container h2 {
  color: #6a7ba2;
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 400;
}

.contact-container p {
  text-align: center;
  color: #6a7ba2;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-form {
  background: #ffffffcc;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(42, 56, 80, 0.07);
  padding: 2rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-weight: 500;
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e3e8ee;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6a7ba2;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background: #6a7ba2;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.submit-btn:hover {
  background: #5a6b92;
}

.submit-btn:active {
  transform: translateY(1px);
}

.form-help {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #6a7ba2;
  font-style: italic;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
}

.form-status-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-status-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-status-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.submit-btn:disabled {
  background: #b0bec5;
  cursor: not-allowed;
  opacity: 0.7;
}

.submit-btn:disabled:hover {
  background: #b0bec5;
}

/* Search Bar Styles */
.search-bar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0.5rem 0;
}
#poem-search-input {
  padding: 0.7rem 1rem;
  border: 2px solid #b0bec5;
  border-radius: 6px;
  font-size: 1rem;
  width: 260px;
  transition: border-color 0.2s;
}
#poem-search-input:focus {
  border-color: #6a7ba2;
  outline: none;
}
#poem-search-btn {
  background: #6a7ba2;
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
#poem-search-btn:hover {
  background: #5a6b92;
}

/* Search Results Styles */
#search-results-section {
  margin: 2rem auto 0 auto;
  max-width: 600px;
  background: #ffffffcc;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(42, 56, 80, 0.07);
  padding: 2rem 1rem 1.5rem 1rem;
}
.poem-search-result {
  border-bottom: 1px solid #e3e8ee;
  padding: 1rem 0;
}
.poem-search-result:last-child {
  border-bottom: none;
}
.poem-search-result h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1.2rem;
  font-weight: 500;
}
.poem-search-result a {
  color: #6a7ba2;
  text-decoration: none;
  transition: color 0.2s;
}
.poem-search-result a:hover {
  color: #2c3e50;
  text-decoration: underline;
}
#search-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.pagination-btn {
  background: #b0bec5;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.pagination-btn.active, .pagination-btn:hover {
  background: #6a7ba2;
} 