/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.back-link {
  position: fixed;
  top: 16px;
  left: 16px;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 8px 14px;
  border-radius: 999px;

  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;

  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 0.85;

  transition: opacity 0.15s ease, transform 0.15s ease;
}

.back-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.back-link:active {
  transform: translateY(0);
}

.back-link:hover {
    opacity: 1;
}

/* Layout Styles */
.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Article Styles */
article {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

article h1 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

article h2 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

/* For index page meta without border */
.container article .meta {
    border-bottom: none;
    margin-bottom: 1rem;
    padding-bottom: 0;
}

article p {
    margin-bottom: 1rem;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 2rem;
    color: #666;
    background: white;
    margin-top: 2rem;
}

/* Post List Styles (for index page) */
.post-list {
    list-style: none;
}

.post-list li {
    margin-bottom: 1rem;
}

.post-list a {
    color: #667eea;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.post-list a:hover {
    color: #764ba2;
    background-color: #f9f9f9;
}