/* Mysterious minimalist theme for e-rudy's monthly essays */

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

body {
  background: #0a0a0a;
  color: #e8e8e8;
  font-family: 'Georgia', serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: 0.1em;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* Links */
a {
  color: #e8e8e8;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #ffffff;
}

/* Container and layout */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  position: relative;
}

/* Navigation elements */
.back-link {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

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

.back-link::before {
  content: '← ';
}

/* Buttons and interactive elements */
.btn, button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e8e8e8;
  padding: 0.8rem 2rem;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before, button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.btn:hover::before, button:hover::before {
  left: 100%;
}

.btn:hover, button:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Cards and content blocks */
.card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transition: left 0.6s ease;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.05);
}

/* Forms */
input, textarea, select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e8e8e8;
  padding: 0.8rem;
  font-family: inherit;
  width: 100%;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
}

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

li {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

/* Header styles */
.header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeIn 1.5s ease-out;
}

.subtitle {
  font-size: 1rem;
  opacity: 0.6;
  font-style: italic;
}

/* Animations */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes pulse {
  0%, 100% { 
    opacity: 0.3; 
    transform: translate(-50%, -50%) scale(1); 
  }
  50% { 
    opacity: 0.6; 
    transform: translate(-50%, -50%) scale(1.1); 
  }
}

.fade-in {
  animation: fadeIn 1.5s ease-out;
}

.fade-in-delayed {
  animation: fadeIn 1.5s ease-out 0.5s both;
}

/* Glow effect for special pages */
.glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(100, 100, 100, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}

/* Navigation styles */
.nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 2s ease-out 1s both;
}

.nav a {
  padding: 0.8rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
  display: block;
  text-align: center;
}

/* Date and metadata styles */
.date, .meta {
  font-size: 0.85rem;
  color: #888;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Read more links */
.read-more {
  font-size: 0.9rem;
  color: #aaa;
  border-bottom: 1px solid transparent;
  letter-spacing: 0.05em;
  display: inline-block;
}

.read-more:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.read-more::after {
  content: ' →';
  transition: transform 0.3s ease;
  display: inline-block;
}

.read-more:hover::after {
  transform: translateX(3px);
}

/* Footer */
.footer {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.4;
  margin-top: 4rem;
  padding: 2rem 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 2rem 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .back-link {
    left: 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .nav {
    gap: 1rem;
  }
  
  .nav a {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1.5rem 1rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .glow {
    width: 200px;
    height: 200px;
  }
}