@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@400;700&display=swap');

:root {
  --bg-color: #0d1117;
  --bg-gradient: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  --text-primary: #c9d1d9;
  --text-secondary: #8b949e;
  --accent-color: #58a6ff;
  --accent-hover: #79c0ff;
  --card-bg: rgba(22, 27, 34, 0.6);
  --card-border: rgba(48, 54, 61, 0.5);
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

header {
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(88, 166, 255, 0.1) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  margin-bottom: 1rem;
}

header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  background: -webkit-linear-gradient(45deg, #58a6ff, #bc8cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(88, 166, 255, 0.3);
}

.post-card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.post-card h2 a {
  color: #ffffff;
}

.post-card h2 a:hover {
  color: var(--accent-color);
}

.post-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: block;
}

.post-excerpt {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.read-more::after {
  content: '→';
  margin-left: 0.5rem;
  transition: margin-left 0.3s ease;
}

.read-more:hover::after {
  margin-left: 0.8rem;
}

/* Single Post Styles */
.single-post {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 3rem;
  backdrop-filter: blur(10px);
}

.single-post .post-header {
  margin-bottom: 3rem;
  text-align: center;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 2rem;
}

.single-post .post-title {
  font-size: 2.5rem;
  line-height: 1.2;
}

.single-post .post-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.single-post .post-content p {
  margin-bottom: 1.5rem;
}

.single-post .post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.single-post .post-content a {
  text-decoration: underline;
  text-decoration-color: rgba(88, 166, 255, 0.4);
  text-underline-offset: 4px;
}

.single-post .post-content a:hover {
  text-decoration-color: var(--accent-hover);
}

.single-post .post-content pre,
.single-post .post-content code {
  background: #000;
  color: #e6edf3;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

.single-post .post-content pre {
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--card-border);
}

.single-post .post-content blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 1.5rem;
  margin-left: 0;
  margin-right: 0;
  font-style: italic;
  color: var(--text-secondary);
  background: rgba(88, 166, 255, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 2rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.back-link:hover {
  color: var(--accent-color);
}

.back-link::before {
  content: '←';
  margin-right: 0.5rem;
  transition: margin-right 0.3s ease;
}

.back-link:hover::before {
  margin-right: 0.8rem;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }
  
  .single-post {
    padding: 1.5rem;
  }
  
  .single-post .post-title {
    font-size: 2rem;
  }
}
