/* Global Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #121212 0%, #1e1e2f 100%);
  color: #e0e0e0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 15px;
}

/* Container - flex column with centered content for logo + title */
.container {
  max-width: 960px;
  width: 100%;
  background-color: #1b1b2f;
  padding: 32px 48px 48px; /* more bottom padding */
  border-radius: 6px;
  box-shadow:
    0 0 0 1px #2e2e55,
    0 12px 24px rgba(0, 0, 0, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Title styling */

.title {
  width: 500px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px #ff5ff4);
  transition: filter 0.3s ease;
}

.title:hover {
  filter: drop-shadow(0 0 15px #ff5ff4);
}

/* Title - cool neon 3D layered glow */
h1 {
  font-weight: 900;
  font-size: 3.8rem;
  color: #aabfff;
  margin: 0 0 40px;
  letter-spacing: 1.8px;
  text-align: center;

  text-shadow:
    0 0 8px #7a95ff,
    0 0 20px #5f7fff,
    2px 2px 0 #2c2f53,
    4px 4px 8px rgba(0, 0, 40, 0.7);

  transition: color 0.3s ease, text-shadow 0.3s ease;
}

h1:hover {
  color: #cad4ff;
  text-shadow:
    0 0 12px #9bb4ff,
    0 0 30px #7f8fff,
    3px 3px 0 #232752,
    6px 6px 10px rgba(0, 0, 60, 0.8);
}

/* Search Box */
#search {
  width: 100%;
  padding: 16px 20px;
  font-size: 18px;
  border-radius: 6px;
  border: none;
  background-color: #2b2b50;
  color: #d0d4f7;
  box-shadow:
    inset 0 0 5px #181c3f,
    inset 0 0 15px #3c45a5;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  margin-bottom: 48px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

#search::placeholder {
  color: #8a90bf;
  font-style: normal;
  letter-spacing: 0.05em;
}

#search:focus {
  outline: none;
  background-color: #3a3e7a;
  box-shadow:
    0 0 12px #5f7fff,
    inset 0 0 18px #5f7fff;
  color: #f0f4ff;
}

/* Wiki List */
.wiki-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Each Entry */
.entry {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: #2e2e5a;
  border-radius: 6px;
  padding: 24px 28px;
  box-shadow:
    0 0 0 1.5px #3f4aa7,
    0 8px 20px rgba(0, 0, 0, 0.85);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1), box-shadow 0.28s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Accent line on left for each entry */
.entry::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 6px;
  background: linear-gradient(180deg, #5f7fff 0%, #3c50d3 100%);
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  transition: background 0.3s ease;
}

.entry:hover::before {
  background: linear-gradient(180deg, #9bb4ff 0%, #6f8eff 100%);
}

/* Hover effect - toned down */
.entry:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 20px rgba(95, 127, 255, 0.4),
    0 0 10px rgba(95, 127, 255, 0.3);
}

/* Recipe Image */
.entry img {
  width: 380px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.85),
    0 0 8px #2c3a8c;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.entry:hover img {
  transform: scale(1.03);
  box-shadow:
    0 4px 10px rgba(95, 127, 255, 0.5),
    0 0 10px #5f7fff;
}

/* Entry Text Content */
.entry-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 8px;
}

/* Recipe Title */
.entry h2 {
  font-size: 28px;
  margin: 0 0 12px;
  color: #c3cafb;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-shadow:
    0 0 4px #5f7fff;
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

.entry:hover h2 {
  color: #aabfff;
  text-shadow:
    0 0 6px #7a95ff;
}

/* Recipe Description */
.entry p {
  font-size: 16.5px;
  line-height: 1.6;
  color: #bac1f4dd;
  margin: 0;
  letter-spacing: 0.03em;
  user-select: text;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .container {
    padding: 24px 20px;
  }

  h1 {
    font-size: 2.4rem;
    margin-bottom: 28px;
  }

  #search {
    font-size: 16px;
    padding: 14px 16px;
    margin-bottom: 36px;
  }

  .wiki-list {
    gap: 32px;
  }

  .entry {
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    gap: 20px;
  }

  .entry::before {
    width: 100%;
    height: 6px;
    top: auto;
    left: 0;
    bottom: 0;
    border-radius: 0 0 6px 6px;
  }

  .entry img {
    width: 90%;
    max-width: 380px;
    border-radius: 6px;
  }

  .entry-content {
    text-align: center;
    padding-right: 0;
  }

  .entry h2 {
    font-size: 24px;
  }

  .entry p {
    font-size: 15px;
  }
}

.download-buttons {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.download-link {
  background: linear-gradient(135deg, #5f7fff, #3c50d3);
  padding: 14px 28px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.5px;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.4),
    0 0 6px #5f7fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-link:hover {
  transform: scale(1.05);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.6),
    0 0 10px #9bb4ff;
  background: linear-gradient(135deg, #7a95ff, #5f7fff);
}
