<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">

/* Base layout */
.banner-image-mobile {
  display: none;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #2E2E2E;
}

/* Top navigation / header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0rem .5rem;
  background-color: #ffffff;
  border-bottom: 1px solid #eaeaea;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  position: relative;
  width: 100%;
}

header img {
  height: 60px;
}

h1 {
  color: #0070E0; /* Or your custom royal blue */
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
}

h2 {
  color: #0070E0; /* Or your custom royal blue */
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
}

h3 {
  color: #0070E0; /* Or your custom royal blue */
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #0070E0;
  font-weight: 500;
  font-size: 16px;
  position: relative;
}

nav a:hover {
  text-decoration: underline;
}

nav .dropdown {
  position: relative;
}

nav .dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #ffffff;
  min-width: 120px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  border-radius: 6px;
  z-index: 1;
}

nav .dropdown-content a {
  display: block;
  padding: 0.75rem 1rem;
  text-align: left;
  color: #0070E0;
  font-size: 14px;
}

nav .dropdown-content a:hover {
  background-color: #f0f2f5;
}

nav .dropdown:hover .dropdown-content {
  display: block;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #0070E0;
}


@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 2rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 9999;
  }

  nav.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 1rem 1rem 1rem 1rem; /* ↓ remove bottom padding */
  }

  .feature-content.reverse {
    flex-direction: column;
  }

  .feature-content {
    flex-direction: column !important; /* override both default and reverse */
    max-width: 90% !important;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
    text-align: center;
    margin: 0 auto 2rem;
  }

  .feature-icon,
  .icon {
    max-width: 75px; /* scale down on mobile */
    margin: 0 auto 1rem; /* center and space below */
  }

  #preview {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .preview-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* or 'cover' depending on preference */
    display: block;
  }

  .preview-image {
    width: 100%;
    aspect-ratio: 2 / 3;
    background-color: #f8f8f8;
    position: relative;
    overflow: visible;      /* allow X to float above */
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 12px;       /* prevent it from overlapping prior image */
  }

  .remove-btn {
    position: absolute;
    top: -12px;
    right: 6px;
    z-index: 2;
    background: white;
    border: 1px solid red;
    border-radius: 50%;
    color: red;
    font-size: 16px;
    width: 24px;
    height: 24px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
  }

  .banner-image-desktop {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .banner-image-mobile {
    display: block !important;
/*    width: 100%;*/
    height: 150px; /* ✅ Sets a real height so there's room to show the image */
    background-image: url('/static/login-hero.jpg');
    background-size: cover;    /* ✅ Fills the whole banner nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }
}

.ebay-auth-box {
/*  background-color: #e6f0fb;*/
  color: #2E2E2E;
  padding: 0.25rem 1rem;
  border-radius: 12px;
/*  box-shadow: 0 4px 12px rgba(0, 112, 224, 0.3);*/
  width: 100%;
  max-width: 300px;               /* ✅ Keep your intended width cap */
  margin: 1rem auto;
  text-align: center;
  backdrop-filter: blur(4px); 
  box-sizing: border-box;         /* ✅ Prevents padding from causing overflow */
  overflow-wrap: break-word;      /* ✅ Ensures long text doesn’t overflow */
}

.ebay-auth-box h2 {
  flex-basis: 100%;
  margin: 0 0 0.25rem;
  color: #0070E0;
}
.ebay-auth-box p {
  margin-bottom: 0.25rem; /* or 0 for no space */
}

.auth-box {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 400px;
  margin: 3rem auto;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.75); /* slight transparency */
  backdrop-filter: blur(4px); /* optional: soft blur */
}

.auth-form input,
#reset-request input,
#reset-form input {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border: 1px solid #D0D7DE;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.auth-button,
.connect-button,
#reset-request button,
#reset-form button {
  width: 100%;
  padding: 12px 20px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background-color: #0070E0;
  color: #ffffff;
  transition: background-color 0.2s ease;
  margin: 10px 0;
}

.connect-button {
  background-color: #FFB347;
  color: #2E2E2E;
  font-weight: 600;
}

.connect-button:hover {
  background-color: #d88a1d;
  color: #000;
}

.ebay-button {
  width: auto;
  max-width: 240px;
}

.auth-button:hover,
#reset-request button:hover,
#reset-form button:hover {
  background-color: #005bb5;
}

.hidden {
  display: none !important;
}

.google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* <-- change this line */
  gap: 10px;
  padding: 10px 14px;
  background: white;
  border: 1px solid #ddd;
  color: #333;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.google:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  color: white;
}

.google-logo {
  height: 20px;
  width: 20px;
  margin-right: 8px;
}

.auth-hint {
  font-size: 13px;
  margin-top: 1rem;
  color: #777;
}

