/* ==========================================================================
   AgenttiSuomi.fi - Custom Dark Green & Obsidian Theme
   Color palette sampled directly from design reference:
   - Primary Dark Green: #004f59
   - Deep Obsidian Black: #050e0f / #000000
   - Accent Mid-Teal: #007680
   - Pale Mint / Seafoam: #e0f1ea
   - Vibrant Mint Glow: #4eedc4
   - Vibrant Emerald Green: #26890d
   - Text White: #ffffff
   ========================================================================== */

:root {
  --as-black: #050e0f;
  --as-pitch-black: #020708;
  --as-dark-green: #004f59;
  --as-card-bg: #00363d;
  --as-card-surface: #00292f;
  --as-card-border: rgba(224, 241, 234, 0.16);
  --as-mid-teal: #007680;
  --as-light-mint: #e0f1ea;
  --as-vibrant-mint: #4eedc4;
  --as-emerald: #26890d;
  --as-text-white: #ffffff;
  --as-text-muted: #c2ddd5;
  --as-text-dark: #004f59;
}

/* Global Dark Base */
html, body {
  background-color: var(--as-pitch-black) !important;
  color: var(--as-text-white) !important;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--as-text-white);
  font-weight: 700;
}

p, li, span {
  color: var(--as-text-muted);
}

a {
  color: var(--as-vibrant-mint);
  transition: all 0.25s ease;
}

a:hover, a:focus {
  color: #ffffff;
  text-decoration: none;
}

/* Page Section Backgrounds */
.as-bg-black {
  background: var(--as-pitch-black) !important;
}

.as-bg-dark-teal {
  background: linear-gradient(180deg, #050e0f 0%, #004f59 50%, #003840 100%) !important;
}

.as-bg-gradient {
  background: radial-gradient(circle at 50% 20%, #005f6b 0%, #00333a 45%, #030a0b 100%) !important;
}

.as-bg-card-section {
  background: linear-gradient(180deg, #003840 0%, #002328 100%) !important;
}

/* ==========================================================================
   Header & Navigation (Dark Teal & Black Theme)
   ========================================================================== */
#header,
header#header,
header#header .menu,
header#header .mega-menu,
header#header .mega-menu > section.menu-list-items,
.mega-menu > section.menu-list-items {
  background-color: #030a0b !important;
  background: #030a0b !important;
  border-bottom: 1px solid rgba(224, 241, 234, 0.12) !important;
}

header#header {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-height: 76px !important;
  z-index: 9999 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

header#header .mega-menu .menu-logo {
  padding: 14px 0 !important;
}

header#header .mega-menu .menu-logo img {
  height: 46px !important;
  max-height: 46px !important;
  width: auto !important;
}

header#header .mega-menu .menu-links > li > a {
  color: #e0f1ea !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 76px !important;
  height: 76px !important;
  padding: 0 16px !important;
  transition: all 0.2s ease !important;
}

header#header .mega-menu .menu-links > li > a:hover,
header#header .mega-menu .menu-links > li.active > a {
  color: var(--as-vibrant-mint) !important;
  text-shadow: 0 0 12px rgba(78, 237, 196, 0.4);
}

/* CTA Pill Button (Mint Pale Seafoam with Dark Text - matching reference) */
.as-btn-mint {
  background-color: var(--as-light-mint) !important;
  color: var(--as-dark-green) !important;
  border: 1px solid var(--as-light-mint) !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  padding: 10px 22px !important;
  border-radius: 30px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(224, 241, 234, 0.25) !important;
  transition: all 0.25s ease !important;
}

.as-btn-mint:hover {
  background-color: #ffffff !important;
  color: #002b30 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 237, 196, 0.4) !important;
}

.as-btn-emerald {
  background-color: var(--as-emerald) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 12px 26px !important;
  border-radius: 30px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 15px rgba(38, 137, 13, 0.35) !important;
}

.as-btn-emerald:hover {
  background-color: #2ea810 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(38, 137, 13, 0.5) !important;
}

