﻿/* -----------------------------------------------------------------------
   KuroStream Anime Radar & Daily Chronicles - Ultra Premium Cyber Aesthetic
   ----------------------------------------------------------------------- */

/* Non-transparent, solid frosted navigation header across Radar & Hub pages */
.navbar {
  background: rgba(10, 11, 18, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5) !important;
}

.radar-page {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: calc(var(--nav-height, 70px) + 24px) 20px 80px !important;
  color: #f1f0ff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
}

/* ---- Cinematic Hero Section ---- */
.radar-hero {
  position: relative;
  border-radius: 22px;
  padding: 40px 36px;
  margin-bottom: 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(135deg, rgba(14, 16, 28, 0.95) 0%, rgba(28, 22, 60, 0.9) 100%);
  border: 1px solid rgba(255, 172, 65, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.radar-hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 50%, rgba(255, 30, 86, 0.35) 0%, transparent 60%),
                    radial-gradient(circle at 20% 20%, rgba(255, 30, 86, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.radar-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.radar-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 30, 86, 0.25);
  border: 1px solid rgba(255, 172, 65, 0.45);
  color: #ffe299;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow: 0 0 16px rgba(255, 30, 86, 0.3);
}

.radar-hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: radarPulse 1.8s infinite;
}

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

.radar-hero-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 800;
  line-height: 1.16;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #ffffff 40%, #ffe299 75%, #ff1e56 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.radar-hero-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 20px;
}

.radar-stats-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.radar-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.radar-stat-icon {
  font-size: 16px;
  color: #ffac41;
}

/* Spotlight Card inside Hero */
.radar-hero-spotlight {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(18, 21, 36, 0.82);
  border: 1px solid rgba(255, 172, 65, 0.35);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 30, 86, 0.2);
  max-width: 380px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

.radar-hero-spotlight:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 172, 65, 0.6);
  box-shadow: 0 18px 50px rgba(255, 30, 86, 0.3);
}

.radar-spotlight-img {
  width: 90px;
  height: 125px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.radar-spotlight-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radar-spotlight-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffac41;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.radar-spotlight-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.radar-spotlight-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffac41;
  margin-top: 4px;
}

@media (max-width: 960px) {
  .radar-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
  }
  .radar-hero-spotlight {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
}

/* ---- Controls: Search & Category Tabs ---- */
.radar-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.radar-search-wrap {
  position: relative;
  width: 100%;
}

.radar-search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: 14px;
  background: rgba(18, 21, 37, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f0ff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.radar-search-input:focus {
  border-color: #ff1e56;
  background: rgba(22, 26, 46, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 30, 86, 0.25);
}

.radar-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.radar-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.radar-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  font-family: inherit;
}

.radar-tab:hover {
  background: rgba(255, 30, 86, 0.15);
  border-color: rgba(255, 172, 65, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

.radar-tab.active {
  background: linear-gradient(135deg, #ff1e56, #ff1e56);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 30, 86, 0.4);
}

/* ---- Section Titles ---- */
.radar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 20px;
}

.radar-section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.radar-section-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffac41;
}

.radar-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* ---- Grid of Articles / Dossiers ---- */
.radar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 640px) {
  .radar-grid {
    grid-template-columns: 1fr;
  }
}

.radar-card {
  position: relative;
  background: rgba(16, 18, 30, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.radar-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 172, 65, 0.45);
  box-shadow: 0 16px 40px rgba(255, 30, 86, 0.22);
}

.radar-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080911;
}

.radar-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.45s ease;
}

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

.radar-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(5, 5, 7, 0.9) 100%);
}

.radar-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(15, 17, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

/* Popular Evergreen Blogs & Permanent Archive Badges */
.radar-card.popular {
  border-color: rgba(245, 158, 11, 0.38) !important;
  background: linear-gradient(180deg, rgba(22, 18, 34, 0.94) 0%, rgba(12, 14, 24, 0.96) 100%) !important;
}

.radar-card.popular:hover {
  border-color: rgba(245, 158, 11, 0.75) !important;
  box-shadow: 0 16px 45px rgba(245, 158, 11, 0.22), 0 0 25px rgba(255, 30, 86, 0.25) !important;
}

.radar-badge-popular {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(239, 68, 68, 0.9)) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.45) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.radar-badge-permanent {
  background: rgba(16, 185, 129, 0.25) !important;
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
  color: #34d399 !important;
}

.radar-card-score {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.95);
  color: #111;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.radar-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.radar-card-hook {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffac41;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.radar-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.radar-card-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.radar-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.radar-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.radar-tag-pill {
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.radar-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffe299;
  text-decoration: none;
  transition: color 0.2s ease;
}

.radar-cta-link:hover {
  color: #ffffff;
}

/* ---- Interactive Research Dossier Modal ---- */
.radar-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(5, 7, 16, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px 16px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.radar-modal-box {
  position: relative !important;
  width: 100% !important;
  max-width: 820px !important;
  max-height: 90vh !important;
  background: #111424 !important;
  border: 1px solid rgba(255, 172, 65, 0.45) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85), 0 0 45px rgba(255, 30, 86, 0.35) !important;
  overflow-y: auto !important;
  padding: 28px !important;
  color: #f1f0ff !important;
  box-sizing: border-box !important;
  z-index: 1000000 !important;
  margin: auto !important;
}

.radar-modal-banner {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #080911;
  position: relative;
}

.radar-modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.radar-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff1e56, #ffac41);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(255, 30, 86, 0.5);
  transition: all 0.25s ease;
  margin-top: 20px;
  box-sizing: border-box;
}

.radar-modal-cta:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  color: #fff;
}

.radar-modal-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(15, 17, 30, 0.95) !important;
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 1000010 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85), 0 0 15px rgba(255, 30, 86, 0.4) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  padding: 0 !important;
  outline: none !important;
}

.radar-modal-close:hover {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  transform: scale(1.12) !important;
  box-shadow: 0 4px 25px rgba(239, 68, 68, 0.7) !important;
}

.radar-modal-close:active {
  transform: scale(0.95) !important;
}

.radar-modal-header {
  margin-bottom: 24px;
}

.radar-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 8px 0 14px;
  color: #fff;
}

.radar-modal-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #94a3b8;
}

.radar-modal-content-block {
  margin-bottom: 22px;
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.radar-modal-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffac41;
  margin-bottom: 10px;
}

.radar-modal-block-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #e2e8f0;
  margin: 0;
}

/* ---- High-Converting Watch Party CTA Card ---- */
.radar-cta-banner {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 30, 86, 0.28) 0%, rgba(255, 30, 86, 0.22) 100%), #14172a;
  border: 1px solid rgba(255, 172, 65, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 12px 30px rgba(255, 30, 86, 0.25);
}

.radar-cta-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 260px;
}

.radar-cta-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.radar-cta-sub {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin: 0;
}

.radar-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff1e56, #ffac41);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 30, 86, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.radar-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 30, 86, 0.65);
  filter: brightness(1.1);
}


