/* Majic Realm Theme CSS */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, #1a0d08 0%, #2c1810 50%, #4a2c18 100%);
  color: white;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f4d03f;
  text-decoration: none;
}

.site-title:hover {
  color: #fff;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(244, 208, 63, 0.2);
  color: #f4d03f;
}

/* Main Content */
.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  min-height: calc(100vh - 200px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #2c1810;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  border-bottom: 3px solid #f4d03f;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: #444;
}

/* Links */
a {
  color: #8b4513;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #a0522d;
  text-decoration: underline;
}

/* Lists */
ul, ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Code */
code {
  background: #2c1810;
  color: #f4d03f;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.9em;
}

pre {
  background: #2c1810;
  color: #f0f0f0;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #f4d03f;
  background: rgba(244, 208, 63, 0.1);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
}

blockquote p {
  margin: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

th, td {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  text-align: left;
}

th {
  background: #2c1810;
  color: white;
}

tr:nth-child(even) {
  background: #f8f9fa;
}

/* Horizontal Rule */
hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #f4d03f, transparent);
  margin: 2rem 0;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #1a0d08 0%, #2c1810 100%);
  color: white;
  padding: 2rem;
  text-align: center;
}

.site-footer a {
  color: #f4d03f;
}

.site-footer a:hover {
  color: white;
}

/* Blog/News specific */
.blog-listing {
  display: grid;
  gap: 2rem;
}

.blog-item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-item h2 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.blog-item h2 a {
  color: #2c1810;
}

.blog-item h2 a:hover {
  color: #8b4513;
}

.blog-date {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-excerpt {
  color: #666;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(45deg, #8b4513 0%, #a0522d 100%);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.read-more:hover {
  background: linear-gradient(45deg, #a0522d 0%, #cd853f 100%);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Back to site link */
.back-to-site {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(45deg, #8b4513 0%, #a0522d 100%);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
}

.back-to-site:hover {
  background: linear-gradient(45deg, #a0522d 0%, #cd853f 100%);
  color: white;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    padding: 1rem;
  }

  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav ul {
    gap: 0.5rem;
  }

  .main-nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .main-content {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  h1 {
    font-size: 1.6rem;
  }
}

/* Logo styling */
.site-logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 50px;
  width: auto;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

@media (max-width: 768px) {
  .logo-image {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .logo-image {
    height: 32px;
  }
}
