/**
 * FindEdition — platform-98.6-mobiles-hero.css
 * Mobiles homepage hero layout.
 *
 * Copyright (c) FindEdition Developers. All rights reserved.
 */

.fe-mobiles .fe-m-hero {
  position: relative;
  padding: clamp(1.25rem, 3.5vw, 2.5rem) 0 1.75rem;
  background:
    radial-gradient(ellipse 70% 50% at 8% 0%, rgba(34, 211, 238, 0.16), transparent 55%),
    linear-gradient(165deg, #f0fdfa 0%, #f8fafc 50%, #eef2ff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.fe-mobiles .fe-m-hero__shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Top row: copy + compact flagship side by side */
.fe-mobiles .fe-m-hero__primary {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 960px) {
  .fe-mobiles .fe-m-hero__primary {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  }
}

.fe-mobiles .fe-m-hero__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.fe-mobiles .fe-m-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0e7490 !important;
}

.fe-mobiles .fe-m-hero__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.65rem, 3.6vw, 2.45rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a !important;
}

.fe-mobiles .fe-m-hero__lead {
  margin: 0 0 1rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #334155 !important;
}

.fe-mobiles .fe-m-hero__search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 34rem;
  padding: 0.4rem 0.45rem 0.4rem 0.85rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.9rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.fe-mobiles .fe-m-hero__search i { color: #64748b; }

.fe-mobiles .fe-m-hero__search input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  color: #0f172a !important;
  outline: none;
  font-size: 0.95rem;
  box-shadow: none !important;
}

.fe-mobiles .fe-m-hero__search button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 0.7rem;
  background: #0891b2;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.fe-mobiles .fe-m-hero__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.fe-mobiles .fe-m-hero__brand {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155 !important;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 650;
}

.fe-mobiles .fe-m-hero__brand:hover {
  border-color: #0891b2;
  color: #0e7490 !important;
  background: #ecfeff;
}

.fe-mobiles .fe-m-hero__tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.95rem;
  max-width: 34rem;
}

@media (min-width: 520px) {
  .fe-mobiles .fe-m-hero__tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fe-mobiles .fe-m-hero__tool {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  text-decoration: none;
  color: #0f172a !important;
  min-width: 0;
}

.fe-mobiles .fe-m-hero__tool i { color: #0891b2; }
.fe-mobiles .fe-m-hero__tool strong { font-size: 0.85rem; }
.fe-mobiles .fe-m-hero__tool span {
  color: #64748b !important;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact horizontal flagship card — not a tall tower */
.fe-mobiles .fe-m-hero__flagship {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.1rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  min-height: 0;
  height: fit-content;
  align-self: start;
}

@media (max-width: 420px) {
  .fe-mobiles .fe-m-hero__flagship {
    grid-template-columns: 1fr;
  }
}

.fe-mobiles .fe-m-hero__flagship-media {
  aspect-ratio: 1;
  width: 100%;
  max-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  overflow: hidden;
}

.fe-mobiles .fe-m-hero__flagship-media img {
  max-width: 88%;
  max-height: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.fe-mobiles .fe-m-hero__flagship-media.is-empty,
.fe-mobiles .fe-m-hero__flagship-media i {
  color: #94a3b8;
  font-size: 1.75rem;
}

.fe-mobiles .fe-m-hero__flagship-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fe-mobiles .fe-m-hero__flagship-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  background: #0891b2;
  color: #fff !important;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fe-mobiles .fe-m-hero__flagship h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.fe-mobiles .fe-m-hero__flagship h2 a {
  color: #0f172a !important;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fe-mobiles .fe-m-hero__flagship-meta {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b !important;
}

.fe-mobiles .fe-m-hero__flagship-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.fe-mobiles .fe-m-hero__flagship-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0e7490 !important;
}

.fe-mobiles .fe-m-hero__flagship-rating {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155 !important;
}

.fe-mobiles .fe-m-hero__flagship-rating i { color: #d97706; }

.fe-mobiles .fe-m-hero__flagship-specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.fe-mobiles .fe-m-hero__flagship-specs li {
  font-size: 0.8rem;
  color: #334155 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fe-mobiles .fe-m-hero__flagship-specs span {
  font-weight: 750;
  color: #0f172a !important;
  margin-right: 0.3rem;
}

.fe-mobiles .fe-m-hero__flagship-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.fe-mobiles .fe-m-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border-radius: 0.65rem;
  font-weight: 750;
  text-decoration: none;
  font-size: 0.85rem;
}

.fe-mobiles .fe-m-hero__cta--primary {
  background: #0891b2;
  color: #fff !important;
}

.fe-mobiles .fe-m-hero__cta--ghost {
  background: #fff;
  color: #0f172a !important;
  border: 1px solid #cbd5e1;
}

/* Bottom row: trending + rankings full width */
.fe-mobiles .fe-m-hero__secondary {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .fe-mobiles .fe-m-hero__secondary {
    grid-template-columns: 1fr 1fr;
  }
}

.fe-mobiles .fe-m-hero__panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  min-width: 0;
}

.fe-mobiles .fe-m-hero__panel h3 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 750;
  color: #0f172a !important;
}

.fe-mobiles .fe-m-hero__panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fe-mobiles .fe-m-hero__panel li {
  margin: 0.3rem 0;
}

.fe-mobiles .fe-m-hero__panel a {
  color: #0f172a !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fe-mobiles .fe-m-hero__panel a:hover {
  color: #0e7490 !important;
}

.fe-mobiles .fe-m-hero__ranks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.fe-mobiles .fe-m-hero__rank {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.45rem 0.65rem;
  border-radius: 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155 !important;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 650;
}

.fe-mobiles .fe-m-hero__rank:hover {
  background: #ecfeff;
  border-color: #67e8f9;
  color: #0e7490 !important;
}

.fe-mobiles .fe-m-hero__rank i {
  color: #0891b2;
}

/* Neutralize leftover broken 2-col inner/aside layout if present in DOM */
.fe-mobiles .fe-m-hero__inner {
  display: contents;
}
.fe-mobiles .fe-m-hero__aside {
  display: contents;
}
