/* === _base.css ===
   Shared Styles: Containers, Fonts, Buttons, Modals, Links, Headings
*/

/* ========== Reset & Base Layout ========== */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  background: url('https://www.transparenttextures.com/patterns/paper-fibers.png') repeat, #f3efe3;
  font-family: 'Georgia', serif;
  color: #2d1d0f;
  scroll-behavior: smooth;
}

.container {
  max-width: 900px;
  margin: 1em auto;
  padding: 1.5em 2em;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(1px);
  border: 5px groove #a58660;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

/* ========== Typography ========== */
h1, h2, h3 {
  font-family: 'Cinzel Decorative', serif;
  color: #4a2600;
  text-transform: uppercase;
  margin-top: 1em;
  letter-spacing: 1.5px;
  text-shadow: 1px 1px 2px #aaa;
  line-height: 1.1;
  text-align: center;
}

p {
  font-size: 1.15em;
  color: #3c2a1e;
}

/* ========== Links ========== */
a, .spell-link {
  color: #7a0b0b;
  font-weight: bold;
  border-bottom: 1px dotted #7a0b0b;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover, .spell-link:hover {
  color: #000;
  border-bottom: 1px solid #000;
}

.birthday-banner {
  background: linear-gradient(to right, #fbd786, #f7797d);
  color: #fff;
  padding: 1rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}

/* ========== Buttons ========== */
button, .btn-runecast {
  background: #4a2600;
  color: #fff;
  border: none;
  padding: 0.75em 1.5em;
  font-size: 1.1em;
  border-radius: 6px;
  margin-top: 1em;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

button:hover, .btn-runecast:hover {
  background: #7a0b0b;
}

.broken-link {
  color: red;
  text-decoration: underline dotted;
}

/* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  padding-top: 2em;
  overflow-y: auto;
}

.modal.show {
  display: block;
}

.modal .modal-content {
  margin: 2em auto;
  background: #fffdf7;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  max-height: 90vh;
  overflow-y: auto;
}

.modal .close {
  position: absolute;
  top: 0.75em;
  right: 1em;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #7a0b0b;
  font-weight: bold;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 1rem;
    max-width: 95%;
    font-size: 0.95rem;
  }
}

.close-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.25rem;
  background: #eee;
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  color: #333;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-button:hover {
  background: #ccc;
  color: #000;
  border-color: #999;
}

.dashboard-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: space-between;
  margin-top: 2em;
}

.dashboard-box {
  background: rgba(255, 250, 240, 0.95);
  border: 3px double #a58660;
  border-radius: 10px;
  padding: 1.5em;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  flex: 1 1 350px;
  min-width: 300px;
  max-width: 100%;
}

.dashboard-box h3 {
  font-family: 'Cinzel Decorative', serif;
  color: #4a2600;
  margin-top: 0;
}

.dashboard-box hr {
  border: none;
  border-top: 1px solid #bbb;
  margin: 0.75em 0;
}

.embedded-image-centered {
  text-align: center;
  margin: 1em 0;
}
.embedded-image-centered img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
