/* ===================================================================
   IoT Sensor Suite & Tabs Section Styling
   Target Page: /iot-system-provider/
   =================================================================== */

.iot-sensors-section {
  position: relative;
  width: 100%;
  padding: 5rem 1.5rem;
  background: #00141C;
  color: #ffffff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

/* Background Ambient Glows */
.iot-sensors-section::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 195, 255, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.iot-sensors-section::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.iot-sensors-container {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Header Styling */
.iot-sensors-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.iot-sensors-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 195, 255, 0.08);
  border: 1px solid rgba(0, 195, 255, 0.25);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #00f2fe;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.iot-sensors-eyebrow-dot {
  width: 7px;
  height: 7px;
  background-color: #00f2fe;
  border-radius: 50%;
  box-shadow: 0 0 8px #00f2fe;
  animation: iotPulseDot 2s infinite ease-in-out;
}

@keyframes iotPulseDot {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

.iot-sensors-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.iot-sensors-title span {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.iot-sensors-subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* Sensor Tabs Nav */
.iot-sensor-tabs-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: rgba(15, 27, 37, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.6rem;
  margin-bottom: 2.5rem;
}

.iot-sensor-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.iot-sensor-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.iot-sensor-tab-btn.is-active {
  background: rgba(0, 195, 255, 0.12);
  border-color: rgba(0, 195, 255, 0.35);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 195, 255, 0.15);
}

.iot-sensor-tab-icon {
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.iot-sensor-tab-btn:hover .iot-sensor-tab-icon,
.iot-sensor-tab-btn.is-active .iot-sensor-tab-icon {
  transform: scale(1.15);
}

/* Tab Active Color Indicator */
.iot-sensor-tab-btn[data-tab="climate"].is-active {
  border-color: rgba(0, 242, 254, 0.4);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0.08) 100%);
}

.iot-sensor-tab-btn[data-tab="air-quality"].is-active {
  border-color: rgba(0, 245, 160, 0.4);
  background: linear-gradient(135deg, rgba(0, 245, 160, 0.15) 0%, rgba(0, 217, 245, 0.08) 100%);
}

.iot-sensor-tab-btn[data-tab="gas"].is-active {
  border-color: rgba(56, 239, 125, 0.4);
  background: linear-gradient(135deg, rgba(56, 239, 125, 0.15) 0%, rgba(17, 153, 142, 0.08) 100%);
}

.iot-sensor-tab-btn[data-tab="noise"].is-active {
  border-color: rgba(255, 153, 102, 0.4);
  background: linear-gradient(135deg, rgba(255, 153, 102, 0.15) 0%, rgba(255, 94, 98, 0.08) 100%);
}

/* Tab Panels Content Container */
.iot-sensor-panels {
  position: relative;
  min-height: 520px;
}

.iot-sensor-panel {
  display: none;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  background: rgba(11, 25, 36, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.iot-sensor-panel.is-active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

/* Panel Left Details */
.iot-sensor-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.panel-climate .iot-sensor-badge {
  background: rgba(0, 242, 254, 0.15);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.panel-air-quality .iot-sensor-badge {
  background: rgba(0, 245, 160, 0.15);
  color: #00f5a0;
  border: 1px solid rgba(0, 245, 160, 0.3);
}

.panel-gas .iot-sensor-badge {
  background: rgba(56, 239, 125, 0.15);
  color: #38ef7d;
  border: 1px solid rgba(56, 239, 125, 0.3);
}

.panel-noise .iot-sensor-badge {
  background: rgba(255, 153, 102, 0.15);
  color: #ff9966;
  border: 1px solid rgba(255, 153, 102, 0.3);
}

.iot-sensor-name {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.iot-sensor-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* Live Telemetry Metrics Grid */
.iot-sensor-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.iot-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.iot-metric-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 195, 255, 0.25);
}

.iot-metric-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.panel-climate .iot-metric-val { color: #00f2fe; }
.panel-air-quality .iot-metric-val { color: #00f5a0; }
.panel-gas .iot-metric-val { color: #38ef7d; }
.panel-noise .iot-metric-val { color: #ff9966; }

.iot-metric-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Specs List */
.iot-sensor-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.iot-spec-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.85rem;
  color: #e2e8f0;
  font-weight: 500;
}

.iot-spec-item svg {
  width: 14px;
  height: 14px;
  stroke: #00f2fe;
}

/* Panel Right - Hardware Image Showcase Stage */
.iot-sensor-image-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(15, 34, 49, 0.8) 0%, rgba(5, 15, 23, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.iot-sensor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

.iot-sensor-image-stage:hover .iot-sensor-img {
  transform: scale(1.04);
}

/* Live Telemetry Tag overlay on image */
.iot-sensor-live-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(0, 20, 28, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  z-index: 3;
}

.iot-live-pulse {
  width: 8px;
  height: 8px;
  background-color: #00f5a0;
  border-radius: 50%;
  box-shadow: 0 0 10px #00f5a0;
  animation: iotPulseDot 1.5s infinite ease-in-out;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .iot-sensors-title {
    font-size: 2.2rem;
  }
  .iot-sensor-panel {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }
  .iot-sensor-image-stage {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .iot-sensors-section {
    padding: 3.5rem 1rem;
  }
  .iot-sensor-tabs-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .iot-sensors-title {
    font-size: 1.8rem;
  }
  .iot-sensor-metrics {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .iot-sensor-tabs-nav {
    grid-template-columns: 1fr;
  }
  .iot-sensor-tab-btn {
    justify-content: flex-start;
  }
}
