/* ==========================================================================
   HOMEPAGE SPECIFIC STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: var(--space-12) 0 var(--space-12);
  background-image: linear-gradient(180deg, rgba(14, 18, 22, 0.82) 0%, rgba(14, 18, 22, 0.96) 100%), url('../assets/images/hero-sunset.jpg');
  background-size: cover;
  background-position: center 25%;
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.hero-title {
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: var(--space-6);
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-search {
  display: flex;
  align-items: center;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-4);
  width: 100%;
  max-width: 600px;
  cursor: text;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search:hover {
  border-color: var(--color-text-muted);
}

.hero-search-icon {
  color: var(--color-text-muted);
  margin-right: var(--space-3);
}

.hero-search-text {
  color: var(--color-text-muted);
  font-size: 16px;
  flex: 1;
  text-align: left;
}

.hero-search-shortcut {
  font-size: 12px;
  color: var(--color-text-muted);
  background-color: var(--color-surface-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

/* --------------------------------------------------------------------------
   General Sections
   -------------------------------------------------------------------------- */
.section {
  padding: var(--space-10) 0;
}

.section-title {
  margin-bottom: var(--space-6);
}

/* --------------------------------------------------------------------------
   Tools Grid
   -------------------------------------------------------------------------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.tool-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-decoration: none;
  transition: all 0.2s ease;
}

.tool-card h3 {
  color: var(--color-text);
  font-size: 18px;
  margin-bottom: var(--space-2);
}

.tool-card p {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: 0;
}

.tool-card:hover {
  border-color: var(--color-accent-secondary);
  background-color: var(--color-surface-elevated);
  transform: translateY(-2px);
}

.tool-featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  background-color: rgba(255, 85, 0, 0.04);
  border-color: rgba(255, 85, 0, 0.25);
}

.tool-featured:hover {
  border-color: var(--color-accent);
  background-color: rgba(255, 85, 0, 0.08);
  box-shadow: 0 8px 24px rgba(255, 85, 0, 0.15);
}

.tool-icon {
  color: var(--color-accent);
  background-color: rgba(255, 85, 0, 0.12);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  margin-right: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-featured .tool-content {
  flex: 1;
}

.tool-featured .tool-content h3 {
  font-size: 22px;
}

.tool-featured .tool-content p {
  font-size: 16px;
}

.tool-arrow {
  color: var(--color-accent);
  font-size: 24px;
  transition: transform 0.2s ease;
}

.tool-featured:hover .tool-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Guides Grid
   -------------------------------------------------------------------------- */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.guide-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.guide-card:hover {
  transform: translateY(-3px);
  background-color: var(--color-surface-elevated);
  border-color: var(--color-accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.guide-card-img-wrap {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-4);
  background-color: var(--color-surface-elevated);
}

.guide-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.guide-card:hover .guide-card-img-wrap img {
  transform: scale(1.05);
}

.guide-card .badge {
  margin-bottom: var(--space-3);
  align-self: flex-start;
}

.guide-title {
  color: var(--color-text);
  font-size: 18px;
  margin-bottom: var(--space-2);
  line-height: 1.35;
}

.guide-meta {
  color: var(--color-text-muted);
  font-size: 13px;
  margin-bottom: 0;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Map Feature
   -------------------------------------------------------------------------- */
.map-feature-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-8);
  align-items: center;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.map-feature-content {
  padding: var(--space-8);
}

.map-feature-content h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: var(--space-3);
}

.map-feature-visual {
  height: 380px;
  position: relative;
  overflow: hidden;
  background-color: #050a0f;
}

.map-teaser-overlay {
  position: relative;
  width: 100%;
  height: 100%;
}

.map-teaser-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% center;
  transition: transform 0.4s ease;
  filter: brightness(0.9) contrast(1.1);
}

.map-feature-inner:hover .map-teaser-img {
  transform: scale(1.05);
}

.map-teaser-radar-ping {
  position: absolute;
  top: 45%;
  right: 22%;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.ping-ring {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  animation: radarPing 2s infinite cubic-bezier(0, 0.2, 0.8, 1);
  position: absolute;
  top: 50%;
  left: 6px;
  transform: translate(-50%, -50%);
}

.ping-core {
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-accent);
  position: relative;
  z-index: 2;
}

.ping-label {
  background: rgba(11, 17, 24, 0.92);
  border: 1px solid var(--color-border);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

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

.map-marker {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.2);
  transform: translate(-50%, -50%);
}

.map-marker::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background-color: #fff;
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Responsive Layouts
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-section {
    padding: var(--space-8) 0;
  }
  
  .tool-featured {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .tool-icon {
    margin-right: 0;
    margin-bottom: var(--space-3);
  }
  
  .map-feature-inner {
    grid-template-columns: 1fr;
  }
  
  .map-feature-content {
    padding: var(--space-6) var(--space-5);
  }
  
  .map-feature-visual {
    height: 250px;
  }
}
