@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Rum+Raisin&family=Quicksand:wght@400;600;700&display=swap');

/* BASE STYLES */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5dc;
  color: #754c24;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

h1,
h2 {
  font-family: 'Rum Raisin', cursive;
  color: #754c24;
  letter-spacing: 0.05em;
}

.welcome-message {
  font-family: 'Quicksand', sans-serif;
  font-size: 2.2em;
  color: #cb1061;
  text-align: center;
  margin: 20px 0 10px 0;
  letter-spacing: 0.02em;
  font-weight: 700;
}

/* LANDING PAGE */
.landing-content {
  display: flex;
  gap: 40px;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.landing-photo {
  max-width: 45%;
  height: auto;
  border-radius: 15px;
  border: 3px solid #42733f;
}

.landing-text {
  flex: 1;
}

.landing-text h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #cb1061;
  font-weight: 700;
}

.landing-text p {
  font-size: 1.6em;
  line-height: 1.3;
  margin-bottom: 15px;
}

.signin-prompt {
  margin-top: 30px;
  font-weight: 600;
}

.signin-prompt a {
  color: #42733f;
  text-decoration: underline;
}

.signin-prompt a:hover {
  color: #cb1061;
}

/* FORMS */
form {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  max-width: 500px;
  background-color: white;
  padding: 30px;
  border-radius: 20px;
  border: 4px solid #42733f;
  margin: 0 auto;
}

form h1 {
  text-align: center;
  color: #754c24;
  margin: 0 0 20px 0;
}

form label {
  margin-top: 15px;
  color: #754c24;
  font-weight: 600;
}

form label:first-of-type {
  margin-top: 0;
}

input,
textarea,
select {
  border: 2px solid #42733f;
  padding: 10px;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #cb1061;
  box-shadow: 0 0 0 3px rgba(66, 115, 63, 0.1);
}

.form-buttons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  width: 100%;
}

.form-buttons button {
  flex: 1;
  padding: 12px;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  background-color: #cb1061;
  color: white;
  border: none;
}

.form-buttons button:hover {
  background-color: #8cc63f;
}

.form-buttons .cancel-btn {
  flex: 1;
  padding: 12px;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  background-color: #42733f;
  color: white;
  border: none;
  display: block;
}

.form-buttons .cancel-btn:hover {
  background-color: #8cc63f;
}

/* FORM PAGES LAYOUT */
.new-body,
.edit-body,
.signin-container,
.signup-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 40px 20px;
}

.new-body h1,
.edit-body h1 {
  text-align: center;
  color: #754c24;
  margin: 10px 0 30px 0;
  font-size: 2.5em;
}

/* AUTH BUTTONS */
.signin-container button,
.signup-container button {
  padding: 12px;
  background-color: #cb1061;
  color: white;
  border-radius: 30px;
  border: none;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  width: 50%;
  margin: 20px auto 0 auto;
  display: block;
}

.signin-container button:hover,
.signup-container button:hover {
  background-color: #8cc63f;
}

/* BASKETS LIST */
.baskets-body {
  padding: 20px;
}

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

.baskets-header h1 {
  color: #754c24;
  font-size: 2.5em;
}

.add-basket-link,
.shopping-list-link {
  padding: 12px 25px;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.4em;
}

.add-basket-link {
  background-color: #cb1061;
}

.add-basket-link:hover {
  background-color: #8cc63f;
}

.shopping-list-link {
  background-color: #42733f;
}

.shopping-list-link:hover {
  background-color: #8cc63f;
}

.baskets-container {
  max-width: 1100px;
  margin: 20px auto;
  padding: 30px;
  background-color: white;
  border: 4px solid #42733f;
  border-radius: 20px;
}

.basket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f5f5dc;
  border: 2px solid #cb1061;
  border-radius: 15px;
  padding: 20px;
  margin: 15px 0;
}

.basket-info {
  flex: 1;
}

.basket-info h3 {
  margin: 0 0 10px 0;
  color: #754c24;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3em;
}

.basket-info p {
  margin: 5px 0;
  color: #754c24;
}

.basket-info strong {
  color: #42733f;
}

.basket-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #42733f;
  flex-shrink: 0;
  margin-right: 20px;
}

.basket-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}

.basket-actions form {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  display: inline;
}

.action-btn {
  padding: 10px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9em;
  border: none;
  cursor: pointer;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

.view-btn {
  background-color: #42733f;
  color: white;
}

.view-btn:hover {
  background-color: #8cc63f;
}

.edit-btn {
  background-color: #cb1061;
  color: white;
}

.edit-btn:hover {
  background-color: #8cc63f;
}

.delete-btn {
  background-color: #754c24;
  color: white;
}

.delete-btn:hover {
  background-color: #8cc63f;
}

/* SHOW PAGE */
.show-page {
  padding: 20px;
  min-height: 80vh;
}

.show-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
  border-radius: 20px;
  border: 4px solid #42733f;
}

.show-container h1 {
  text-align: center;
}

.show-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.show-header h1 {
  color: #754c24;
  font-size: 2.5em;
  margin: 0;
}

.show-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}

.show-actions .action-btn {
  padding: 10px 20px;
  white-space: nowrap;
}

.show-actions form {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  display: inline;
}

.basket-status {
  font-size: 1.2em;
  color: #42733f;
  font-weight: 600;
  margin-bottom: 30px;
}

.basket-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f5f5dc;
  border-radius: 15px;
  border-left: 4px solid #cb1061;
}

.detail-item {
  color: #754c24;
  font-size: 1.1em;
}

.detail-item strong {
  color: #42733f;
}

.basket-section {
  margin: 30px 0;
  padding: 20px;
  background-color: #f5f5dc;
  border-radius: 15px;
  border-left: 4px solid #cb1061;
}

.basket-section h3 {
  color: #42733f;
  margin-top: 0;
  margin-bottom: 15px;
}

.basket-section p {
  color: #754c24;
  line-height: 1.6;
  margin: 0;
}

.basket-photo {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid #cb1061;
  display: block;
  margin: 10px auto;
}

.shopping-list {
  list-style: disc;
  padding-left: 25px;
  margin: 10px 0;
}

.shopping-list li {
  color: #754c24;
  line-height: 1.8;
  margin-bottom: 8px;
}

.shopping-list li::marker {
  color: #42733f;
}

.back-link {
  margin-top: 30px;
  text-align: center;
}

.back-link a {
  color: #42733f;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
}

.back-link a:hover {
  color: #cb1061;
}

/* SHOPPING LIST PAGE */
.shopping-list-master {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.shopping-list-master li {
  background-color: #f5f5dc;
  padding: 15px 20px;
  margin: 10px 0;
  border-radius: 10px;
  border-left: 4px solid #cb1061;
  color: #754c24;
  line-height: 1.6;
}

.shopping-list-master strong {
  color: #42733f;
  font-size: 1.1em;
}

.item-info {
  display: block;
  font-size: 0.9em;
  color: #42733f;
  margin-top: 5px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .landing-content {
    flex-direction: column;
    padding: 20px;
  }

  .landing-photo {
    max-width: 60%;
    margin: 0 auto 20px;
  }

  .landing-text h2 {
    font-size: 1.8em;
  }

  .landing-text p {
    font-size: 1.1em;
  }

  .basket-details {
    grid-template-columns: 1fr;
  }

  .show-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .baskets-header {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .baskets-header h1 {
    font-size: 2em;
    text-align: center;
  }

  .add-basket-link,
  .shopping-list-link {
    font-size: 1.1em;
    padding: 10px 20px;
  }
}