/* ==========================================================================
   UNG MAN (UNGMAN.SE) – COMPONENT STYLES
   Nordic Urban Editorial Components
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SECTIONS
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 60px 0 80px 0;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfbf9 0%, #f4f3ee 100%);
  border-bottom: 1px solid var(--border-light);
}

@media (min-width: 992px) {
  .hero {
    padding: 90px 0 110px 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-tag {
  background: rgba(224, 83, 38, 0.1);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  margin-bottom: 20px;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero-title span.highlight {
  color: var(--accent-primary);
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 1.22rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-trust-avatars {
  display: flex;
  align-items: center;
}

.hero-trust-avatars .avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -8px;
  background-color: var(--border-medium);
  object-fit: cover;
}

.hero-trust-avatars .avatar-mini:first-child {
  margin-left: 0;
}

/* Hero Media & Image Collage */
.hero-media-wrap {
  position: relative;
}

.hero-main-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  aspect-ratio: 4 / 3;
}

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

.hero-main-card:hover img {
  transform: scale(1.03);
}

.hero-floating-quote {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  max-width: 280px;
  z-index: 3;
}

@media (max-width: 640px) {
  .hero-floating-quote {
    position: static;
    margin-top: 16px;
    max-width: 100%;
  }
}

.quote-chip-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.quote-chip-author {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* Page Sub-Hero (used on internal pages) */
.page-hero {
  padding: 60px 0;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

.page-hero-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.page-hero-breadcrumbs a:hover {
  color: var(--accent-primary);
}

.page-hero-title {
  margin-bottom: 14px;
}

.page-hero-lead {
  font-size: 1.18rem;
  color: var(--text-secondary);
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   2. DAILY THOUGHT / INSPIRATION STRIP
   -------------------------------------------------------------------------- */
.daily-thought-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: -30px auto 40px auto;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.thought-content {
  flex-grow: 1;
}

.thought-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.thought-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}

.thought-action-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.thought-action-btn:hover {
  background: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

/* --------------------------------------------------------------------------
   3. PILLAR CARDS (THE 5 CORE PILLARS OF UNG MAN)
   -------------------------------------------------------------------------- */
.pillar-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.pillar-card.livskunskap:hover::before { background: #e05326; }
.pillar-card.halsa:hover::before { background: #10b981; }
.pillar-card.tech:hover::before { background: #2563eb; }
.pillar-card.skapa:hover::before { background: #8b5cf6; }
.pillar-card.verktyg:hover::before { background: #f59e0b; }

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 22px;
}

.pillar-card.livskunskap .pillar-icon-box { background: #fef0eb; color: #e05326; }
.pillar-card.halsa .pillar-icon-box { background: #ecfdf5; color: #10b981; }
.pillar-card.tech .pillar-icon-box { background: #eff6ff; color: #2563eb; }
.pillar-card.skapa .pillar-icon-box { background: #f5f3ff; color: #8b5cf6; }
.pillar-card.verktyg .pillar-icon-box { background: #fffbeb; color: #f59e0b; }

.pillar-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.pillar-title {
  font-size: 1.45rem;
  margin-bottom: 12px;
  line-height: 1.25;
}

.pillar-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.pillar-topics-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
}

.pillar-topics-list li {
  font-size: 0.88rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-topics-list li svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.pillar-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.pillar-card:hover .pillar-link {
  color: var(--accent-primary);
  gap: 12px;
}

/* --------------------------------------------------------------------------
   4. FILTER TABS & CATEGORIES
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 36px;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--bg-dark);
  color: #ffffff;
  border-color: var(--bg-dark);
}

/* --------------------------------------------------------------------------
   5. INTERACTIVE PREVIEW: LIVSKOLLEN (TEASER QUIZ)
   -------------------------------------------------------------------------- */
.livskollen-teaser-card {
  background: linear-gradient(135deg, #161a23 0%, #0d0f14 100%);
  border-radius: var(--radius-xl);
  padding: 40px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 992px) {
  .livskollen-teaser-card {
    padding: 56px;
  }
}

.livskollen-teaser-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(224, 83, 38, 0.2) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.teaser-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 992px) {
  .teaser-inner {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.teaser-heading {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.teaser-text {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 28px;
}

.quick-quiz-preview {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.quiz-step-title {
  font-size: 1.05rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 16px;
}

.quiz-options-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option-label {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: #e2e8f0;
  transition: all var(--transition-fast);
}

.quiz-option-label:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.quiz-option-label input[type="radio"] {
  accent-color: var(--accent-primary);
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   6. REAL VOICES / INTERVIEWS / PERSPECTIVES
   -------------------------------------------------------------------------- */
.voice-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.voice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.voice-img-top {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.voice-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.voice-quote {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 16px;
}

.voice-quote::before {
  content: "”";
  color: var(--accent-primary);
  font-size: 2.2rem;
  line-height: 0;
  margin-right: 4px;
}

.voice-author-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.voice-author-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.voice-author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. CRISIS & SUPPORT HOTLINES (TRYGGHET & STÖD)
   -------------------------------------------------------------------------- */
.support-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.support-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.support-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.support-org-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.support-badge {
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.support-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}

.support-phone-banner {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.phone-digits {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.support-btn-group {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.support-btn-group .btn {
  flex: 1;
}

/* --------------------------------------------------------------------------
   8. NEWSLETTER / SIGNUP BOX
   -------------------------------------------------------------------------- */
.newsletter-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.newsletter-title {
  margin-bottom: 12px;
}

.newsletter-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 28px auto;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-input {
  flex-grow: 1;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  background: #ffffff;
}

.newsletter-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(224, 83, 38, 0.15);
}

.newsletter-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   9. ARTICLE DETAILS / READER LAYOUT
   -------------------------------------------------------------------------- */
.article-header {
  padding: 50px 0 30px 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 40px;
}

.article-title-main {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.article-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  max-height: 520px;
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body-content {
  font-size: 1.12rem;
  line-height: 1.8;
  color: #24292f;
}

.article-body-content p {
  font-size: 1.12rem;
  line-height: 1.8;
  color: #24292f;
  margin-bottom: 24px;
}

.article-body-content h2 {
  margin-top: 48px;
  margin-bottom: 18px;
  font-size: 1.85rem;
}

.article-body-content h3 {
  margin-top: 36px;
  margin-bottom: 14px;
  font-size: 1.4rem;
}

.article-body-content ul,
.article-body-content ol {
  margin-bottom: 28px;
  padding-left: 24px;
}

.article-body-content li {
  margin-bottom: 10px;
}

.article-quote-block {
  margin: 36px 0;
  padding: 24px 32px;
  background: var(--bg-subtle);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
}

.article-sidebar-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 100px;
}

.sidebar-box-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background-color: var(--accent-primary);
  z-index: 2005;
  width: 0%;
  transition: width 0.1s;
}
