/* ============================================================
   CrownateStudio — Hire Equipment Marketplace CSS
   Aesthetic: Premium Enterprise-grade, Industrial, Engineering-focused
   ============================================================ */

:root {
  --industrial-bg: #0b0f19;
  --industrial-card-bg: rgba(15, 23, 42, 0.65);
  --industrial-border: rgba(255, 255, 255, 0.08);
  --accent-gold: #D4AF37;
  --accent-blue: #38bdf8;
  --status-available: #10b981;
  --status-reserved: #f59e0b;
  --status-maintenance: #ef4444;
  --text-primary: #ffffff;
  --text-muted: #94a3b8;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Body Styling */
.hire-equipment-body {
  background-color: var(--industrial-bg) !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', 'Roboto', sans-serif;
  overflow-x: hidden;
}

/* Glassmorphism Accents */
.glass-panel {
  background: var(--industrial-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--industrial-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(212, 175, 55, 0.2);
}

/* Badge System */
.badge-custom {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 50px;
}

.badge-gold {
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.badge-blue {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* Hero Section overrides */
.hero-industrial {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-image: url('../img/hire-equipment-hero.png');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-visual-frame {
  position: relative;
  z-index: 10;
  transform: perspective(1000px) rotateY(-6deg) rotateX(3deg);
  transition: var(--transition-smooth);
}

.hero-visual-frame:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Search Engine Control styles */
.search-engine-box {
  border-radius: 20px;
  padding: 24px;
  margin-top: -60px;
  position: relative;
  z-index: 30;
}

.search-input-group {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--industrial-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.search-input-group:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.search-input-group input {
  background: transparent !important;
  color: #fff !important;
  border: none !important;
  outline: none !important;
}

.search-filter-select {
  background: #0f172a !important;
  color: #fff !important;
  border: 1px solid var(--industrial-border) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
}

.search-filter-select:focus {
  border-color: var(--accent-gold) !important;
  box-shadow: none !important;
}

/* Category Grid Cards */
.category-card {
  border-radius: 16px;
  padding: 24px;
  text-align: left;
  height: 100%;
  cursor: pointer;
}

.category-card .icon-box {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--industrial-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-gold);
  font-size: 24px;
  transition: var(--transition-smooth);
}

.category-card:hover .icon-box {
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-5px);
}

/* Equipment Catalog Grid Cards */
.equipment-card {
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.equipment-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.05);
}

.equipment-img-container {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #1e293b;
}

.equipment-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.equipment-card:hover .equipment-img-container img {
  transform: scale(1.08);
}

.status-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 10;
}

.status-available {
  background: rgba(16, 185, 129, 0.15);
  color: var(--status-available);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-reserved {
  background: rgba(245, 158, 11, 0.15);
  color: var(--status-reserved);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-maintenance {
  background: rgba(239, 68, 68, 0.15);
  color: var(--status-maintenance);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.equipment-details-list {
  font-size: 12.5px;
  color: var(--text-muted);
}

.equipment-details-list li {
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.equipment-details-list span {
  color: #fff;
  font-weight: 500;
}

/* AI Recommendations feature styles */
.ai-glow-card {
  border-radius: 20px;
  padding: 30px;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.08) 0%, transparent 60%), var(--industrial-card-bg);
  position: relative;
  transition: var(--transition-smooth);
  pointer-events: auto !important;
}

.ai-glow-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.15);
}

.ai-glow-card::after {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), transparent, rgba(212, 175, 55, 0.1));
  z-index: -1;
  pointer-events: none;
}

.ai-pulse-circle {
  width: 14px;
  height: 14px;
  background: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-blue);
  animation: pulse 1.8s infinite;
}

/* Cost Estimation Tool styling */
.calculator-panel {
  border-radius: 20px;
  padding: 30px;
  transition: var(--transition-smooth);
  pointer-events: auto !important;
}

.calculator-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.3) !important;
}

.calc-display {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  text-align: right;
  font-family: 'Courier New', Courier, monospace;
}

/* Administrative Panel tabs */
.portal-tabs .nav-link {
  color: var(--text-muted);
  border: none;
  background: transparent;
  font-weight: 600;
  padding: 12px 20px;
  transition: var(--transition-smooth);
}

.portal-tabs .nav-link.active {
  color: var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
}

/* Custom details Modal Overlay drawer style */
.modal-industrial-content {
  background-color: #0f172a !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(56, 189, 248, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.img-zoom-hover {
  overflow: hidden;
}
.img-zoom-hover img {
  transition: var(--transition-smooth);
}
.img-zoom-hover:hover img {
  transform: scale(1.05);
}

/* Custom Global Dark Overrides for main.css section conflicts */
.hire-equipment-body section,
.hire-equipment-body .section {
  background-color: transparent !important;
  color: var(--text-primary) !important;
}

.hire-equipment-body h1,
.hire-equipment-body h2,
.hire-equipment-body h3,
.hire-equipment-body h4,
.hire-equipment-body h5,
.hire-equipment-body h6 {
  color: var(--text-primary) !important;
}

/* Specific styling for the FAQ Accordion items on dark background */
.hire-equipment-body .accordion-item {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.hire-equipment-body .accordion-button {
  background-color: transparent !important;
  color: var(--text-primary) !important;
}

.hire-equipment-body .accordion-button:not(.collapsed) {
  color: var(--accent-gold) !important;
  box-shadow: none !important;
}

.hire-equipment-body .accordion-button::after {
  filter: invert(1) !important; /* Invert collapse arrow to white */
}

/* Animations */
.animate-spin {
  animation: animate-spin 1.5s linear infinite;
}

@keyframes animate-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
