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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background: #1a1a1a;
}

header {
  background: linear-gradient(135deg, #4a5fc1 0%, #5a3a7a 100%);
  color: white;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

header h1 a {
  color: white;
  text-decoration: none;
}

header nav a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
  opacity: 0.9;
  transition: opacity 0.3s;
}

header nav a:hover {
  opacity: 1;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 2rem;
}

.sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
  background: #2a2a2a;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.search-box {
  margin-bottom: 1.5rem;
}

#searchInput {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #404040;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.3s;
  background: #1a1a1a;
  color: #e0e0e0;
}

#searchInput:focus {
  outline: none;
  border-color: #667eea;
}

.recipe-nav h3 {
  color: #8b9dff;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.recipe-nav ul {
  list-style: none;
}

.recipe-nav li {
  margin-bottom: 0.5rem;
}

.recipe-nav a {
  color: #b0b0b0;
  text-decoration: none;
  display: block;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s;
}

.recipe-nav a:hover {
  background: #3a3a3a;
  color: #8b9dff;
}

.recipe-nav li.hidden {
  display: none;
}

.content {
  background: #2a2a2a;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  min-height: 500px;
}

.recipe h1 {
  color: #f0f0f0;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.recipe h2 {
  color: #8b9dff;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.recipe blockquote {
  border-left: 4px solid #8b9dff;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #a0a0a0;
  font-style: italic;
}

.recipe blockquote a {
  color: #8b9dff;
  text-decoration: none;
}

.recipe blockquote a:hover {
  text-decoration: underline;
}

.recipe img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.recipe ul,
.recipe ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.recipe li {
  margin-bottom: 0.5rem;
}

.recipe code {
  background: #1a1a1a;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: #8b9dff;
  font-weight: 600;
}

.recipe strong {
  color: #8b9dff;
  font-weight: 600;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.recipe-card {
  background: #1e1e1e;
  padding: 1.5rem;
  border-radius: 8px;
  transition: all 0.3s;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
}

.recipe-card h2,
.recipe-card h3 {
  margin-bottom: 0.5rem;
}

.recipe-card a {
  color: #8b9dff;
  text-decoration: none;
}

.recipe-card a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 2rem;
  color: #808080;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
  }
}