/* styles.css */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.main {
  min-height: 100vh;
  background: #050608;
  color: #f9fafb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero {
  padding: 5rem 1.5rem 4rem;
  background: radial-gradient(circle at top, #fbbf24 0, #030712 55%);
}

.heroContent {
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.heroTitle {
  font-size: 2.8rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.heroSubtitle {
  font-size: 1.1rem;
  max-width: 640px;
  color: #e5e7eb;
  margin-bottom: 2rem;
}

.heroButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.primaryButton {
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  background: #fbbf24;
  color: #111827;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primaryButton:hover {
  background: #facc15;
}

.secondaryButton {
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 1px solid #9ca3af;
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.secondaryButton:hover {
  border-color: #fbbf24;
  color: #fefce8;
}

.trustBar {
  font-size: 0.95rem;
  color: #e5e7eb;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.section {
  padding: 3.5rem 1.5rem;
  border-top: 1px solid #111827;
}

.sectionContent {
  max-width: 960px;
  margin: 0 auto;
}

.sectionTitle {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.sectionText {
  font-size: 1rem;
  line-height: 1.7;
  color: #d1d5db;
  max-width: 720px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.card {
  background: #020617;
  border-radius: 1rem;
  border: 1px solid #1f2937;
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: #d1d5db;
  line-height: 1.6;
}

/* Artisans cards */

.artisan-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.avatarPlaceholder {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.tag {
  font-size: 0.85rem;
  color: #fbbf24;
}

.meta {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Testimonial */

.testimonial {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #1f2937;
  background: #020617;
}

.testimonialAuthor {
  margin-top: 0.75rem;
  font-weight: 500;
  color: #fbbf24;
}

/* Form */

.form {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formRow {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.input,
.textarea {
  flex: 1;
  min-width: 220px;
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #374151;
  background: #020617;
  color: #f9fafb;
  font-size: 0.95rem;
}

.input::placeholder,
.textarea::placeholder {
  color: #6b7280;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: #fbbf24;
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.formMessage {
  font-size: 0.9rem;
  color: #fbbf24;
}

/* Footer */

.footer {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid #111827;
  background: #020617;
}

.footerContent {
  max-width: 960px;
  margin: 0 auto;
}

.footerNav {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.footerNav a {
  color: #9ca3af;
  text-decoration: none;
}

.footerNav a:hover {
  color: #fbbf24;
}

/* Floating WhatsApp button */

.floating-whatsapp {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  z-index: 40;
}

.floating-whatsapp:hover {
  transform: translateY(-1px);
}

.wa-icon {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f9fafb;
}

/* Chatbot */

.chatbot-toggle {
  position: fixed;
  right: 1.2rem;
  bottom: 5.4rem;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: none;
  background: #fbbf24;
  color: #111827;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  z-index: 40;
}

.chatbot-toggle:hover {
  background: #facc15;
}

.chatbot-widget {
  position: fixed;
  right: 1.2rem;
  bottom: 6.5rem;
  width: 320px;
  max-width: 92vw;
  border-radius: 1rem;
  background: #020617;
  border: 1px solid #1f2937;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 50;
}

.chatbot-header {
  padding: 0.8rem 1rem;
  background: #111827;
  color: #f9fafb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.chatbot-close {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 1.1rem;
  cursor: pointer;
}

.chatbot-close:hover {
  color: #fbbf24;
}

.chatbot-body {
  padding: 0.9rem 1rem;
  max-height: 260px;
  overflow-y: auto;
}

.chatbot-message {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.chatbot-message.bot {
  color: #e5e7eb;
}

.chatbot-message.hint {
  color: #9ca3af;
  font-size: 0.8rem;
}

.chatbot-input-row {
  padding: 0.7rem 0.8rem;
  border-top: 1px solid #1f2937;
  display: flex;
  gap: 0.5rem;
}

.chatbot-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #374151;
  background: #020617;
  color: #f9fafb;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

.chatbot-input::placeholder {
  color: #6b7280;
}

.chatbot-input:focus {
  outline: none;
  border-color: #fbbf24;
}

.chatbot-send {
  border-radius: 999px;
  border: none;
  padding: 0.5rem 0.9rem;
  background: #fbbf24;
  color: #111827;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.chatbot-send:hover {
  background: #facc15;
}

/* Responsive */
@media (max-width: 640px) {
  .artisan-auth-main {
    margin-top: 10%;
  }

  .heroTitle {
    font-size: 2.2rem;
  }

  .heroSubtitle {
    font-size: 1rem;
  }

  .chatbot-widget {
    right: 0.7rem;
    bottom: 6rem;
  }

  .chatbot-toggle,
  .floating-whatsapp {
    right: 0.7rem;
  }
}

/* NAVIGATION BAR */
.navbar {
  width: 100%;
  background: #020617;
  border-bottom: 1px solid #111827;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fbbf24;
  color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: #f9fafb;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.2s;
}

.nav-links a:hover {
  color: #fbbf24;
}

.nav-cta {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #fbbf24;
  color: #fbbf24 !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: #fbbf24;
  color: #111827 !important;
}

/* MOBILE NAV */
.nav-toggle {
  display: none;
  font-size: 1.6rem;
  color: #fbbf24;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 820px) {

  .nav-links {
    position: fixed;
    top: 64px;
    right: -100%;
    width: 60%;
    height: 100vh;
    background: #030712;
    flex-direction: column;
    padding-top: 2rem;
    gap: 1.2rem;
    transition: 0.3s;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-toggle {
    display: block;
  }
}


/* ARTISANS SIGN-UP PAGE */
.artisan-auth-main {
  padding: 10%;
}

/* ARTISANS PAGE */

.artisan-hero {
  text-align: center;
  padding: 4rem 1.5rem;
  background: #111827;
}

.artisan-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 0.8rem;
}

.artisan-hero p {
  font-size: 1rem;
  color: #d1d5db;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.search-input,
.search-filter {
  padding: 0.8rem 1rem;
  border-radius: 0.7rem;
  border: 1px solid #374151;
  background: #020617;
  color: #fff;
}

.artisan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.artisan-profile {
  background: #020617;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #1f2937;
  text-align: center;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #fbbf24;
  color: #111;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
}

.skill {
  color: #fbbf24;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.location,
.jobs {
  color: #9ca3af;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.contact-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.contact-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: #374151;
  color: #fff;
  font-size: 0.8rem;
  text-decoration: none;
}

.contact-btn.whatsapp {
  background: #22c55e;
  color: #111;
}

.pagination {
  margin-top: 2rem;
  text-align: center;
}

.page-btn {
  padding: 0.5rem 0.9rem;
  margin: 0 0.2rem;
  border-radius: 6px;
  border: 1px solid #374151;
  background: #111827;
  color: #fff;
}

.page-btn.active,
.page-btn:hover {
  background: #fbbf24;
  color: #111;
}

/* SCROLLING ARTISANS DIRECTORY */

.artisan-scroll-container {
  max-height: 65vh;
  margin-top: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #1f2937;
  padding: 1rem;
  background: #020617;
  overflow-y: auto;
}

/* keep existing .artisan-grid and .artisan-profile styles; they still apply */

.artisan-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.artisan-scroll-container::-webkit-scrollbar-track {
  background: #020617;
}

.artisan-scroll-container::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 999px;

  /* AUTH PAGES (ARTISAN SIGNUP) */



  .auth-main {
    padding-top: 80px;
    padding: 50px;
    margin: 50px
  }

  .auth-hero {
    text-align: center;
    padding: 3.5rem 1.5rem 2.5rem;
    background: #111827;
    margin-left: 80px;
  }

  .auth-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
  }

  .auth-hero p {
    font-size: 1rem;
    color: #d1d5db;
    max-width: 640px;
    margin: 0 auto;
  }

  .auth-section {
    padding: 3rem 1.5rem 4rem;
    margin: 10% auto 0;
  }

  .auth-card {
    max-width: 820px;
    margin: 0 auto;
    background: #020617;
    border-radius: 1.25rem;
    border: 1px solid #1f2937;
    padding: 2rem 1.75rem 2.25rem;
  }

  .auth-card h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }

  .auth-subtitle {
    font-size: 0.95rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
  }

  .auth-form .formRow {
    margin-bottom: 0.5rem;
  }

  .auth-checkbox-row {
    display: flex;
    margin-top: 0.6rem;
  }

  .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #d1d5db;
  }

  .checkbox-label input {
    margin-top: 0.12rem;
  }

  .auth-submit {
    margin-top: 1.2rem;
    width: 100%;
    justify-content: center;
  }

  .auth-hint {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 1.2rem;
  }

  .auth-hint a {
    color: #fbbf24;
    text-decoration: none;
  }

  .auth-hint a:hover {
    text-decoration: underline;
  }

  @media (max-width: 640px) {
    .auth-card {
      padding: 1.6rem 1.2rem 2rem;
    }

    .auth-hero h1 {
      font-size: 2rem;
    }
  }

  /* SOCIAL MEDIA SECTION */

  .social-section {
    text-align: center;
  }

  .social-icons-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .social-icon {
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: 0.2s;
  }

  .social-icon.fb {
    background: #1877f2;
  }

  .social-icon.ig {
    background: #e1306c;
  }

  .social-icon.tw {
    background: #000;
  }

  .social-icon.tk {
    background: #010101;
  }

  .social-icon.yt {
    background: #ff0000;
  }

  .social-icon.li {
    background: #0a66c2;
  }

  .social-icon:hover {
    opacity: 0.8;
  }

  /* FOOTER SOCIAL ICONS */

  .footer-social {
    margin-top: 1.2rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
  }

  .footer-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: #374151;
    text-decoration: none;
    transition: 0.2s;
  }

  .footer-social-icon:hover {
    background: #fbbf24;
    color: #111;
  }

  .footer-social-icon.fb {
    background: #1877f2;
  }

  .footer-social-icon.ig {
    background: #e1306c;
  }

  .footer-social-icon.tw {
    background: #000;
  }

  .footer-social-icon.tk {
    background: #010101;
  }

  .footer-social-icon.yt {
    background: #ff0000;
  }

  .footer-social-icon.li {
    background: #0a66c2;
  }

}