.msg {
  color: green;
  font-size: 14px;
}

.err {
  color: red;
  font-size: 14px;
}

.container {
  width: 90%;
  /*max-width: 1200px;*/
  padding: 2rem;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.75); /* slight transparency */
}

.app-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
/*  gap: 2rem;*/
  overflow-x: auto;
  width: 100%;
}

.app-panel {
  flex: 1;
  max-width: 1200px;
}

.submission-panel {
  flex: 1;
  min-width: 300px;
  max-width: 100%;            /* ✅ prevent overflow */
  padding: 0 1rem;            /* ✅ even horizontal padding */
  box-sizing: border-box;     /* ✅ makes padding play nicely */
}

body.login-bg {
  background: url('/static/login-hero.jpg') no-repeat center center fixed;
  background-size: cover;
  height: 70%;
}

button {
  font-family: 'Inter', sans-serif;
}

/*CSS FOR PREFERENCES BOX ON MAIN PAGE*/
.preferences-box {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  background-color: #e6f0fb;
  color: #2E2E2E;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 112, 224, 0.3);
  padding: 0.75rem;
  margin: 1rem auto;
  font-size: 13px;
  max-width: 1200px;
  width: 100%;
  color: white;
  box-sizing: border-box;
  flex-direction: row;
  justify-content: space-between;
}

.preferences-box h2 {
  flex-basis: 100%;
  margin: 0 0 0.25rem;
  color: #0070E0;
}

.pref-column, .description-column {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 200px;
}

.description-column textarea {
  min-height: 100px;
  resize: vertical;
  padding: 0.2rem;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid #D0D7DE;
  box-sizing: border-box;
}

.preferences-box select,
.preferences-box input,
.preferences-box textarea {
  padding: 2px;
  border: 1px solid #D0D7DE;
  border-radius: 8px;
  font-size: 12px;
  box-sizing: border-box;
  color: black;
  width: 80%; /* or try 60% if you want even tighter */
}

.preferences-box textarea {
  width: 100%;
  height: 100%;
}
.preferences-box label {
  font-weight: 700;
  color: #2E2E2E;
  margin-bottom: 1px;
}

.preferences-buttons {
  flex-basis: 100%;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.preferences-buttons button {
  padding: 6px 14px;
  background-color: #0070E0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  font-weight: bold;
  color: white;
}

.preferences-buttons button:hover {
  background-color: #d88a1d;
  transform: translateY(-1px);
}

.preferences-box select,
.preferences-box input,
.preferences-box textarea {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 14px;
  color: #333;
  transition: border 0.2s, box-shadow 0.2s;
  background-color: white;
}

.preferences-box select:focus,
.preferences-box input:focus,
.preferences-box textarea:focus {
  border-color: #0070E0;
  box-shadow: 0 0 0 3px rgba(0, 112, 224, 0.2);
  outline: none;
}

.mandatory-warning {
  color: red;
  font-size: 12px;
  margin-left: 8px;
  font-weight: bold;
}

.hidden {
  display: none;
}

/*END PREFERENCE BOX CSS*/

/*STYLE IMAGE UPLOAD BUTTON*/
.upload-btn {
  padding: 6px 14px;
  background-color: #0070E0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  color: white;
  transition: background-color 0.2s ease, transform 0.15s ease;
  display: inline-block;
}

.upload-btn:hover {
  background-color: #d88a1d;
  transform: translateY(-1px);
}

/* Hide the actual input */
#imageInput {
  display: none;
}

#preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1rem 0;
}

.preview-image:nth-of-type(2n) {
  margin-right: 26px; /* gap after each pair */
}

.preview-image {
  position: relative;
  width: 100px;
  height: 140px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #f8f8f8;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preview-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.remove-btn {
  position: absolute;
  top: -12px;
  right: 6px;
  background: none;
  color: red;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

pre {
  background-color: #f0f2f5;
  padding: 1em;
  border-radius: 8px;
  overflow: auto;
  font-family: inherit;
}

.spinner {
  display: inline-block;
  font-size: 14px;
  font-style: italic;
  color: #0070E0;
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

footer {
  text-align: center;
  font-size: 13px;
  color: #888;
  padding: 2rem 0;
  border-top: 1px solid #eaeaea;
  margin-top: 0rem;
  background-color: white;
  position: relative;
  z-index: 2;
}

footer a {
  color: #0070E0;
  text-decoration: none;
  margin: 0 1rem;
}

footer a:hover {
  text-decoration: underline;
}

#result-output {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 14px;
  color: #333;
  margin-top: 1rem;
}

.cancel-btn {
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  min-width: 100px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin: 0.5rem;
  background-color: #e74c3c; /* red for cancel by default */
  color: #fff;
}

.clear-btn {
  background-color: #f0f0f0;
  color: #333;
}

.cancel-btn {
  background-color: #c0392b;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

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

/*specific to the features page*/
.feature-section {
  width: 100%;
  padding: 1rem 1rem;
  /*max-width: 980px;*/
}

.section-container {
  /*max-width: 980px;*/
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* 🔥 Add this */
  width: 100%;      /* 🔥 Add this */
}

.feature-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-direction: row;
  line-height: 1.5;
  max-width: 65%;
  font-size: 1.2rem;
}

.feature-content.reverse {
  flex-direction: row-reverse;
}

.feature-icon {
  max-width: 150px;
  height: auto;
  flex-shrink: 0;
}

.feature-content > img.feature-icon {
  flex-shrink: 0;
  flex: 0 0 100px;
}

.feature-content > div {
  flex: 1;
}

.bg-light {
  background-color: #f9f9f9;
}

.bg-white {
  background-color: #ffffff;
}

.icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: .1rem;
}

