/* style.css */

/* Body */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: #000; /* dark header */
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* left = logo+text, right = nav */
  z-index: 1000;
  gap: 20px;
}

/* Logo + Text together */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none; /* removes underline */
  gap: 10px; /* space between logo and text */
}

.site-icon {
  max-height: 60px;
  width: auto;
}

.logo-text {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: Arial, sans-serif;
}

/* Nav Links */
nav a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
  font-weight: bold;
}

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

/* Logo link states - keep text white and remove underline */
.site-logo,
.site-logo:link,
.site-logo:visited,
.site-logo:hover,
.site-logo:active {
  color: white;           /* always white */
  text-decoration: none;  /* no underline */
}

/* Hero Banner */
.hero {
  background: linear-gradient(to right, #8fff00, #FF66CC);
  color: black;
  padding: 80px 20px;
  text-align: center;
}

.hero h2 {
  font-size: 40px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 25px;
}

.hero a {
  padding: 14px 24px;
  background: black;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.hero a:hover {
  background: #222;
}

/* Browse Section */
.browse-section {
  padding: 40px 20px;
  text-align: center;
}

.browse-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.browse-buttons a {
  padding: 14px 22px;
  border: 1px solid #111;
  border-radius: 6px;
  background: white;
  text-decoration: none;
  color: black;
  transition: 0.2s;
}

.browse-buttons a:hover {
  background: #111;
  color: #8fff00;
  border-color: #8fff00;
}

/* Placeholder */
.placeholder {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px;
  background: white;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Footer */
footer {
  background: #111;
  color: #ccc;
  padding: 30px 20px;
  margin-top: 50px;
  text-align: center;
}

footer a {
  color: #8fff00; /* lime green */
  text-decoration: none;
}

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

/* Contact Banner */
.contact-banner {
  background: linear-gradient(to right, #8fff00, #FF66CC);
  color: black;
  padding: 80px 20px;
  text-align: center;
  border-radius: 0;
}

/* Email Section */
.email-section {
  margin-top: 40px;
  background: #111;
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.email-section h3 {
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.email-section .email-link {
  color: #8fff00;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
}

.email-section .email-link:hover {
  color: #FF66CC;
}

/* Guide Cards Grid */

#guides-grid,
#related-guides-grid,
#featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 40px 0;
  justify-content: center;
}

.guide-card {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 400px; /* keep the height you like */
  width: 100%;   /* fill the grid column */
  box-sizing: border-box; /* ensures padding/border doesn't break the grid */
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.card-content {
  background: white;
  border-radius: 8px;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card-content p {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  color: white;
}

.badge.asset { background-color: #8fff00; color: black; }
.badge.manufacturer { background-color: #FF66CC; }
.badge.model { background-color: #333; }

.date {
  font-size: 0.8rem;
  color: #666;
  margin-top: auto;
}

/* Vendors grid */
#vendors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 20px 0;
}

/* Vendor card styling */
.vendor-card {
  width: 100%;
  max-width: 450px;   /* Business card-ish width */
  box-sizing: border-box;
  display: block;      /* natural block layout */
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.vendor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Card content smaller text and top alignment */
.vendor-card .card-content {
  background: white;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;  /* pull content to top */
  height: 100%;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  font-size: 14px;
  line-height: 1.4;
}

/* Vendor name badge */
.vendor-card h3 {
  display: inline-block;
  background-color: #111;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 16px;
  white-space: nowrap;   /* Keep vendor name on one line */
}

/* Vendor card paragraphs & links */
.vendor-card p {
  margin: 4px 0;
  line-height: 1.4;
  font-size: 14px;
  word-wrap: break-word;
  overflow-wrap: anywhere; /* ensures long URLs or notes break properly */
}

.vendor-card a {
  display: inline-block;  /* keeps links readable but not full width */
  font-size: 14px;
  color: #111;
  text-decoration: underline;
}

.content-box {
  background: #f9f9f9;       /* light neutral background, easy to read */
  color: #111;
  padding: 40px;
  border-radius: 12px;
  margin: 30px auto;
  max-width: 900px;
  box-sizing: border-box;

  /* New visual pop */
  border: 2px solid #ddd;     /* subtle border */
  box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* soft shadow for depth */
  transition: transform 0.2s, box-shadow 0.2s;
}

.content-box:hover {
  transform: translateY(-3px);   /* subtle lift on hover */
  box-shadow: 0 8px 16px rgba(0,0,0,0.1); 
}

.content-box h3 {
  margin-top: 0;
}

.content-box a {
  color: #111;
  text-decoration: underline;
  font-size: 1.2rem;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.email-box {
  display: inline-block;
  background: #111;
  color: #8fff00;
  padding: 20px 30px;
  border-radius: 12px;
  margin: 20px auto 0;
  text-align: center;
}

.email-box a {
  color: #8fff00;
  font-size: 1.2rem;
  text-decoration: none;
}

.email-box {
  margin: 20px auto 0;
}

.letter-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.filter-letter {
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  background: #eee;
  color: #111;
  font-weight: 500;
  transition: all 0.2s;
}

.filter-letter:hover,
.filter-letter.active {
  background: #111;
  color: #ff66cc;
}

/* Center text inside guide cards */
.guide-card .card-content {
  text-align: center;
}

/* Optional: center badges */
.guide-card .badges {
  justify-content: center; /* center badges horizontally */
}

#total-guides {
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
  margin-top: 25px;  /* increases space from grid/buttons */
  color: #111;
}

/* ===========================================
   Flashcard Quiz Container
   =========================================== */
#bmet-quiz {
  width: 100%;
  max-width: 500px;
  min-height: 500px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(90deg, #ff66cc 0%, #8fff00 100%);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;        /* ← was space-between, now centers vertically */
  align-items: center;            /* ← added: centers children horizontally too */
  gap: 10px;
  box-sizing: border-box;
  color: #111;
}

/* ===========================================
   Question Styling
   =========================================== */
#question {
  font-weight: 900;
  font-size: 1rem;
  text-align: center;
  margin: 0px auto;
  min-height: 50px;
  word-wrap: break-word;
  width: 100%;                    /* ← added: keeps question full width */
}

/* ===========================================
   Answer Buttons
   =========================================== */
#options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  width: 100%;                    /* ← added: so buttons have something to be % of */
}

#options button {
  display: block;
  width: 60%;
  padding: 0px;
  border-radius: 8px;
  border: 2px solid #111;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-size: .8rem;
  white-space: normal;
  box-sizing: border-box;
}

/* Hover effect */
#options button:hover {
  background: rgba(255, 255, 255, 1);
  border-color: #111;
  color: #000;
}

/* ===========================================
   Feedback Text
   =========================================== */
#feedback {
  font-weight: bold;
  text-align: center;
  font-size: 1rem;
  min-height: 40px;
  line-height: 1.2;
  word-wrap: break-word;
  width: 100%;
  display: flex;                /* ← added */
  align-items: center;          /* ← vertical center */
  justify-content: center;      /* ← horizontal center */
}

.correct {
  background: rgba(0, 0, 0, 0.65);
  color: #00ff88;
  border-radius: 8px;
  padding: 6px 14px;
}

.wrong {
  background: rgba(0, 0, 0, 0.65);
  color: #ff4444;
  border-radius: 8px;
  padding: 6px 14px;
}

/* Remove outlines and enforce text color */
#bmet-quiz * {
  outline: none !important;
  text-shadow: none !important;
}

/* Center the search section and input */
.search-section {
  text-align: center;       /* centers inline-block children */
  margin-top: 20px;         /* space from hero */
}

/* Style and center the input */
#search-bar {
  width: 100%;
  max-width: 500px;         /* limits width on large screens */
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  display: inline-block;    /* allows text-align: center on parent to work */
  box-sizing: border-box;
}

/* Center "no results" message */
#no-results {
  margin-top: 40px;
  color: #666;
  text-align: center;
}

/* ============================================
   Guide Feedback Widget
   ============================================ */

.guide-feedback {
  text-align: center;
}

.guide-feedback h3 {
  margin-top: 0;
}

.thumb-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
}

.thumb-btn {
  font-size: 2rem;
  background: none;
  border: 2px solid #ccc;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  cursor: pointer;
  transition: 0.2s;
}

.thumb-btn.yes:hover {
  border-color: #8fff00;
}

.thumb-btn.no:hover {
  border-color: #FF66CC;
}

.feedback-form {
  display: none;
  margin-top: 15px;
}

.feedback-iframe {
  width: 100%;
  border: none;
  border-radius: 8px;
}

.feedback-thanks {
  display: none;
  font-weight: bold;
  margin-top: 10px;
}

.suggest-cta {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.suggest-cta p {
  margin-bottom: 10px;
  color: #555;
}

.suggest-cta a {
  display: inline-block;
  padding: 10px 22px;
  background: #111;
  color: #8fff00;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.2s;
}

.suggest-cta a:hover {
  background: #8fff00;
  color: #111;
}

.guide-feedback {
  max-width: 400px; /* controls the box width */
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  font-family: Arial, sans-serif;
}

.guide-feedback h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.guide-feedback .thumb-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.guide-feedback .thumb-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #ccc;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  transition: 0.2s;
}

.guide-feedback .thumb-btn.yes {
  border-color: #8fff00;
}

.guide-feedback .thumb-btn.yes:hover {
  background: #e0ffe0;
}

.guide-feedback .thumb-btn.no {
  border-color: #FF66CC;
}

.guide-feedback .thumb-btn.no:hover {
  background: #ffe0f0;
}

.guide-feedback .suggest-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.guide-feedback .suggest-cta p {
  margin: 0 0 8px;
  color: #555;
  font-size: 0.95rem;
}

.guide-feedback .suggest-cta a {
  padding: 14px 22px;
  border: 1px solid #ccc;       /* matches index button border */
  border-radius: 6px;
  background: black;            /* default background */
  color: #fff;                  /* default text color */
  font-weight: bold;
  text-decoration: none;
  transition: 0.2s;
}

.guide-feedback .suggest-cta a:hover {
  background: #111;             /* hover background */
  color: #8fff00;               /* hover text color */
  border-color: #8fff00;        /* optional: hover border like index */
}

/* Hero Buttons unified style (does NOT touch browse buttons) */
.hero-button {
  display: inline-block;
  padding: 14px 22px;
  border: 1px solid #ccc;   /* default border */
  border-radius: 6px;
  background: black;        /* default background */
  color: #fff;              /* default text color */
  font-weight: bold;
  text-decoration: none;
  transition: 0.2s;
}

.hero-button:hover {
  background: #111;         /* hover background */
  color: #8fff00;           /* hover text color */
  border-color: #8fff00;    /* hover border like index buttons */
}

/* Make the search input match hero buttons */

 #home-search-form {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
  }

  #home-search-input {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 300px;
    min-width: 200px;
    box-sizing: border-box;
    background: white;
    color: #111;
  }

  #home-search-form button {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: black;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
  }

  #home-search-form button:hover {
    background: #111;
    color: #8fff00;
    border-color: #8fff00;
  }

