/* Myth of Soma Website - Faithful replica of original mythofsoma.net styling */
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&family=Cinzel:wght@400;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg-dark: #0a0806;
  --bg-panel: #1a1410;
  --bg-panel2: #0f0c08;
  --border-gold: #8b6914;
  --border-gold-light: #c9a033;
  --text-gold: #d4a017;
  --text-orange: #e8860c;
  --text-white: #e0d8c8;
  --text-gray: #8a8070;
  --text-link: #e8860c;
  --text-link-hover: #ffc040;
  --accent-red: #8b1a1a;
  --accent-green: #2a6a2a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg-dark);
  color: var(--text-white);
  font-family: 'Crimson Text', Georgia, 'Times New Roman', serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--text-link-hover); text-decoration: underline; }

/* ========== HEADER ========== */
.site-header {
  text-align: center;
  padding: 20px 0 0 0;
  background: linear-gradient(to bottom, #1a1008 0%, #0a0806 100%);
  border-bottom: 3px solid var(--border-gold);
}

.logo-area {
  margin-bottom: 10px;
}

.logo-title {
  font-family: 'MedievalSharp', 'Cinzel', serif;
  font-size: 48px;
  color: var(--text-gold);
  text-shadow: 0 0 20px rgba(212,160,23,0.3), 2px 2px 4px rgba(0,0,0,0.8);
  letter-spacing: 4px;
}

.server-name {
  font-family: 'MedievalSharp', serif;
  font-size: 28px;
  color: var(--text-orange);
  letter-spacing: 3px;
  text-shadow: 0 0 15px rgba(232,134,12,0.3), 2px 2px 4px rgba(0,0,0,0.8);
  margin-top: 2px;
}

.server-division {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: var(--border-gold-light);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 4px;
}

.logo-subtitle {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--text-gray);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-top: -5px;
}

/* ========== NAVIGATION BAR ========== */
.nav-bar {
  background: linear-gradient(to bottom, #2a1f10 0%, #1a1208 50%, #0f0a04 100%);
  border-top: 2px solid var(--border-gold);
  border-bottom: 2px solid var(--border-gold);
  padding: 0;
  text-align: center;
}

.nav-bar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-bar li {
  position: relative;
}

.nav-bar a {
  display: block;
  padding: 10px 18px;
  color: var(--text-gold);
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-bar a:hover {
  color: #fff;
  background: rgba(212,160,23,0.15);
  text-decoration: none;
}

.nav-bar a.active {
  color: #fff;
  border-bottom: 2px solid var(--text-gold);
}

/* Dropdown */
.nav-bar .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a1208;
  border: 1px solid var(--border-gold);
  min-width: 200px;
  z-index: 100;
}

.nav-bar li:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  padding: 8px 16px;
  font-size: 11px;
  border-bottom: 1px solid rgba(139,105,20,0.3);
}

/* ========== MAIN LAYOUT ========== */
.page-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}

.main-layout {
  display: flex;
  gap: 0;
  padding: 16px;
}

.content-area {
  flex: 1;
  min-width: 0;
}

.sidebar-right {
  width: 280px;
  flex-shrink: 0;
  margin-left: 16px;
}

/* ========== ORNATE PANEL (gold-bordered boxes) ========== */
.panel {
  background: var(--bg-panel);
  border: 2px solid var(--border-gold);
  border-radius: 2px;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0 0 10px rgba(0,0,0,0.5), inset 0 0 30px rgba(0,0,0,0.3);
}

.panel::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px; right: 3px; bottom: 3px;
  border: 1px solid rgba(139,105,20,0.3);
  pointer-events: none;
}

