@import "jekyll-theme-minimal";

/* Google Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Cinzel:wght@400;600;700&family=IM+Fell+English:ital@0;1&display=swap');

/* Color Variables */
:root {
  --parchment-light: #f9f7ef;
  --parchment: #f0ead6;
  --parchment-dark: #e2d9bc;
  --wood-medium: #9c7a50;
  --wood-light: #c4a980;
  --ink-color: #333333;
  --ink-dark: #222222;
  --heading-color: #39689c;
  --link-color: #2f5d8c;
  --link-hover: #4f81b1;
  --border-color: #c4b78f;
  --shadow-color: rgba(70, 45, 20, 0.1);
  --panel-color: #f6f2e3;
  --gold: #c7a44e;
}

/* Global Styling */
body {
  font-family: 'Lora', Georgia, serif;
  color: var(--ink-color);
  line-height: 1.8;
  font-size: 16px;
  background: linear-gradient(135deg, #bead9a, #a88f6f);
  background-attachment: fixed;
}

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  color: var(--heading-color);
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-weight: 600;
  letter-spacing: 0.03em;
}

h1 {
  font-size: 2.4em;
  text-align: center;
  margin-top: 0.8em;
  position: relative;
  padding-bottom: 0.3em;
  
  &::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--heading-color), transparent);
  }
}

h2 {
  font-size: 1.8em;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.2em;
}

h3 {
  font-size: 1.4em;
}

p {
  margin-bottom: 1.2em;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 600;
  
  &:hover {
    color: var(--link-hover);
    text-decoration: underline;
  }
}

/* Header Styling */
header {
  background: var(--parchment);
  padding: 25px;
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid var(--border-color);
  box-shadow: 0 2px 10px var(--shadow-color);
  margin-top: 20px;
  
  h1 {
    margin-top: 0;
    
    &::after {
      display: none;
    }
    
    a {
      color: var(--heading-color);
      text-decoration: none;
      
      &:hover {
        color: var(--link-hover);
      }
    }
  }
  
  p {
    color: var(--ink-color);
    font-style: italic;
    font-family: 'IM Fell English', serif;
  }
}

/* Main Content */
.markdown-body {
  background: var(--parchment-light);
  padding: 40px;
  border-radius: 0 0 8px 8px;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 15px var(--shadow-color);
  margin-bottom: 30px;
  
  /* Subtle texture */
  background-image: 
    radial-gradient(var(--parchment-dark) 1px, transparent 1px),
    linear-gradient(to right, rgba(0,0,0,0.01) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.01) 1px, transparent 1px);
  background-size: 
    20px 20px,
    40px 40px,
    40px 40px;
  background-position: 0 0, 0 0, 0 0;
}

/* Navigation Panel */
.navigation-panel {
  background: var(--panel-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px 30px;
  margin: 30px 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.navigation-title {
  font-family: 'Cinzel', serif;
  color: var(--heading-color);
  text-align: center;
  font-size: 1.6em;
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

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

@media (max-width: 600px) {
  .nav-grid {
    grid-template-columns: 1fr;
  }
}

.nav-item {
  display: flex;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
  transition: all 0.2s ease;
  
  &:hover {
    background: rgba(255,255,255,0.5);
  }
  
  .nav-icon {
    margin-right: 10px;
    font-size: 1.2em;
    color: var(--heading-color);
    min-width: 25px;
    text-align: center;
  }
  
  .nav-content {
    flex: 1;
    
    .nav-link {
      font-family: 'Cinzel', serif;
      display: block;
      font-size: 1.1em;
      margin-bottom: 3px;
    }
    
    .nav-description {
      font-size: 0.9em;
      color: var(--ink-dark);
      line-height: 1.4;
    }
  }
}

/* Content Sections */
.welcome-note {
  font-family: 'IM Fell English', serif;
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  margin: 20px 0 40px;
  font-style: italic;
  color: var(--ink-dark);
}

.section-divider {
  text-align: center;
  margin: 40px 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-color), transparent);
  position: relative;
  
  &::after {
    content: "❧";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--parchment-light);
    padding: 0 15px;
    color: var(--heading-color);
    font-size: 1.2em;
  }
}

/* Updates Section */
.updates-section {
  background: var(--panel-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
}

.updates-title {
  font-family: 'Cinzel', serif;
  text-align: center;
  margin-top: 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.updates-list {
  margin-left: 25px;
  
  li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 5px;
    
    &::marker {
      color: var(--heading-color);
    }
  }
}

/* Feature Box */
.feature-box {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
  background: linear-gradient(to bottom right, var(--parchment), var(--parchment-light));
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.feature-title {
  font-family: 'Cinzel', serif;
  color: var(--heading-color);
  margin-top: 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.feature-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

@media (max-width: 600px) {
  .feature-details {
    grid-template-columns: 1fr;
  }
}

.feature-item {
  display: flex;
  
  .feature-label {
    font-weight: bold;
    min-width: 120px;
  }
}

.feature-quote {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  text-align: center;
  margin: 15px 0;
  padding: 5px 20px;
  color: var(--ink-dark);
  border-left: 3px solid var(--border-color);
}

.feature-link {
  text-align: center;
  margin-top: 15px;
}

/* First Letter Effect */
.first-paragraph::first-letter {
  font-family: 'Cinzel', serif;
  float: left;
  font-size: 3em;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 8px;
  color: var(--heading-color);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  color: #f0ead6;
  font-size: 0.9em;
}

/* Responsive Tweaks */
@media (max-width: 800px) {
  .markdown-body {
    padding: 20px;
  }
  
  h1 {
    font-size: 2em;
  }
  
  h2 {
    font-size: 1.6em;
  }
}

/* Special note box */
.note-box {
  padding: 15px 20px;
  background: var(--panel-color);
  border-left: 4px solid var(--gold);
  margin: 20px 0;
  font-family: 'IM Fell English', serif;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink-dark);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 0 8px 8px 0;
}

/* Wiki links section */
.wiki-links {
  background: var(--panel-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 20px;
  margin: 25px 0;
}

.wiki-links-title {
  font-family: 'Cinzel', serif;
  color: var(--heading-color);
  margin-top: 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.wiki-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.wiki-link-item {
  padding: 8px;
  transition: all 0.2s ease;
  border-radius: 4px;
  
  &:hover {
    background: rgba(255,255,255,0.5);
  }
  
  a {
    display: block;
    position: relative;
    padding-left: 20px;
    
    &::before {
      content: "→";
      position: absolute;
      left: 0;
      color: var(--heading-color);
    }
  }
}

/* Info box for important details */
.info-box {
  background: linear-gradient(to bottom right, var(--parchment), var(--parchment-light));
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 20px;
  margin: 25px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-box-title {
  font-family: 'Cinzel', serif;
  color: var(--heading-color);
  margin-top: 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

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

@media (max-width: 600px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.info-item {
  display: flex;
  margin-bottom: 8px;
  
  .info-label {
    font-weight: bold;
    min-width: 120px;
  }
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.9em;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

thead {
  background-color: var(--wood-medium);
  color: var(--parchment-light);
  text-align: left;
  font-family: 'Cinzel', serif;
}

th, td {
  padding: 12px 15px;
}

tr {
  border-bottom: 1px solid var(--border-color);
}

tbody tr {
  background-color: var(--parchment);
}

tbody tr:nth-of-type(even) {
  background-color: var(--parchment-light);
}

/* Category badges */
.category-badge {
  display: inline-block;
  background-color: var(--wood-medium);
  color: var(--parchment-light);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-family: 'Cinzel', serif;
  margin-right: 5px;
  margin-bottom: 5px;
}