#home-search-form button {
  border: 1px solid #ccc;
}

.hub-banner {
  max-width: 1100px;
  margin: 0 auto 24px;
  padding: 0 20px;
}

.hub-banner-card {
  background: #111; /* black card background */
  border-radius: 10px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.hub-banner-card .hub-info { 
  flex: 1; 
  min-width: 200px; 
}

.hub-banner-card h3 {
  margin: 0 0 6px;
  color: white; /* keep text readable on black */
  font-size: 1.15rem;
}

.hub-banner-card p {
  margin: 0 0 10px;
  color: #aaa; /* lighter gray for description text */
  font-size: 0.88rem;
  line-height: 1.5;
}

.hub-banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.hub-banner-meta span {
  background: #222; /* dark badges */
  border: 1px solid #333;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.78rem;
  color: #8fff00; /* bright accent color */
  font-weight: bold;
}

.hub-banner-btn {
  display: inline-block;
  padding: 11px 22px;
  background: #8fff00; /* bright button */
  color: #111;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: 0.2s;
  flex-shrink: 0;
}

.hub-banner-btn:hover {
  background: #FF66CC;
  color: white;
}

/* ===== Asset Icons System ===== */

/* HERO ICON (big, centered) */
.asset-hero-icon {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.asset-hero-icon img {
  width: 120px;
  height: 120px;

  border-radius: 14px;
  border: 3px solid #111;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);

  padding: 8px;
  background: #fff;

  transition: transform 0.2s ease;
}

.asset-hero-icon img:hover {
  transform: scale(1.05);
}


/* INLINE TITLE ICON (if used later) */
.hub-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hub-title img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}


/* PROFILE HEADER ICON (currently unused but ready) */
.hub-profile-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hub-profile-title img {
  width: 40px;
  height: 40px;

  object-fit: contain;
  flex-shrink: 0;

  border-radius: 10px;
  border: 2px solid #111;
  padding: 4px;
  background: #fff;
}

/* Asset buttons with icons */
.asset-button-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.asset-button-icon {
  width: 48px;
  height: 48px;

  object-fit: contain;

  border-radius: 10px;
  border: 2px solid #111;
  padding: 5px;
  background: #fff;

  transition: transform 0.2s ease;
}

.asset-button-icon:hover {
  transform: scale(1.05);
}

/* Banner title with icon */
.hub-banner-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.hub-banner-title h3 {
  margin: 0;
  color: white;
  font-size: 1.15rem;
}

/* Icon */
.hub-banner-title img {
  width: 32px;
  height: 32px;

  object-fit: contain;

  border-radius: 8px;
  border: 2px solid #111;
  padding: 3px;
  background: #fff;
}
