/**
 * ICODROID - Drone Page Styles
 * Version: 1.0.0
 */

/* ========================================
   HERO DRONE
   ======================================== */

.drone-hero {
  padding: 150px 0 100px;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

.drone-hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
}

.drone-hero .subtitle {
  font-size: 1.4rem;
  color: var(--gray-text);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* ========================================
   SPECS OVERVIEW
   ======================================== */

.specs-overview {
  padding: 100px 0;
}

.specs-grid-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.spec-box {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(0, 212, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.spec-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.spec-box:hover::before {
  left: 100%;
}

.spec-box:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

.spec-box .icon {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.spec-box .value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--light-text);
  font-family: var(--font-secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.spec-box .label {
  font-size: 1rem;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   3D MODEL VIEWER
   ======================================== */

.model-viewer-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

.model-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.model-placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: float 6s ease-in-out infinite;
}

.model-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  padding: 1rem 2rem;
  background: rgba(10, 14, 39, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.model-controls button {
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: var(--transition-fast);
}

.model-controls button:hover {
  color: var(--secondary-color);
  transform: scale(1.1);
}

/* ========================================
   DETAILED SPECS SECTION
   ======================================== */

.detailed-specs {
  padding: 100px 0;
}

.specs-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 1rem 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50px;
  color: var(--gray-text);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.tab-btn.active,
.tab-btn:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: transparent;
  color: var(--light-text);
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.specs-table {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.specs-table table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th,
.specs-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.specs-table th {
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.specs-table td:first-child {
  color: var(--light-text);
  font-weight: 600;
}

.specs-table td:last-child {
  color: var(--gray-text);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:hover {
  background: rgba(0, 212, 255, 0.05);
}

/* ========================================
   SAFETY FEATURES
   ======================================== */

.safety-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.safety-feature {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.safety-feature:hover {
  transform: translateX(10px);
  background: rgba(0, 212, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.safety-feature .icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.safety-feature h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--light-text);
}

.safety-feature p {
  color: var(--gray-text);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.safety-feature ul {
  list-style: none;
  padding-left: 0;
}

.safety-feature li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-text);
}

.safety-feature li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 0.8rem;
}

/* ========================================
   COMPARISON TABLE
   ======================================== */

.comparison-section {
  padding: 100px 0;
}

.comparison-table {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  overflow-x: auto;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.comparison-table table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table th {
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary-color);
  font-weight: 700;
}

.comparison-table th.highlight {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  font-size: 1.1rem;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--light-text);
}

.comparison-table .checkmark {
  color: var(--success-color);
  font-size: 1.2rem;
}

.comparison-table .crossmark {
  color: var(--danger-color);
  font-size: 1.2rem;
}

/* ========================================
   GALLERY PREVIEW
   ======================================== */

.gallery-preview {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

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

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 968px) {
  .drone-hero h1 {
    font-size: 2.5rem;
  }

  .specs-grid-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }

  .specs-tabs {
    flex-direction: column;
  }

  .model-container {
    height: 400px;
  }
}

@media (max-width: 640px) {
  .specs-grid-main {
    grid-template-columns: 1fr;
  }

  .spec-box .value {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .specs-table th,
  .specs-table td {
    padding: 1rem;
    font-size: 0.9rem;
  }
}
