/* ======================================================
   Base / Shared Styles – used across ALL pages
====================================================== */

/* Reset & Defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  line-height: 1.6;
  color: #fff;
  background: #000;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

/* Buttons */
button,
.btn-cta,
.btn-auth,
.btn-small {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-cta {
  background: #ff4081;
  color: #fff;
}

.btn-cta:hover {
  background: #d92f6c;
}

.btn-auth,
.btn-small {
  background: #9c27b0;
  color: #fff;
}

.btn-auth:hover,
.btn-small:hover {
  background: #ff4081;
}

.btn-upload {
  margin-top: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  width: 100px; /* Matches avatar width */
}

/* Header */
header {
  display: grid;
  grid-template-columns: 450px 1fr 450px;
  align-items: center;
  padding: 0.5rem 2rem;
  background: rgba(0, 0, 0, 0.7);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .logo img {
  width: 175px;
  height: auto;
  display: block;
}

header nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  transition: max-height 0.4s ease;
}

header nav ul li a {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

.header-buttons {
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Footer */
footer {
  background: #111;
  color: #fff;
  padding: 15px 10px;
  text-align: center;
  border-radius: 8px;
  font-size: 12px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #9c27b0;
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #ff4081;
  transform: scale(1.2);
}

#inlineError {
  color: red;
  font-size: 0.85rem;
  margin-top: 8px;
  display: none;
}

#confirmError {
  transition: opacity 0.3s ease;
  opacity: 0;
  display: block;
  height: 1rem;
  font-size: 0.8rem;
  color: red;
  margin-top: 3px;
}

#confirmError.show {
  opacity: 1;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

input,
textarea {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  min-height: 60vh;
  height: 90vh;
  max-height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
  color: #9c27b0;
  border-radius: 12px;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.hero-slide .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide .slide.active {
  opacity: 1;
  z-index: 1;
}

/* Search Container */
.search-container,
.aboutus-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px auto;
  text-align: center;
}

.search-container .search-box,
.aboutus-container .search-box {
  z-index: 3;
  background: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: inline-block;
  text-align: center;
}

.search-box h2,
.aboutus-container .search-box h2 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ff4081;
}

/* Thumbnails */
.search-thumbnails,
.aboutus-container .search-thumbnails {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.search-thumbnails .search-thumb,
.aboutus-container .search-thumbnails .search-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
  border-radius: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
  width: 300px;
  padding: 10px;
}

.search-thumbnails .search-thumb img,
.aboutus-container .search-thumbnails .search-thumb img {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 12px;
}

.search-thumbnails .search-thumb span,
.aboutus-container .search-thumbnails .search-thumb span {
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
}

.search-thumbnails .search-thumb:hover,
.aboutus-container .search-thumbnails .search-thumb:hover {
  transform: translateY(-5px);
  background: rgba(112, 83, 243, 0.25);
}

/* About Us Container */
.aboutus-container .search-box {
  background: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: inline-block;
  max-width: 800px;
  text-align: left;
  color: #fff;
}

.aboutus-container h2 {
  font-size: 1.5rem;
  color: #ff4081;
  margin-bottom: 10px;
  text-align: center;
}

.aboutus-container h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 20px;
  text-align: center;
}

.aboutus-container p {
  font-size: 1rem;
  margin-bottom: 12px;
  line-height: 1.6;
  color: #ddd;
}

/* Contact Form */
.contact-form .input-group {
  position: relative;
  margin-bottom: 1.2rem;
}

.contact-form .input-group input,
.contact-form .input-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.contact-form .input-group label {
  position: absolute;
  top: -8px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  padding: 0 6px;
  color: #ff4081;
  font-size: 0.9rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn-auth-submit {
  margin-top: 1rem;
  background: #9c27b0;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}

.contact-form .btn-auth-submit:hover {
  background: #ff4081;
}

/* Top Rated Section */
.top-rated-section {
  padding: 2rem;
  text-align: center;
}

.top-rated-section h2 {
  font-size: 1.5rem;
  color: #ff4081;
  margin-bottom: 2rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.profile-card {
  background: rgba(34, 34, 34, 0.85);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.profile-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.profile-card h3 {
  color: #ff4081;
  margin-bottom: 0.5rem;
}

.profile-card p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #fff;
}

.profile-card .btn-small {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.5rem 1rem;
  background: #9c27b0;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.profile-card .btn-small:hover {
  background: #ff4081;
}

.response-section {
  margin-top: 6px;
}

.response-input {
  width: 100%;
  min-height: 50px;
  padding: 6px;
  margin-top: 2px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.save-response-btn {
  margin-top: 4px;
}

.response-status {
  margin-left: 8px;
  font-size: 0.85em;
  color: green;
}

/* ======================================================
   Responsive Fixes
====================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .search-box,
  .aboutus-container .search-box {
    min-width: auto;
    width: 90%;
    box-sizing: border-box;
  }
}

/* Mobile (phones) */
@media (max-width: 768px) {
  header {
    grid-template-columns: 1fr;
    padding: 0.5rem 1rem;
    position: relative;
  }

  header nav ul {
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    transition: max-height 0.4s ease;
  }

  header nav ul.active {
    max-height: 500px;
  }

  header nav ul li {
    margin: 0.5rem 0;
    text-align: center;
  }

  .hamburger {
    display: flex;
    position: absolute;
    top: 18px;
    right: 20px;
  }

  .header-buttons {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.5rem;
    display: flex;
    gap: 5px;
  }

  form {
    gap: 0px;
  }

  .hero {
    height: auto;
    min-height: 300px;
    max-height: unset;
    flex-direction: column;
    padding: 20px 0;
  }

  .search-box,
  .aboutus-container .search-box {
    width: 95%;
    min-width: auto;
    padding: 20px;
    box-sizing: border-box;
    text-align: left;
  }

  .search-box h2,
  .aboutus-container .search-box h2 {
    text-align: center;
    font-size: 1.2rem;
  }

  /* Thumbnails vertical & smaller */
  .search-thumbnails,
  .aboutus-container .search-thumbnails {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .search-thumbnails .search-thumb,
  .aboutus-container .search-thumbnails .search-thumb {
    width: 80%;
    max-width: 250px;
  }

  .search-thumbnails .search-thumb img,
  .aboutus-container .search-thumbnails .search-thumb img {
    max-height: 160px;
    object-fit: cover;
  }

  /* Contact form */
  .contact-form .input-group input,
  .contact-form .input-group textarea {
    font-size: 0.95rem;
  }

  .contact-form .btn-auth-submit {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
  }

  /* Profile grid */
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .profile-card img {
    height: auto;
    max-height: 200px;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  .hero {
    min-height: 250px;
    padding: 15px 0;
  }

  .search-box,
  .aboutus-container .search-box {
    min-width: auto;
    padding: 15px;
    font-size: 0.9rem;
  }

  .aboutus-container p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .contact-form .btn-auth-submit {
    font-size: 0.95rem;
    padding: 10px;
  }

  .search-thumbnails .search-thumb,
  .aboutus-container .search-thumbnails .search-thumb {
    width: 90%;
    max-width: 220px;
  }

  .search-thumbnails .search-thumb img,
  .aboutus-container .search-thumbnails .search-thumb img {
    max-height: 140px;
  }
}
