/* ==========================================================================
   ALJAWDA ALFAKHERA - Specialized Components Stylesheet
   ========================================================================== */

/* ==========================================================================
   1. GLOBAL SOURCING INTERACTIVE MAP & COUNTRY HUBS
   ========================================================================== */

.sourcing-map-wrapper {
  background-color: var(--color-primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: var(--spacing-xl);
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
}

.map-container {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 10;
  background-color: #12151B;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
}

.world-countries path {
  transition: fill var(--transition-fast), stroke var(--transition-fast);
}

.hub-country {
  fill: #1C4032 !important;
  stroke: #2ECC71 !important;
  stroke-width: 0.8 !important;
}

.hub-country:hover {
  fill: #27634D !important;
  stroke: #00FF88 !important;
  cursor: pointer;
}

.hub-uae {
  fill: #801020 !important;
  stroke: #FF3B56 !important;
  stroke-width: 1.2 !important;
}

.hub-uae:hover {
  fill: #A0152B !important;
  stroke: #FF6B81 !important;
}

.trade-corridors path {
  stroke-dasharray: 6 4;
  animation: dashCorridor 30s linear infinite;
}

@keyframes dashCorridor {
  to {
    stroke-dashoffset: -100;
  }
}

/* Map Hub Pins */
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
}

.pin-pulse {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(200, 16, 46, 0.4);
  animation: pulsePin 2s infinite ease-out;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
}

.pin-core {
  width: 12px;
  height: 12px;
  background-color: var(--color-secondary);
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  transition: transform var(--transition-fast);
}

.map-pin:hover .pin-core,
.map-pin.active .pin-core {
  transform: scale(1.4);
  background-color: #FFFFFF;
  border-color: var(--color-secondary);
}

.pin-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  background-color: rgba(15, 17, 21, 0.9);
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

@keyframes pulsePin {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

/* Sourcing Country Cards Grid */
.country-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.country-card:hover {
  border-color: var(--color-secondary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.country-card-header {
  padding: 20px 24px;
  background-color: var(--color-surface-dim);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.country-flag-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.country-flag {
  font-size: 1.5rem;
  line-height: 1;
}

.country-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}

.country-card-body {
  padding: 24px;
  flex-grow: 1;
}

.country-spec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.country-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.country-spec-item .material-symbols-outlined {
  font-size: 18px;
  color: var(--color-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   2. 12-STEP PROCUREMENT TIMELINE COMPONENT
   ========================================================================== */

.procurement-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

@media (max-width: 1100px) {
  .procurement-timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .procurement-timeline { grid-template-columns: 1fr; }
}

.step-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.step-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-number {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-steel-light);
  line-height: 1;
}

.step-card:hover .step-number {
  color: var(--color-secondary);
}

.step-icon-wrap {
  width: 44px;
  height: 44px;
  background-color: var(--color-surface-dim);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 16px;
  font-size: 22px;
}

.step-card:hover .step-icon-wrap {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  padding-right: 32px;
}

.step-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   3. AUTOMOTIVE BRAND TILES & VENDOR LEGAL CALLOUT
   ========================================================================== */

.vendor-compliance-banner {
  background-color: #FFF8F8;
  border: 1px solid rgba(200, 16, 46, 0.25);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-xs);
  padding: 20px 24px;
  margin-bottom: var(--spacing-2xl);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.compliance-icon {
  font-size: 28px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

.compliance-text h4 {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.compliance-text p {
  font-size: 0.875rem;
  color: var(--color-text-main);
  line-height: 1.5;
  margin: 0;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: var(--spacing-3xl);
}

@media (max-width: 1024px) {
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 600px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}

.brand-tile {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 16px 12px;
  text-align: center;
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.brand-tile:hover {
  border-color: var(--color-primary);
  background-color: var(--color-surface-dim);
}

.brand-tile-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.brand-tile-type {
  font-size: 0.6875rem;
  color: var(--color-secondary);
  font-weight: 600;
  text-transform: uppercase;
}

/* ==========================================================================
   4. DATA TABLES & SPECS MATRIX
   ========================================================================== */

.specs-table-container {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.specs-table th {
  background-color: var(--color-surface-dim);
  color: var(--color-primary);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid var(--color-border);
  font-family: var(--font-heading);
}

.specs-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-main);
}

.specs-table tr:nth-child(even) td {
  background-color: #FAFCFE;
}

.specs-table tr:hover td {
  background-color: var(--color-surface-alt);
}

/* ==========================================================================
   5. RFQ COMPREHENSIVE FORM
   ========================================================================== */

.rfq-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-2xl);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-label .required {
  color: var(--color-secondary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-primary);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  background-color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(15, 17, 21, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}

.file-dropzone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-xs);
  padding: 24px;
  text-align: center;
  background-color: var(--color-bg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.file-dropzone:hover {
  border-color: var(--color-secondary);
  background-color: var(--color-surface-dim);
}

.dropzone-icon {
  font-size: 32px;
  color: var(--color-steel);
  margin-bottom: 8px;
}

/* ==========================================================================
   6. PROJECT CAPABILITY CASE STUDIES
   ========================================================================== */

.project-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.project-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.project-card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: #0E1217;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.project-card:hover .project-card-img {
  transform: scale(1.06);
}

.project-badge-bar {
  padding: 12px 20px;
  background-color: var(--color-surface-dim);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.project-card-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background-color: var(--color-bg);
  padding: 14px;
  border-radius: var(--radius-xs);
  margin: 16px 0;
  font-size: 0.8125rem;
}

.meta-item strong {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ==========================================================================
   7. OPERATIONAL MEDIA GALLERIES & VIDEO SHOWCASE
   ========================================================================== */

.operations-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.operation-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.operation-item:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.operation-img-container {
  height: 220px;
  overflow: hidden;
  position: relative;
  background-color: #12151B;
}

.operation-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.operation-item:hover .operation-img {
  transform: scale(1.08);
}

.operation-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(13, 17, 23, 0.85);
  color: #FFFFFF;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-xs);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
}

.operation-body {
  padding: 16px 20px;
  flex-grow: 1;
}

.operation-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.operation-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Video Showcase Box */
.video-showcase-box {
  background-color: var(--color-primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background-color: #000000;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-meta {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
