/* Custom Dark Theme para Republic Origins Guide */

:root {
  --base-background-color: #0d0d0d;
  --theme-color: #e6c98a;
  --sidebar-background: #1a1a1a;
  --text-color-base: #e0e0e0;
  --text-color-secondary: #b0b0b0;
}

/* Body y fondo general */
body {
  background: #0d0d0d !important;
  color: #e0e0e0 !important;
}

/* Sidebar */
.sidebar {
  background: #1a1a1a !important;
  border-right: 1px solid #333 !important;
}

.sidebar ul li a {
  color: #e0e0e0 !important;
}

.sidebar ul li a:hover {
  color: #e6c98a !important;
}

.sidebar .sidebar-nav > ul > li > a {
  font-weight: 600;
}

.sidebar .search input {
  background: #0d0d0d !important;
  color: #e0e0e0 !important;
  border: 1px solid #333 !important;
}

.sidebar .search input::placeholder {
  color: #666 !important;
}

/* Área de contenido */
.markdown-section {
  max-width: none !important;
  padding: 30px !important;
  color: #e0e0e0 !important;
  width: calc(100% - 60px) !important;
}

.markdown-section h1,
.markdown-section h2,
.markdown-section h3,
.markdown-section h4,
.markdown-section h5,
.markdown-section h6 {
  color: #e6c98a !important;
  border-bottom-color: #333 !important;
}

.markdown-section a {
  color: #e6c98a !important;
  text-decoration: none;
}

.markdown-section a:hover {
  text-decoration: underline;
}

.markdown-section .anchor span {
  color: #e6c98a !important;
}

.markdown-section .anchor {
  color: #e6c98a !important;
}

.markdown-section p,
.markdown-section ul,
.markdown-section ol {
  color: #e0e0e0 !important;
}

.markdown-section strong {
  color: #fff !important;
}

.markdown-section code {
  background: #1a1a1a !important;
  color: #e6c98a !important;
  border: 1px solid #333 !important;
}

.markdown-section pre {
  background: #1a1a1a !important;
  border: 1px solid #333 !important;
}

.markdown-section pre > code {
  color: #e0e0e0 !important;
}

/* Tablas - TODO OSCURO */
.markdown-section table {
  background: #1a1a1a !important;
  border: 1px solid #333 !important;
  border-collapse: collapse !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 20px 0 !important;
  display: table !important;
}

.markdown-section th {
  background: #0d0d0d !important;
  color: #e6c98a !important;
  border: 1px solid #333 !important;
  padding: 12px !important;
  font-weight: 600 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.markdown-section th:first-child {
  width: 25% !important;
  min-width: 150px !important;
}

.markdown-section th:last-child {
  width: 75% !important;
}

.markdown-section td {
  background: #1a1a1a !important;
  color: #e0e0e0 !important;
  border: 1px solid #333 !important;
  padding: 12px !important;
  vertical-align: top !important;
}

.markdown-section tr:nth-child(even) td {
  background: #151515 !important;
}

.markdown-section tr:hover td {
  background: #252525 !important;
}

/* Listas dentro de tablas */
.markdown-section td ul {
  margin: 0 !important;
  padding-left: 20px !important;
}

.markdown-section td ul li {
  margin: 5px 0 !important;
}

/* Blockquotes */
.markdown-section blockquote {
  background: #1a1a1a !important;
  border-left: 4px solid #e6c98a !important;
  color: #b0b0b0 !important;
}

/* Alerts (info, warning, danger) */
.markdown-section .tip,
.markdown-section .warn,
.markdown-section .danger {
  background: #1a1a1a !important;
  border-left: 4px solid #e6c98a !important;
  color: #e0e0e0 !important;
}

.markdown-section .warn {
  border-left-color: #ff9800 !important;
}

.markdown-section .danger {
  border-left-color: #f44336 !important;
}

/* Imágenes */
.markdown-section img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 10px 0;
}

/* Botón Back to Menu */
.back-menu-btn {
  display: inline-block !important;
  padding: 12px 24px !important;
  background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: bold !important;
  border-radius: 6px !important;
  border: 2px solid #e6c98a !important;
  transition: all 0.3s !important;
  margin: 20px 0 !important;
}

.back-menu-btn:hover {
  background: linear-gradient(135deg, #A0522D 0%, #FF8C00 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(230, 201, 138, 0.3) !important;
  text-decoration: none !important;
}

/* Intro images grid */
.intro-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 20px 0;
}

.intro-images img {
  width: 100% !important;
  display: block !important;
  margin: 0 !important;
}

/* Paginación */
.pagination-item a {
  color: #e6c98a !important;
}

.pagination-item a:hover {
  text-decoration: underline !important;
}

