/* style.css */

.pigeon img {
  width: 140px;
  height: auto;
  /* Default: no filter */
  filter: none;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 0.5rem;
}
/* Base layout */
body {
  font-family: system-ui, sans-serif;
  background: white;
  color: black;
  margin: 0;
  padding: 1.5rem;
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  color: cadetblue;
  text-decoration: none;
}

.a-header {
  color: inherit !important;
  text-decoration: none;
}

.menu {
  display: flex;
  justify-content: center; /* center horizontally */
  gap: 2rem;               /* spacing between items */
  margin-top: 1rem;   
}

.menu p {
  margin: 0; /* remove extra spacing if needed */
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1rem;
  color: #555;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.w-full {
  width: 100%;
}

/* Footer */
footer {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.9rem;
}

footer nav a {
  margin: 0 0.5rem;
  text-decoration: none;
  color: inherit;
}

.text-input {
  padding: 0.5rem 1.25rem;
  border: 2px solid black;
  font-size: 1rem;
  border-radius: 4px;
}

/* Button styles */
.button {
  padding: 0.5rem 1.25rem;
  border: 2px solid black;
  background: white;
  color: black;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.button:hover,
.button:focus {
  background: black;
  color: white;
}

.button-secondary {
  background: black;
  color: white;
}

.button-secondary:hover,
.button-secondary:focus {
  background: white;
  color: black;
}

/* Dark mode via manual toggle */
:root[data-theme='dark'] {
  background: #111;
  color: #f9f9f9;
}

:root[data-theme='dark'] .button {
  background: #111;
  color: #f9f9f9;
  border-color: white;
}

:root[data-theme='dark'] .button:hover,
:root[data-theme='dark'] .button:focus {
  background: white;
  color: black;
}

:root[data-theme='dark'] .button-secondary {
  background: white;
  color: black;
}

:root[data-theme='dark'] .button-secondary:hover,
:root[data-theme='dark'] .button-secondary:focus {
  background: #222;
  color: white;
}

:root[data-theme='dark'] .theme-toggle {
  border-color: white;
  color: white;
}

/* Light theme override */
:root[data-theme='light'] body {
  background: white;
  color: black;
}

/* Dark theme override */
:root[data-theme='dark'] body {
  background: #111;
  color: #f9f9f9;
}

/* Content section */
.info-section {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #ccc;
}

.info-section h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.info-section h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.info-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.info-section li {
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
}

.info-section li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: currentColor;
}

/* Dark mode tweak for separator line */
:root[data-theme='dark'] .info-section {
  border-top-color: #444;
}

.subscriptions-section {
  padding: 0rem;
}

.subscriptions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.subscription-card {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.subscription-info {
  margin-bottom: 0.5rem;
}

.subscription-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.edit-toggle-button {
  background-color: #facc15;
  border: none;
  border-radius: 5px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}
.edit-toggle-button:hover {
  background-color: #eab308;
}

.subscription-edit-form {
  padding-top: 1rem;
  border-top: 1px dashed #ddd;
  margin-top: 1rem;
}

.subscription-edit-form .form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.subscription-edit-form label {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.subscription-edit-form input[type="text"],
.subscription-edit-form select {
  padding: 0.4rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

.subscription-edit-form .checkbox {
  flex-direction: row;
  align-items: center;
}

.subscription-edit-form .checkbox input {
  margin-right: 0.5rem;
}

.subscription-edit-form .form-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.subscription-edit-form .button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

.account-edit-form {
  padding-top: 1rem;
  margin-top: 1rem;
}

.account-edit-form .form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.account-edit-form label {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.account-edit-form input[type="text"],
.account-edit-form select {
  padding: 0.4rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

.account-edit-form .checkbox {
  flex-direction: row;
  align-items: center;
}

.account-edit-form .checkbox input {
  margin-right: 0.5rem;
}

.account-edit-form .form-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.account-edit-form .button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

.add-feed-form {
  padding-top: 1rem;
  margin-top: 1rem;
}

.add-feed-form .form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.add-feed-form label {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.add-feed-form input[type="text"],
.add-feed-form select {
  padding: 0.4rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

.add-feed-form .checkbox {
  flex-direction: row;
  align-items: center;
}

.add-feed-form .checkbox input {
  margin-right: 0.5rem;
}

.add-feed-form .form-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.add-feed-form .button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

.button-delete {
    color: #e74c3c !important;
    border-color: #e74c3c !important;
}

.button-delete:hover {
    background-color: #c0392b !important;
    border-color: #c0392b !important;
    color: white !important;
}
