:root {
  --bg: #ffffff;
  --text: #222222;
  --accent: #0077cc;
  --card: #f0f8ff;
  --item-bg: #f9f9f9;
}

body.dark {
  --bg: #121212;
  --text: #e0e0e0;
  --accent: #4fa3ff;
  --card: #1f1f1f;
  --item-bg: #2a2a2a;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}

.container {
  max-width: 700px;
  padding: 2rem;
  background-color: var(--bg);
  margin: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h1 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.controls {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

select, button {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: var(--item-bg);
  color: var(--text);
  cursor: pointer;
}

button:hover {
  background-color: var(--accent);
  color: white;
}

#article {
  background-color: var(--card);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

#article h2 {
  margin-top: 0;
}

#article img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

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

li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  background-color: var(--item-bg);
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

li a {
  color: var(--accent);
  text-decoration: none;
  flex: 1;
}

.remove-btn {
  background-color: transparent;
  border: none;
  color: red;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Share button */
#shareBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  border: none;
  background-color: var(--accent);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}


/* Mobile layout */
@media (max-width: 600px) {
  .container {
    margin: 1rem;
    padding: 1rem;
  }

  select, button {
    width: 100%;
  }

  #shareBtn {
    font-size: 1.2rem;
    padding: 0.5rem 0.8rem;
  }
}

select {
  line-height: 1.2;
  height: 42px;
  display: inline-block;
  vertical-align: middle;
  background-color: var(--item-bg);
  background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
  padding-right: 2.2rem;
  appearance: none;
}