/* Cover page (si se usa) */
.cover {
  background: #0d0d0d !important;
}

.cover h1,
.cover h2 {
  color: #e6c98a !important;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Event Cards Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.event-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 2px solid #333;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B4513, #e6c98a, #D2691E);
}

.event-card:hover {
  border-color: #e6c98a;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(230, 201, 138, 0.2);
}

.event-special {
  border-color: #e6c98a;
  background: linear-gradient(135deg, #2a1a0a 0%, #1a1a1a 100%);
}

.event-special::before {
  background: linear-gradient(90deg, #e6c98a, #FFD700, #e6c98a);
  height: 4px;
}

.event-mini {
  opacity: 0.9;
}

.event-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(230, 201, 138, 0.3));
}

.event-title {
  color: #e6c98a !important;
  font-size: 1.3em !important;
  margin: 10px 0 15px 0 !important;
  text-align: center;
  border: none !important;
}

.solo-badge {
  display: inline-block;
  background: #8B4513;
  color: #fff;
  font-size: 0.6em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 5px;
  vertical-align: middle;
}

.event-reward,
.event-schedule {
  margin: 15px 0;
  font-size: 0.95em;
}

.event-reward ul,
.event-schedule ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.event-reward ul li,
.event-schedule ul li {
  margin: 5px 0;
  color: #b0b0b0;
}

.event-schedule .highlight {
  color: #e6c98a;
  font-weight: bold;
}

.event-card strong {
  color: #e6c98a !important;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

/* Job Pricing Grid */
.job-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.pricing-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 2px solid #333;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(230, 201, 138, 0.15);
}

.pricing-card h3 {
  color: #e6c98a !important;
  font-size: 1.2em !important;
  margin: 0 0 20px 0 !important;
  text-align: center;
  border: none !important;
}

.buy-card {
  border-top: 3px solid #4CAF50;
}

.sell-card {
  border-top: 3px solid #FFD700;
}

.thief-card {
  border-top: 3px solid #f44336;
}

.hunter-card {
  border-top: 3px solid #2196F3;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #333;
}

.price-item:last-of-type {
  border-bottom: none;
}

.price-label {
  color: #b0b0b0;
  font-size: 0.95em;
}

.price-value {
  color: #FFD700;
  font-weight: bold;
  font-size: 1.1em;
}

.highlight-profit {
  background: rgba(255, 215, 0, 0.05);
  padding: 12px;
  border-radius: 6px;
  margin: 8px 0;
  border-bottom: none;
}

.profit-badge {
  display: inline-block;
  background: #4CAF50;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85em;
  margin-left: 10px;
  font-weight: bold;
}

.daily-limit,
.info-note {
  text-align: center;
  margin-top: 15px;
  padding: 10px;
  background: rgba(230, 201, 138, 0.1);
  border-radius: 6px;
  color: #e6c98a;
  font-weight: bold;
  font-size: 0.9em;
}

.info-note {
  background: rgba(33, 150, 243, 0.1);
  color: #64B5F6;
}

.daily-limit-global {
  text-align: center;
  margin: 20px 0;
  padding: 15px;
  background: linear-gradient(135deg, rgba(230, 201, 138, 0.1), rgba(255, 215, 0, 0.1));
  border: 2px solid #e6c98a;
  border-radius: 8px;
  color: #e6c98a;
  font-size: 1.1em;
  font-weight: normal;
}

.daily-limit-global strong {
  color: #FFD700 !important;
  font-size: 1.2em;
}

.level-reward-note {
  text-align: center;
  margin: 15px 0;
  padding: 15px;
  background: rgba(76, 175, 80, 0.1);
  border-left: 4px solid #4CAF50;
  border-radius: 6px;
  color: #b0b0b0;
  font-size: 1em;
}

.level-reward-note strong {
  color: #4CAF50 !important;
}

@media (max-width: 768px) {
  .job-pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Video Container */
.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  border: 2px solid #333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
  display: block;
  width: 100%;
  height: 500px;
}

@media (max-width: 768px) {
  .video-container iframe {
    height: 300px;
  }
}

/* Ajustes para Docsify sin header y footer */
body {
  margin: 0;
  padding: 0;
}

#app {
  min-height: 100vh;
}

.sidebar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 100;
}

.sidebar ul {
  padding-bottom: 20px;
}

.content {
  margin-left: 300px !important;
  padding: 20px 40px !important;
  min-height: 100vh;
  padding-bottom: 40px !important;
}

.markdown-section {
  padding-top: 20px;
  padding-bottom: 40px;
}

/* Estilos para el logo en el sidebar */
.app-name {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #333;
}

.app-name a {
  display: inline-block;
  text-decoration: none;
}

.app-name img {
  max-width: 100%;
  height: auto;
}

