/*
 * Modern responsive styling for the IDLIX.
 * Updated with Poppins font from Google Fonts.
 * Colours are defined using CSS variables to make them easy to tweak.
 */

/* Import Google Font */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --background-color: #121212;
  --container-bg: #1f1f2e;
  --text-primary: #e9ecef;
  --text-secondary: #b2bec3;
  --accent-red: #d63031;
  --accent-green: #00b894;
  --accent-blue: #0984e3;
  --accent-pink: #e84393;
  --accent-yellow: #fdcb6e;
  --accent-peach: #e17055;
  --chip-bg: #2e3440;
  --chip-hover: #3b4252;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  background-color: var(--background-color);
  color: var(--text-primary);
}

/* Container for the entire application */
#app {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
}

/* Search list view styles */
input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 1rem;
  background: var(--container-bg);
  color: var(--text-primary);
}

ul {
  list-style: none;
  padding-left: 0;
}

li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #2a2a2a;
}

a {
  color: #0d6efd;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
}

/* Landing page styles */
.landing-container {
  background: var(--container-bg);
  border-radius: 16px;
  padding: 2rem;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.landing-title {
  color: var(--accent-red);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.landing-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Buttons with modern colours and hover effect */
.button {
  display: inline-block;
  width: 80%;
  max-width: 420px;
  padding: 1rem 1.2rem;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  color: #fff;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin: 5px auto;
}

.button-blue {
  background: var(--accent-blue);
  color: #fff;
}
.button-blue:hover {
  background: #74b9ff;
}
.button-green {
  background: var(--accent-green);
  color: #fff;
}
.button-green:hover {
  background: #55efc4;
}
.button-pink {
  background: var(--accent-pink);
  color: #fff;
}
.button-pink:hover {
  background: #fab1a0;
}
.button-red {
  background: var(--accent-red);
  color: #fff;
}
.button-red:hover {
  background: #e17055;
}
.button-dark {
  background: #2d3436;
  color: #fff;
}
.button-dark:hover {
  background: #3d4547;
}
.button-grey {
  background: #636e72;
  color: #fff;
}
.button-grey:hover {
  background: #7e8a8e;
}

.bookmark-section {
  margin-top: 1.5rem;
  color: var(--text-primary);
  text-align: left;
  background: #27293d;
  padding: 1rem;
  border: 1px solid #333;
  border-radius: 8px;
}

.bookmark-section a {
  display: block;
  background: var(--chip-bg);
  padding: 0.5rem;
  border-radius: 6px;
  color: var(--accent-blue);
  margin-top: 0.5rem;
  word-break: break-all;
  text-decoration: none;
}

.other-title {
  color: var(--accent-yellow);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.other-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.other-item {
  background: #212529;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  max-width: 200px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.other-item:hover {
  background: #343a40;
}

/* Tags section on landing page */
.tags {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.tags strong {
  color: var(--accent-peach);
}

.footer {
  color: var(--text-secondary);
  margin-top: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
}
