/* =======================================================================
   Konia — News Page Styles
   ======================================================================= */

/* Override shared defaults */
:root {
  --container-width: 1120px;
  --content-width: 800px;
}

/* =======================================================================
   Nav CTA (duplicated from index.css — not in shared.css)
   ======================================================================= */

.nav__cta {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav__cta:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

/* =======================================================================
   Dark Mode — Page-specific
   ======================================================================= */
[data-theme="dark"] .release-card {
  background: var(--color-gray-100);
  border-color: var(--color-gray-300);
}

[data-theme="dark"] .release-card--latest {
  border-color: var(--color-primary);
}

[data-theme="dark"] .release-image {
  background: #1A2230;
}

[data-theme="dark"] .feature-item {
  background: #1A2230;
}

[data-theme="dark"] .timeline__line {
  background: var(--color-gray-300);
}

[data-theme="dark"] .timeline__dot {
  border-color: var(--color-gray-100);
}

[data-theme="dark"] .category-badge {
  background: #1A2230;
}

[data-theme="dark"] .key-feature {
  background: #1A2230;
}

[data-theme="dark"] .release-divider {
  background: var(--color-gray-300);
}

[data-theme="dark"] .news-header__bg {
  opacity: 0.3;
}

[data-theme="dark"] .timeline__dot--latest {
  box-shadow: 0 0 0 4px rgba(58, 122, 108, 0.3);
}

/* =======================================================================
   News Header (Hero with background image)
   ======================================================================= */
.news-header {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
}

.news-header__bg {
  position: absolute;
  inset: 0;
  background: url('../images/news-hero.webp') center center / cover no-repeat;
  opacity: 0.45;
}

.news-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.news-header__content {
  position: relative;
  z-index: 1;
}

.news-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.news-header__badge svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255, 255, 255, 0.9);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news-header__title {
  font-size: 48px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.news-header__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 500px;
  margin: 0 auto;
}

/* =======================================================================
   Timeline
   ======================================================================= */
.timeline {
  position: relative;
  padding: 48px 0 80px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.timeline__line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 80px;
  width: 2px;
  background: var(--color-gray-300);
}

.timeline__entry {
  position: relative;
  padding-left: 64px;
  margin-bottom: 48px;
}

.timeline__entry:last-child {
  margin-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: 14px;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 4px solid var(--color-white);
  z-index: 1;
  transition: border-color 0.3s ease;
}

.timeline__dot--latest {
  width: 26px;
  height: 26px;
  left: 12px;
  top: 6px;
  box-shadow: 0 0 0 4px rgba(42, 88, 78, 0.2);
}

/* =======================================================================
   Release Card
   ======================================================================= */
.release-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition);
}

.release-card--latest {
  border-color: var(--color-primary);
  box-shadow: 0 4px 24px rgba(42, 88, 78, 0.08);
}

.release-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  letter-spacing: 0.3px;
}

.version-badge svg {
  width: 14px;
  height: 14px;
  stroke: #FFFFFF;
  fill: none;
  stroke-width: 2.5;
}

.new-badge {
  display: inline-flex;
  align-items: center;
  background: #22C55E;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.release-card__date {
  font-size: 14px;
  color: var(--color-gray-500);
  margin-bottom: 20px;
}

.release-card__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.release-card__desc {
  font-size: 15px;
  color: var(--color-gray-500);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* Release Image */
.release-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--color-gray-100);
}

.release-image img {
  width: 100%;
  height: auto;
  display: block;
}

.release-image__placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-500);
  font-size: 14px;
  font-weight: 500;
}

/* Feature List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--color-gray-100);
  border-radius: 12px;
  align-items: flex-start;
  transition: background-color 0.3s ease;
}

.feature-item__icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.feature-item__icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.feature-item__icon--coach {
  background: rgba(42, 88, 78, 0.12);
}
.feature-item__icon--coach svg { stroke: #2A584E; }

.feature-item__icon--filter {
  background: rgba(30, 136, 229, 0.12);
}
.feature-item__icon--filter svg { stroke: #1E88E5; }

.feature-item__icon--ui {
  background: rgba(255, 167, 38, 0.12);
}
.feature-item__icon--ui svg { stroke: #FFA726; }

.feature-item__icon--bug {
  background: rgba(142, 36, 170, 0.12);
}
.feature-item__icon--bug svg { stroke: #8E24AA; }

.feature-item__icon--training {
  background: rgba(229, 115, 0, 0.12);
}
.feature-item__icon--training svg { stroke: #E57300; }

.feature-item__icon--feature {
  background: rgba(67, 160, 71, 0.12);
}
.feature-item__icon--feature svg { stroke: #43A047; }

.feature-item__icon--launch {
  background: rgba(229, 57, 53, 0.12);
}
.feature-item__icon--launch svg { stroke: #E53935; }

.feature-item__text {
  flex: 1;
}

.feature-item__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.feature-item__desc {
  font-size: 14px;
  color: var(--color-gray-500);
  line-height: 1.6;
}

/* =======================================================================
   Initial Release — Category Sections
   ======================================================================= */
.category-section {
  margin-bottom: 20px;
}

.category-section:last-child {
  margin-bottom: 0;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  padding: 4px 10px;
  background: var(--color-gray-100);
  border-radius: 6px;
}

.category-badge svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-features {
  list-style: none;
  padding: 0;
}

.category-features li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--color-gray-700);
  margin-bottom: 6px;
  line-height: 1.6;
}

.category-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* =======================================================================
   Key Features Grid (for initial release)
   ======================================================================= */
.key-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.key-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--color-gray-100);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-700);
  transition: background-color 0.3s ease;
}

.key-feature svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  min-width: 18px;
}

/* =======================================================================
   Divider
   ======================================================================= */
.release-divider {
  border: none;
  height: 1px;
  background: var(--color-gray-100);
  margin: 24px 0;
}

/* =======================================================================
   Responsive
   ======================================================================= */
@media (max-width: 768px) {
  .news-header {
    padding: 130px 0 60px;
  }

  .news-header__title {
    font-size: 34px;
  }

  .timeline__line {
    left: 16px;
  }

  .timeline__dot {
    left: 6px;
  }

  .timeline__dot--latest {
    left: 4px;
  }

  .timeline__entry {
    padding-left: 48px;
  }

  .release-card {
    padding: 24px;
  }

  .key-features {
    grid-template-columns: 1fr;
  }
}
