/* style.css */

.coupon-code-container {
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.coupon-code {
  background-color: #eafaf1;
  border: 2px dashed #1abc9c;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1em;
  user-select: all; /* easier to select */
}

.copy-btn {
  background-color: #1abc9c;
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.copy-btn:hover {
  background-color: #16a085;
}


header {
  background-color: #1abc9c;
  padding: 15px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

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

.logo {
  font-size: 1.8em;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

nav .nav-link {
  color: white;
  text-decoration: none;
  margin-left: 25px;
  font-weight: 600;
  font-size: 1em;
  transition: color 0.3s ease;
}

nav .nav-link:hover {
  color: #16a085;
}


body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9fafb;
  color: #333;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
}

h1 {
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5em;
}

#deals-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.deal {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  padding-bottom: 60px; /* Make room for the report button */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
}

.deal:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.deal h3 {
  margin-top: 0;
  font-size: 1.25em;
  color: #1abc9c;
}

.deal p {
  font-size: 1em;
  line-height: 1.4;
  color: #555;
}

.report-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: white;
  color: #e74c3c;
  border: 1px solid #e74c3c;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85em;
  font-weight: 600;
  transition: all 0.3s ease;
}

.report-btn:hover {
  background-color: #e74c3c;
  color: white;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  header {
    padding: 12px 15px;
  }

  .logo {
    font-size: 1.5em;
  }

  #deals-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .deal {
    padding: 15px;
    padding-bottom: 55px;
  }

  .deal h3 {
    font-size: 1.1em;
  }

  .deal p {
    font-size: 0.95em;
  }

  .coupon-code-container {
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
  }

  .coupon-code {
    width: 100%;
    text-align: center;
    padding: 10px 15px;
    font-size: 1em;
    box-sizing: border-box;
  }

  .copy-btn {
    width: 100%;
    padding: 10px 15px;
    font-size: 0.95em;
  }

  .report-btn {
    font-size: 0.75em;
    padding: 5px 10px;
    bottom: 8px;
    right: 8px;
  }

  /* Make modal more mobile-friendly */
  #report-modal > div {
    width: 95% !important;
    padding: 20px !important;
    margin: 10px;
  }

  #report-modal h2 {
    font-size: 1.3em;
  }

  #report-modal textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

footer {
  margin-top: auto;
  padding: 20px;
  text-align: center;
  background-color: #f9fafb;
  color: #666;
  font-size: 0.9em;
}

footer p {
  margin: 0;
}
