/* Multiple Definitions Navigation Styles */

.definitions-navigation {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .definitions-navigation {
    margin-bottom: 1rem;
  }
}

.definition-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .definition-tabs {
    gap: 0.3rem;
    margin-bottom: 0.8rem;
  }
}

.definition-arrows {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding: 0.5rem 0;
}

.definition-arrow {
  padding: 0.5rem 1rem;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  font-family: "Roboto Mono", monospace;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  box-shadow: 2px 2px 0 #000;
}

.definition-arrow:hover:not(:disabled) {
  background: #ffe680;
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 #000;
}

.definition-arrow:disabled {
  background: #f0f0f0;
  color: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: 1px 1px 0 #000;
}

.definition-counter {
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
  font-weight: bold;
  color: #666;
}

.definition-tab {
  padding: 0.5rem 1rem;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  box-shadow: 2px 2px 0 #000;
}

@media (max-width: 768px) {
  .definition-tab {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

.definition-tab:hover {
  background: #ffe680;
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 #000;
}

.definition-tab.active {
  background: #000;
  color: #fff;
  box-shadow: 3px 3px 0 #000;
}

.definition-tab:active {
  transform: translateY(0);
  box-shadow: 1px 1px 0 #000;
}


/* Dark mode styles for definition navigation */
body.dark-mode .definition-tab {
  background: #444;
  color: #f5f5f5;
  border: 2px solid #666;
  box-shadow: 2px 2px 0 #666;
}

body.dark-mode .definition-tab:hover {
  background: #555;
  box-shadow: 3px 3px 0 #666;
}

body.dark-mode .definition-tab.active {
  background: #666;
  color: #fff;
  box-shadow: 3px 3px 0 #666;
}


/* Dark mode styles for arrow navigation */
body.dark-mode .definition-arrow {
  background: #444;
  color: #f5f5f5;
  border: 2px solid #666;
  box-shadow: 2px 2px 0 #666;
}

body.dark-mode .definition-arrow:hover:not(:disabled) {
  background: #555;
  box-shadow: 3px 3px 0 #666;
}

body.dark-mode .definition-arrow:disabled {
  background: #333;
  color: #666;
  border: 2px solid #555;
  box-shadow: 1px 1px 0 #555;
}

body.dark-mode .definition-counter {
  color: #ccc;
}

/* HTML Page Styles for Multiple Definitions */
.definitions-container {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #000;
}

@media (max-width: 768px) {
  .definitions-container {
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
  }
}

.definitions-title {
  font-family: "Roboto Mono", monospace;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: #333;
  border-bottom: 1px solid #000;
  padding-bottom: 0.3rem;
}

.definition-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 2px solid #000;
  border-radius: 8px;
  background: transparent;
  box-shadow: 3px 3px 0 #000;
  position: relative;
}

@media (max-width: 768px) {
  .definition-item {
    margin-bottom: 1rem;
    padding: 0.8rem;
  }
}

.definition-item:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: #000;
  border-radius: 1px;
}

.definition-item:not(:last-child) {
  margin-bottom: 2rem;
}

.definition-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px dashed #ccc;
}

.definition-number {
  font-family: "Roboto Mono", monospace;
  font-weight: bold;
  font-size: 0.9rem;
  color: #333;
}

.definition-votes {
  font-family: "Roboto Mono", monospace;
  font-size: 0.8rem;
  color: #666;
  padding: 0.2rem 0.4rem;
}

/* Dark mode styles for HTML pages */
body.dark-mode .definitions-container {
  border-bottom: 3px solid #666;
}

body.dark-mode .definition-item {
  background: transparent;
  border: 3px solid #666;
  box-shadow: 6px 6px 0 #666;
}

body.dark-mode .definition-item:not(:last-child)::after {
  background: #666;
}

body.dark-mode .definition-header {
  border-bottom: 1px dashed #555;
}

body.dark-mode .definition-number {
  color: #f5f5f5;
}

body.dark-mode .definition-votes {
  color: #ccc;
  background: #444;
  border: 1px solid #666;
}