.as-btn-outline {
  background: transparent !important;
  color: var(--as-light-mint) !important;
  border: 1.5px solid rgba(224, 241, 234, 0.35) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 11px 24px !important;
  border-radius: 30px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease !important;
}

.as-btn-outline:hover {
  border-color: var(--as-vibrant-mint) !important;
  color: var(--as-vibrant-mint) !important;
  background: rgba(78, 237, 196, 0.08) !important;
}

/* Sticky Header on Scroll */
.mega-menu.desktopTopFixed,
.mega-menu.desktopTopFixed .menu-list-items,
.header.light .mega-menu.desktopTopFixed .menu-list-items,
.mega-menu.desktopTopFixed > section.menu-list-items {
  background-color: rgba(3, 10, 11, 0.96) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224, 241, 234, 0.15) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6) !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.as-hero {
  position: relative;
  padding: 90px 0 110px;
  background: linear-gradient(180deg, #030a0b 0%, #004f59 55%, #00333a 100%);
  overflow: hidden;
  border-bottom: 1px solid rgba(224, 241, 234, 0.1);
}

.as-hero::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(78, 237, 196, 0.12) 0%, rgba(0, 79, 89, 0) 70%);
  pointer-events: none;
}

/* "TULOSSA" Glowing Badge */
.as-badge-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(224, 241, 234, 0.12);
  border: 1px solid rgba(78, 237, 196, 0.45);
  color: var(--as-vibrant-mint);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
  box-shadow: 0 0 16px rgba(78, 237, 196, 0.15);
}

.as-pulse-dot {
  width: 9px;
  height: 9px;
  background-color: var(--as-vibrant-mint);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--as-vibrant-mint);
  animation: pulseAnimation 2s infinite ease-in-out;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.as-hero-title {
  font-size: 52px;
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
}

.as-hero-title span {
  color: var(--as-vibrant-mint);
  background: linear-gradient(120deg, #ffffff 10%, #75ecc2 60%, #00a2b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.as-hero-lead {
  font-size: 20px;
  line-height: 1.6;
  color: #d1ebe2;
  max-width: 860px;
  margin: 0 auto 35px auto;
}

/* ==========================================================================
   Reference Image Match: Interactive Filter & Explorer Showcase
   Directly mirrors the user's uploaded screenshot:
   - Mint top bar with settings icon & Reset
   - Dark pine green filter accordion items with down arrows
   - "Finland X" / "Suomi-konteksti X" mint chip
   - Right-side cards with "Apply by: ..." green badge, titles, Helsinki pin
   ========================================================================== */
.as-showcase-wrapper {
  background: #004f59;
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(224, 241, 234, 0.2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  margin-top: 35px;
}

/* Filter Box (Left Column) */
.as-filter-panel {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.as-filter-header {
  background-color: var(--as-light-mint);
  color: var(--as-dark-green);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.as-filter-header i {
  font-size: 18px;
  color: var(--as-dark-green);
}

.as-filter-reset {
  color: #004f59;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.as-filter-reset:hover {
  color: #002b30;
  text-decoration: underline;
}

.as-filter-body {
  background-color: #00444d;
}

.as-filter-item {
  background-color: #00444d;
  border-bottom: 1px solid rgba(224, 241, 234, 0.12);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.as-filter-item:hover {
  background-color: #003a42;
  color: var(--as-light-mint);
}

.as-filter-item:last-child {
  border-bottom: none;
}

.as-filter-item i.fa-chevron-down {
  font-size: 12px;
  color: var(--as-light-mint);
}

/* Active Filter Chips (Mint Pills) */
.as-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--as-light-mint);
  color: var(--as-dark-green);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.as-filter-chip .chip-close {
  color: var(--as-dark-green);
  font-weight: 800;
  cursor: pointer;
  font-size: 13px;
}

/* Explorer Showcase Cards (Right Column) */
.as-listing-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  color: #1e293b;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.as-listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.as-card-status-badge {
  color: var(--as-emerald);
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 8px;
}

.as-card-title {
  color: #0f172a;
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 10px;
}

.as-card-desc {
  color: #475569;
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.as-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--as-emerald);
  color: var(--as-emerald);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
}

.as-tag-secondary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  color: #334155;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
  margin-left: 6px;
}

/* ==========================================================================
   4 Core Pillars Grid (Tumma tausta & vihreät tehosteet)
   ========================================================================== */
.as-pillar-card {
  background: #003138;
  border: 1px solid var(--as-card-border);
  border-radius: 14px;
  padding: 34px 28px;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.as-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--as-vibrant-mint), var(--as-mid-teal));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.as-pillar-card:hover {
  transform: translateY(-6px);
  border-color: rgba(78, 237, 196, 0.45);
  background: #003b44;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(78, 237, 196, 0.12);
}