.panel-header {
  background: linear-gradient(to bottom, #2a1f10, #1a1208);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-gold);
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: var(--text-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

.panel-body {
  padding: 16px;
}

/* ========== HOME PAGE SPECIFIC ========== */
.intro-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-white);
}

.intro-text .drop-cap {
  font-family: 'MedievalSharp', serif;
  float: left;
  font-size: 58px;
  line-height: 48px;
  padding-right: 8px;
  color: var(--text-gold);
}

.more-link {
  display: inline-block;
  color: var(--text-link);
  font-weight: 600;
  margin-top: 6px;
}

/* Registration box */
.register-box {
  text-align: center;
  padding: 20px;
}

.register-box .register-title {
  font-family: 'MedievalSharp', serif;
  font-size: 24px;
  color: var(--text-gold);
  margin-bottom: 10px;
}

.register-box .register-btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(to bottom, #3a2a10, #1a1208);
  border: 2px solid var(--border-gold);
  color: var(--text-gold);
  font-family: 'MedievalSharp', serif;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.register-box .register-btn:hover {
  background: linear-gradient(to bottom, #4a3a1a, #2a1f10);
  color: #fff;
  text-decoration: none;
}

/* News section */
.news-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(139,105,20,0.2);
}

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

.news-date {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 2px;
}

.news-title {
  font-weight: 600;
  color: var(--text-white);
}

/* Features list */
.features-list {
  list-style: none;
}

.features-list li {
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
  color: var(--text-gold);
  font-size: 13px;
}

.features-list li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--text-orange);
  font-weight: bold;
}

/* Screenshot area */
.screenshot-box {
  text-align: center;
}

.screenshot-box img {
  max-width: 100%;
  border: 2px solid var(--border-gold);
}

.screenshot-caption {
  font-size: 11px;
  color: var(--text-gray);
  margin-top: 6px;
  font-style: italic;
}

/* ========== CONTENT PAGES ========== */
.page-title {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  color: var(--text-gold);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(212,160,23,0.2);
}

.content-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-white);
}

.content-text h2 {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: var(--text-gold);
  margin: 20px 0 10px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(139,105,20,0.3);
}

.content-text h3 {
  color: var(--text-orange);
  font-size: 15px;
  margin: 16px 0 8px 0;
}

.content-text p { margin-bottom: 12px; }

.content-text ul {
  margin-left: 20px;
  margin-bottom: 12px;
}

.content-text li { margin-bottom: 4px; }

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0;
}

.data-table th {
  background: linear-gradient(to bottom, #2a1f10, #1a1208);
  color: var(--text-gold);
  padding: 8px 12px;
  text-align: left;
  border: 1px solid var(--border-gold);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.data-table td {
  padding: 6px 12px;
  border: 1px solid rgba(139,105,20,0.3);
  background: rgba(10,8,6,0.5);
}

.data-table tr:hover td {
  background: rgba(139,105,20,0.1);
}

/* Forms */
.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: var(--text-gold);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  background: #0a0806;
  border: 1px solid var(--border-gold);
  color: var(--text-white);
  font-family: inherit;
  font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-gold-light);
  box-shadow: 0 0 5px rgba(212,160,23,0.3);
}

.btn-gold {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(to bottom, #3a2a10, #1a1208);
  border: 2px solid var(--border-gold);
  color: var(--text-gold);
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-gold:hover {
  background: linear-gradient(to bottom, #4a3a1a, #2a1f10);
  color: #fff;
}

/* ========== FOOTER ========== */
.site-footer {
  text-align: center;
  padding: 20px;
  border-top: 2px solid var(--border-gold);
  background: linear-gradient(to bottom, #0f0a04, #0a0806);
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 20px;
}

.site-footer a { color: var(--text-gold); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .main-layout { flex-direction: column; padding: 8px; }
  .sidebar-right { width: 100%; margin-left: 0; }
  .nav-bar a { padding: 8px 10px; font-size: 10px; }
  .logo-title { font-size: 32px; }
}

/* ========== VOTE POLL ========== */
.poll-box {
  padding: 12px;
}

.poll-box .poll-title {
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
  font-size: 14px;
}

.poll-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  font-size: 13px;
}

.poll-option input[type="radio"] {
  accent-color: var(--text-gold);
}

/* ========== DEVIL WORLD BOX ========== */
.devil-box {
  text-align: center;
  padding: 16px;
}

.devil-box .devil-title {
  font-family: 'MedievalSharp', serif;
  font-size: 22px;
  color: #c41010;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(196,16,16,0.3);
}
