/* Reset and base styles */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background-color: #15191d;
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Header styles */
header {
  background-color: #1b1b1b;
  color: white;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-bar {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.logo {
  flex-shrink: 0;
}

.logo h1 {
  margin: 0;
}

#header-logo {
  height: 40px;
  width: auto;
}

.search-bar {
  flex-grow: 1;
  display: flex;
  gap: 10px;
  max-width: 600px;
}

.search-bar input {
  flex-grow: 1;
  padding: 10px 15px;
  border: 2px solid #2d2d2d;
  border-radius: 4px;
  font-size: 16px;
  background-color: #1c2127;
  color: #fff;
}

.search-bar input::placeholder {
  color: #888;
}

.search-bar input:focus {
  outline: none;
  border-color: #28a745;
}

.search-bar button {
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.search-bar button:hover {
  background-color: #1e7e34;
}

.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-nav a:hover {
  color: #28a745;
}

.browse-bar {
  background-color: #2d2d2d;
  padding: 10px 20px;
  text-align: center;
}

.browse-bar span {
  color: #888;
  margin-right: 10px;
}

.browse-bar a {
  color: #fff;
  text-decoration: none;
  margin: 0 5px;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.browse-bar a:hover {
  color: #28a745;
  background-color: rgba(40, 167, 69, 0.1);
}

.browse-bar a.active {
  color: #28a745;
  background-color: rgba(40, 167, 69, 0.1);
  font-weight: bold;
}

/* Main content styles */
.main-content-wrapper {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.definition-list {
  flex-grow: 1;
  max-width: 800px;
}

.definition-item {
  background-color: #1c2127;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.definition-item h2 {
  margin: 0 0 15px 0;
}

.definition-item h2 a {
  color: #28a745;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
}

.definition-item h2 a:hover {
  text-decoration: underline;
}

.definition-content {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.example {
  font-style: italic;
  color: #888;
  background-color: #242830;
  padding: 15px;
  border-radius: 4px;
  margin: 15px 0;
  line-height: 1.6;
  border-left: 4px solid #28a745;
}

.meta {
  font-size: 12px;
  color: #888;
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 15px;
}

/* Sidebar styles */
.sidebar {
  width: 300px;
  flex-shrink: 0;
}

.add-definition-card,
.word-of-day-card {
  background-color: #1c2127;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.add-definition-card h3,
.word-of-day-card h3 {
  color: #fff;
  margin: 0 0 15px 0;
  font-size: 18px;
}

.add-definition-card p {
  color: #888;
  margin-bottom: 20px;
}

.word-of-day-card h4 {
  margin: 0 0 10px 0;
}

.word-of-day-card h4 a {
  color: #28a745;
  text-decoration: none;
  font-size: 20px;
}

.word-of-day-card h4 a:hover {
  text-decoration: underline;
}

.word-of-day-card p {
  color: #fff;
  margin-bottom: 15px;
}

.word-of-day-card .meta {
  color: #888;
  font-size: 14px;
}

.add-definition-button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
}

.add-definition-button:hover {
  background-color: #1e7e34;
}

/* Word page styles */
.word-detail-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
}

.word-entry {
  background-color: #1c2127;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  padding: 30px;
  flex-grow: 1;
  max-width: 800px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.word-entry h2 {
  color: #28a745;
  font-size: 48px;
  margin: 0 0 20px 0;
  font-weight: bold;
}

.definition-content-section,
.example-section {
  margin-bottom: 25px;
}

.definition-content-section h3,
.example-section h3 {
  color: #888;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}

.definition-content-section p {
  font-size: 18px;
  line-height: 1.8;
  color: #fff;
}

.example-section blockquote {
  font-style: italic;
  color: #888;
  background-color: #242830;
  padding: 20px;
  border-radius: 4px;
  margin: 0;
  line-height: 1.6;
  font-size: 16px;
  border-left: 4px solid #28a745;
}

.meta-section {
  border-top: 1px solid #2d2d2d;
  margin-top: 25px;
  padding-top: 15px;
  color: #888;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meta-section .meta-info {
  flex-grow: 1;
}

.meta-section p {
  margin: 5px 0;
}

.vote-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.vote-button {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s;
}

.vote-button:hover {
  background-color: #242830;
}

.vote-button.upvote.active {
  color: #28a745;
}

.vote-button.downvote.active {
  color: #dc3545;
}

.vote-count {
  font-weight: bold;
  font-size: 16px;
}

.related-words-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.sidebar-card {
  background-color: #1c2127;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.related-words-sidebar h3 {
  color: #888;
  margin: 0 0 15px 0;
  font-size: 18px;
  text-transform: uppercase;
}

.related-words-sidebar p {
  color: #888;
}

/* Footer styles - updated */
footer {
  background-color: #1b1b1b;
  color: white;
  padding: 30px 20px;
  text-align: center;
  margin-top: auto;
  border-top: 1px solid #2d2d2d;
}

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

.footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #28a745;
}

.legal-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.legal-links a {
  color: #666;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.legal-links a:hover {
  color: #888;
}

.copyright {
  color: #666;
  font-size: 12px;
  margin: 20px 0;
}

/* Add definition page styles */
.add-definition-form {
  max-width: 800px;
  margin: 30px auto;
  padding: 30px;
  background-color: #1c2127;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.add-definition-form h1 {
  color: #fff;
  margin: 0 0 30px 0;
  text-align: center;
  font-size: 28px;
}

.add-definition-form label {
  display: block;
  margin-bottom: 8px;
  color: #888;
  font-weight: 500;
}

.add-definition-form input[type="text"],
.add-definition-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #2d2d2d;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 20px;
  background-color: #15191d;
  color: #fff;
}

.add-definition-form input[type="text"]:focus,
.add-definition-form textarea:focus {
  outline: none;
  border-color: #28a745;
}

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

.add-definition-form button[type="submit"] {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: block;
  width: 100%;
  margin-top: 20px;
}

.add-definition-form button[type="submit"]:hover {
  background-color: #1e7e34;
}

/* About page styles */
.about-page {
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px;
}

.about-page h1 {
  color: #28a745;
  font-size: 36px;
  margin-bottom: 30px;
  text-align: center;
}

.about-section {
  background-color: #1c2127;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.about-section h2 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 20px;
}

.about-section p {
  color: #fff;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-section ul {
  color: #fff;
  padding-left: 20px;
}

.about-section li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s;
}

.cta-button:hover {
  background-color: #1e7e34;
}

/* Contact page styles */
.contact-page {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

.contact-page h1 {
  color: #28a745;
  font-size: 36px;
  margin-bottom: 30px;
  text-align: center;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

.contact-info {
  background-color: #1c2127;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-info h2 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 20px;
}

.contact-info p {
  color: #fff;
  line-height: 1.8;
  margin-bottom: 30px;
}

.social-links h3 {
  color: #888;
  font-size: 18px;
  margin-bottom: 15px;
}

.social-link {
  display: inline-block;
  color: #28a745;
  text-decoration: none;
  font-weight: 500;
  margin-right: 20px;
}

.social-link:hover {
  text-decoration: underline;
}

.contact-form-section {
  background-color: #1c2127;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  color: #888;
  margin-bottom: 8px;
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  background-color: #15191d;
  border: 2px solid #2d2d2d;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #28a745;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .submit-button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
}

.contact-form .submit-button:hover {
  background-color: #1e7e34;
}

/* Responsive styles for contact page */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-info {
    order: 2;
  }

  .contact-form-section {
    order: 1;
  }
}

/* Profile page styles */
.profile-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.profile-header {
  background-color: #1c2127;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-info h1 {
  color: #fff;
  margin: 0;
  font-size: 32px;
}

.level-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #242830;
  padding: 8px 16px;
  border-radius: 20px;
}

.level-icon {
  font-size: 24px;
}

.level-name {
  color: #28a745;
  font-weight: bold;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.profile-card {
  background-color: #1c2127;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.profile-card h2 {
  color: #fff;
  margin: 0 0 20px 0;
  font-size: 24px;
}

/* XP Progress styles */
.xp-progress {
  grid-column: span 2;
}

.xp-bar-container {
  background-color: #242830;
  border-radius: 10px;
  height: 20px;
  margin: 20px 0;
  overflow: hidden;
}

.xp-bar {
  background-color: #28a745;
  height: 100%;
  width: 0;
  transition: width 0.3s ease;
}

.xp-stats {
  text-align: center;
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
}

.next-reward {
  text-align: center;
}

.next-reward h3 {
  color: #888;
  font-size: 16px;
  margin-bottom: 10px;
}

.next-reward p {
  color: #28a745;
  font-weight: bold;
}

/* Badges styles */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #242830;
  padding: 15px;
  border-radius: 8px;
  transition: transform 0.2s;
}

.badge:hover {
  transform: translateY(-3px);
}

.badge.earned {
  border: 1px solid #28a745;
}

.badge.locked {
  opacity: 0.5;
}

.badge-icon {
  font-size: 32px;
}

.badge-info {
  flex-grow: 1;
}

.badge-name {
  color: #fff;
  font-weight: bold;
  margin-bottom: 5px;
}

.badge-requirement {
  color: #888;
  font-size: 12px;
}

/* Stats styles */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-item {
  background-color: #242830;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.stat-label {
  display: block;
  color: #888;
  font-size: 14px;
  margin-bottom: 5px;
}

.stat-value {
  color: #28a745;
  font-size: 24px;
  font-weight: bold;
}

/* Activity styles */
.activity-list {
  max-height: 300px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #2d2d2d;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  font-size: 20px;
}

.activity-details {
  flex-grow: 1;
}

.activity-time {
  color: #888;
  font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .xp-progress {
    grid-column: span 1;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Authentication styles */
.auth-container {
  max-width: 500px;
  margin: 50px auto;
  padding: 0 20px;
}

.auth-tabs {
  display: flex;
  margin-bottom: 30px;
  background-color: #1c2127;
  border-radius: 8px;
  padding: 5px;
}

.auth-tab {
  flex: 1;
  padding: 15px;
  border: none;
  background: none;
  color: #888;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.auth-tab.active {
  background-color: #242830;
  color: #28a745;
  border-radius: 4px;
}

.auth-form-container {
  background-color: #1c2127;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.auth-form-container.hidden {
  display: none;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form label {
  display: block;
  color: #888;
  margin-bottom: 8px;
  font-weight: 500;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
  width: 100%;
  padding: 12px;
  background-color: #15191d;
  border: 2px solid #2d2d2d;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
}

.auth-form input:focus {
  outline: none;
  border-color: #28a745;
}

.remember-me {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.remember-me label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.forgot-password {
  color: #28a745;
  text-decoration: none;
  font-size: 14px;
}

.forgot-password:hover {
  text-decoration: underline;
}

.auth-button {
  width: 100%;
  padding: 15px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.auth-button:hover {
  background-color: #1e7e34;
}

.terms {
  font-size: 14px;
}

.terms a {
  color: #28a745;
  text-decoration: none;
}

.terms a:hover {
  text-decoration: underline;
}

.auth-social {
  text-align: center;
}

.auth-social p {
  color: #888;
  margin-bottom: 20px;
  position: relative;
}

.auth-social p::before,
.auth-social p::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background-color: #2d2d2d;
}

.auth-social p::before {
  left: 0;
}

.auth-social p::after {
  right: 0;
}

.social-buttons {
  display: flex;
  gap: 15px;
}

.social-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background-color: #242830;
  border: 1px solid #2d2d2d;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.social-button:hover {
  background-color: #2d2d2d;
}

.social-button img {
  width: 20px;
  height: 20px;
}

.social-button.twitter:hover {
  background-color: #1da1f2;
  border-color: #1da1f2;
}

.social-button.discord:hover {
  background-color: #7289da;
  border-color: #7289da;
}

.definition-item .vote-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
  border-top: 1px solid #2d2d2d;
  padding-top: 15px;
}

.definition-item .vote-button {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s;
}

.definition-item .vote-button:hover {
  background-color: #242830;
}

.definition-item .vote-button.upvote.active {
  color: #28a745;
}

.definition-item .vote-button.downvote.active {
  color: #dc3545;
}

.definition-item .vote-count {
  font-weight: bold;
  font-size: 16px;
}