.as-pillar-card:hover::before {
  opacity: 1;
}

.as-pillar-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(224, 241, 234, 0.1);
  border: 1px solid rgba(224, 241, 234, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--as-vibrant-mint);
  font-size: 26px;
  margin-bottom: 22px;
}

.as-pillar-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.as-pillar-text {
  font-size: 15px;
  line-height: 1.6;
  color: #c0ded4;
  margin-bottom: 0;
}

/* Feature bullets */
.as-pillar-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
}

.as-pillar-list li {
  font-size: 13.5px;
  color: #e0f1ea;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.as-pillar-list li i {
  color: var(--as-vibrant-mint);
  font-size: 11px;
}

/* ==========================================================================
   Newsletter / Coming Soon Signup Box
   ========================================================================== */
.as-signup-container {
  background: linear-gradient(135deg, #00444d 0%, #002227 100%);
  border: 1px solid rgba(224, 241, 234, 0.25);
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.as-signup-container::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(78, 237, 196, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.as-input-dark {
  background: #021113 !important;
  border: 1.5px solid rgba(224, 241, 234, 0.25) !important;
  color: #ffffff !important;
  height: 52px !important;
  border-radius: 30px !important;
  padding-left: 24px !important;
  font-size: 15px !important;
  transition: all 0.25s ease !important;
}

.as-input-dark:focus {
  border-color: var(--as-vibrant-mint) !important;
  box-shadow: 0 0 16px rgba(78, 237, 196, 0.25) !important;
  outline: none !important;
}

.as-input-dark::placeholder {
  color: #7aa599 !important;
}

/* ==========================================================================
   MCP Showcase Grid Cards (Dark Variant)
   ========================================================================== */
.as-mcp-card {
  background: #00272c;
  border: 1px solid rgba(224, 241, 234, 0.15);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.25s ease;
  height: 100%;
}

.as-mcp-card:hover {
  border-color: var(--as-vibrant-mint);
  transform: translateY(-4px);
  background: #003239;
}

.as-mcp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.as-mcp-code {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  color: var(--as-vibrant-mint);
  background: rgba(78, 237, 196, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(78, 237, 196, 0.2);
}

.as-mcp-badge {
  background: rgba(224, 241, 234, 0.15);
  color: var(--as-light-mint);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

/* ==========================================================================
   Footer (Black & Minimalist Dark Teal)
   ========================================================================== */
.as-footer {
  background: #020708 !important;
  border-top: 1px solid rgba(224, 241, 234, 0.1) !important;
  padding: 45px 0 35px !important;
}

.as-footer a {
  color: #9ecbbe;
}

.as-footer a:hover {
  color: #ffffff;
}

/* Mobile Adjustments */
@media screen and (max-width: 991px) {
  .as-hero-title {
    font-size: 34px;
  }
  .as-hero-lead {
    font-size: 17px;
  }
  .as-showcase-wrapper {
    padding: 20px 15px;
  }
  .as-signup-container {
    padding: 30px 20px;
  }
  header#header .mega-menu .menu-links {
    background: #030a0b !important;
  }
  header#header .mega-menu .menu-links > li > a {
    color: #e0f1ea !important;
    border-bottom: 1px solid rgba(224, 241, 234, 0.08) !important;
    line-height: 44px !important;
    height: auto !important;
  }
}
