/* assets/css/components.css */

/* =======================
   Header
   ======================= */
.main-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background: var(--black);
  color: var(--white);
  font-size: var(--fs-xs);
  padding: 8px 0;
}

/* =======================
   Navigation
   ======================= */
.main-nav {
  background: var(--primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li > a {
  color: var(--white);
  padding: 14px 18px;
  display: block;
  font-size: var(--fs-sm);
}

/* =======================
   Dropdown
   ======================= */
.dropdown-menu {
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
}

/* =======================
   User Menu
   ======================= */
.user-menu-btn {
  background: var(--gray-50);
  border-radius: var(--radius-full);
  padding: 8px 12px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
}

/* =======================
   Search Bar（统一组件）
   ======================= */
.search-bar {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.search-bar input {
  flex: 1;
  border: none;
  padding: 10px 16px;
  font-size: var(--fs-sm);
  outline: none;
}

.search-bar button {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  cursor: pointer;
}

/* =======================
   Footer
   ======================= */
.main-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 60px;
}

/* Newsletter */
.footer-newsletter {
  background: var(--newsletter-bg);
  padding: 40px 0;
  color: #fff;
}

.newsletter-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.newsletter-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.newsletter-text h3 {
  margin: 0 0 8px;
  font-size: var(--fs-xl);
}

.newsletter-text p {
  opacity: 0.9;
}

.form-group-newsletter {
  display: flex;
  gap: 10px;
}

.form-group-newsletter input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-full);
  border: none;
  font-size: var(--fs-sm);
}

.form-group-newsletter button {
  padding: 14px 30px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
}

.privacy-note {
  margin-top: 8px;
  font-size: var(--fs-xs);
  opacity: 0.8;
}

/* Footer Grid */
.footer-main {
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-logo h2 {
  color: var(--accent);
  font-size: 28px;
}

.footer-logo span {
  font-size: var(--fs-xs);
  color: var(--footer-text-muted);
}

.footer-vision {
  background: rgba(255,153,0,0.1);
  padding: 12px 15px;
  border-left: 3px solid var(--accent);
  margin: 15px 0;
}

.footer-vision span {
  color: var(--accent);
  font-style: italic;
}

.footer-col h4 {
  color: #fff;
  font-size: var(--fs-base);
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.footer-links a {
  color: var(--footer-text);
  font-size: var(--fs-sm);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--footer-link-hover);
}

/* Tags */
.search-tag {
  padding: 6px 15px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-full);
  color: var(--footer-text);
  font-size: var(--fs-xs);
  border: 1px solid rgba(255,255,255,0.1);
}

.search-tag:hover {
  background: var(--accent);
  color: #fff;
}

/* Bottom */
.footer-bottom {
  background: var(--footer-bg-dark);
  padding: 20px 0;
  font-size: var(--fs-xs);
  color: var(--footer-text-muted);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Live Chat */
.live-chat-widget {
  position: fixed;
  bottom: 30px;
  left: 30px;
}

.chat-toggle {
  background: var(--chat-green);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 12px 20px;
}

.chat-box {
  width: 320px;
  background: #fff;
  border-radius: var(--radius-md);
}


/* =======================
   Trade Shows Page
   ======================= */

.trade-shows-page {
  padding: 30px 15px 60px;
}

/* Breadcrumb（已统一） */
.breadcrumb-wrapper {
  margin-bottom: 20px;
}

/* Page Header */
.page-header h1 {
  font-size: 32px;
  color: var(--black);
  margin-bottom: 10px;
}

.page-description {
  color: var(--gray-500);
  font-size: var(--fs-base);
}

/* Stats */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 25px;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.stat-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  color: var(--gray-500);
  font-size: var(--fs-xs);
}

/* Shows Grid */
.shows-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.show-card {
  background: var(--white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .3s;
}

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

.show-image {
  height: 180px;
  background: var(--gray-100);
}

.show-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}

.show-status {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.show-status.upcoming {
  background: var(--accent);
  color: #fff;
}

.show-details {
  padding: 20px;
}

.show-details h3 a {
  color: var(--black);
  text-decoration: none;
}

.show-details h3 a:hover {
  color: var(--primary);
}

/* Filters */
.shows-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
}

.filter-widget {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 25px;
  box-shadow: var(--card-shadow);
  border: 1px solid #eee;
}

.filter-group {
  margin-bottom: 18px;
}

.filter-group label {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: #555;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.btn-filter {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
}

/* =======================
   Trade Show Detail
   ======================= */

.show-header {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 30px;
  box-shadow: var(--card-shadow);
}

.show-status-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
}

.show-status-badge.upcoming {
  background: var(--badge-bg-upcoming);
  color: #856404;
}

.show-status-badge.ongoing {
  background: var(--badge-bg-ongoing);
  color: #155724;
}

.show-status-badge.past {
  background: var(--badge-bg-past);
  color: #721c24;
}

.show-title {
  font-size: 32px;
  color: var(--black);
  margin-bottom: 20px;
}

.show-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

/* Layout */
.show-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}

/* Sidebar */
.sidebar-widget {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 25px;
  box-shadow: var(--card-shadow);
}

.status-widget.upcoming {
  background: linear-gradient(135deg, #fff3cd, #ffe8a1);
}

/* Countdown */
.countdown-large .days {
  font-size: 48px;
  font-weight: 700;
  color: var(--black);
}

/* Supplier mini */
.supplier-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
}

.supplier-mini:hover {
  background: var(--gray-50);
}

/* Related shows */
.related-shows-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}