/*for hero banner section*/
.hero {
  /*background-image: url('/static/login-hero.jpg'); */
  background-size: cover;
  background-position: center;
  padding: 2rem 1rem 3rem 1rem; /* top, right, bottom, left */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: white;
}

.hero-content {
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: black;
}

.hero-button {
  background-color: #007bff;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.hero-button:hover {
  background-color: #0056b3;
}

.hero-button-group {
  display: flex;
  gap: 1rem;
  justify-content: center; /* or flex-start / flex-end as needed */
  flex-wrap: wrap; /* ensures responsiveness */
  margin-top: 1.5rem;
}

/* Default: hide mobile banner, show desktop */
.banner-image-desktop {
  width: 100%;
  height: 35vh;
  background-image: url('/static/login-hero.jpg');
  background-attachment: fixed;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}

.hero-inverse {
  background-color: #000000; /* black background */
  color: white;
  padding: 1rem 1rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-inverse .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-inverse .hero-content p {
  color: white;
  font-size: 1.2rem;
  margin: 0;
}

.hero-inverse .hero-button.inverse {
  background-color: #FFB347;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.hero-inverse .hero-button.inverse:hover {
  background-color: #d88a1d;
}

.hero-inverse-thin {
  background-color: #000000; /* black background */
  color: white;
  padding: 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-blue {
  background-color: #000000; /* black background */
  color: white;
  padding: 1rem 1rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*all text class*/
.text {
  max-width: 980px;
  padding: .5rem;
  font-size: 18px;
  margin: 0 auto; /* ✅ centers it horizontally */
  font-family: 'Inter', sans-serif;
}

.text p{
  line-height: 1.5;
  font-size: 18px;
}

/*For FAQ on How it works page*/
.faq {
  max-width: 980px;
  margin: 2rem auto;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
  cursor: pointer;
}

.faq-question {
  font-weight: 600;
  font-size: 16px;
  color: #0070E0;
  display: flex;
  justify-content: space-between;
  align-items: left;
}

.faq-answer {
  margin-top: 0.5rem;
  font-size: 14px;
  color: #444;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-icon {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg); /* changes + to x */
}

/*For pricing table on pricing page*/
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 2rem;
}

.plan {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  background: white;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.plan:hover {
  transform: translateY(-5px);
}

.plan .tag {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: #4f46e5;
  color: white;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 999px;
}

.plan h3 {
  margin-bottom: 0.5rem;
}

.plan .price {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0.75rem 0;
}

.plan .price span {
  font-size: 1rem;
  color: #666;
}

.plan button {
  background: #0070f3;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
}

.plan button:hover {
  background: #0059c1;
}

/*SECTION FOR CUSTOM MODAL FOR PROMPTS*/
/* Modal background */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

.modal.hidden {
  display: none;
}

/* Modal card */
.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  width: 320px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Message text */
#modal-message {
  font-size: 16px;
  color: #2E2E2E;
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Input field */
#modal-input {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #D0D7DE;
  border-radius: 8px;
  box-sizing: border-box;
  margin-bottom: 1.5rem;
}

/* Buttons wrapper */
.modal-buttons {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
}

/* Shared modal buttons */
.modal-buttons button {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  border: none;
}

/* Submit = Primary (Blue) */
.modal-buttons button:first-child {
  background-color: #0070E0;
  color: white;
}

.modal-buttons button:first-child:hover {
  background-color: #005bb5;
  transform: translateY(-1px);
}

/* Cancel = Neutral (light gray) */
.modal-buttons button:last-child {
  background-color: #f0f0f0;
  color: #2E2E2E;
}

.modal-buttons button:last-child:hover {
  background-color: #e0e0e0;
}

/*for iphone videos*/
.video-wrapper {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}
