/* Next Releases Page Styles - Enhanced Visual Design */

/* ===== Hero Header ===== */
.hero-header {
  position: relative;
  padding: 2rem 2rem;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(105, 108, 255, 0.15) 0%, 
    rgba(13, 202, 240, 0.08) 50%,
    rgba(255, 193, 7, 0.08) 100%
  );
  z-index: 0;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    #696cff 0%,
    #0dcaf0 25%,
    #ffc107 50%,
    #198754 75%,
    #696cff 100%
  );
  animation: heroGradient 8s linear infinite;
  background-size: 300% 100%;
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.hero-icon {
  position: relative;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #696cff 0%, #0dcaf0 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroIconFloat 3s ease-in-out infinite;
  z-index: 2;
}

.hero-icon i {
  font-size: 2rem;
  color: #fff;
}

.hero-icon-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at center,
    rgba(105, 108, 255, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: heroGlow 4s ease-in-out infinite;
  z-index: 1;
}

@keyframes heroIconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #a8aaff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #696cff 0%, #0dcaf0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Timeline Container ===== */
.timeline-container {
  position: relative;
  padding: 1rem 0;
  padding-left: 0;
  margin-left: 0;
  border-left: none !important;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 30px;
  bottom: 50px;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(105, 108, 255, 0.3) 0%,
    rgba(13, 202, 240, 0.3) 33%,
    rgba(255, 193, 7, 0.3) 66%,
    rgba(25, 135, 84, 0.3) 100%
  );
  z-index: 1;
}

/* Ensure no extra borders or lines */
.timeline-container *:not(.timeline-marker):not(.timeline-content) {
  border-left: none !important;
}

.timeline-container .row,
.timeline-container .col-12 {
  border: none !important;
  border-left: none !important;
}

/* ===== Timeline Items ===== */
.timeline-item {
  position: relative;
  padding-left: 70px;
  padding-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out backwards;
  border: none !important;
  border-left: none !important;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.15s; }
.timeline-item:nth-child(3) { animation-delay: 0.2s; }
.timeline-item:nth-child(4) { animation-delay: 0.25s; }
.timeline-item:nth-child(5) { animation-delay: 0.3s; }
.timeline-item:nth-child(6) { animation-delay: 0.35s; }
.timeline-item:nth-child(7) { animation-delay: 0.4s; }
.timeline-item:nth-child(8) { animation-delay: 0.45s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Timeline Marker */
.timeline-marker {
  position: absolute;
  left: 0;
  top: 5px;
  width: 45px;
  height: 45px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.timeline-marker i {
  position: relative;
  z-index: 2;
}

.marker-success {
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.9), rgba(25, 135, 84, 0.7));
  color: #fff;
  border: 2px solid rgba(25, 135, 84, 0.5);
  box-shadow: 0 0 0 4px rgba(25, 30, 35, 1);
}

.marker-primary {
  background: linear-gradient(135deg, rgba(105, 108, 255, 0.9), rgba(105, 108, 255, 0.7));
  color: #fff;
  border: 2px solid rgba(105, 108, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(25, 30, 35, 1);
}

.marker-info {
  background: linear-gradient(135deg, rgba(13, 202, 240, 0.9), rgba(13, 202, 240, 0.7));
  color: #fff;
  border: 2px solid rgba(13, 202, 240, 0.5);
  box-shadow: 0 0 0 4px rgba(25, 30, 35, 1);
}

.marker-warning {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.9), rgba(255, 193, 7, 0.7));
  color: #fff;
  border: 2px solid rgba(255, 193, 7, 0.5);
  box-shadow: 0 0 0 4px rgba(25, 30, 35, 1);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(105, 108, 255, 0.3);
}

/* Timeline Content */
.timeline-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 5;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    currentColor 50%, 
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-content {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(105, 108, 255, 0.3);
  box-shadow: 0 8px 30px rgba(105, 108, 255, 0.15);
}

.timeline-item:hover .timeline-content::before {
  opacity: 0.5;
}

/* Content Header */
.content-header {
  margin-bottom: 0.75rem;
}

.content-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.content-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 1.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-success {
  background: rgba(25, 135, 84, 0.15);
  color: #198754;
  border: 1px solid rgba(25, 135, 84, 0.3);
}

.badge-primary {
  background: rgba(105, 108, 255, 0.15);
  color: #696cff;
  border: 1px solid rgba(105, 108, 255, 0.3);
}

.badge-info {
  background: rgba(13, 202, 240, 0.15);
  color: #0dcaf0;
  border: 1px solid rgba(13, 202, 240, 0.3);
}

.badge-warning {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.content-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
}

.content-date i {
  font-size: 0.875rem;
}

.content-time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
}

.content-time i {
  font-size: 0.875rem;
}

/* Date/Time Emphasis Animation */
.date-emphasized {
  animation: emphasizeDateTime 1.5s ease-out !important;
}

@keyframes emphasizeDateTime {
  0% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.2);
    background: rgba(105, 108, 255, 0.3) !important;
    box-shadow: 0 0 20px rgba(105, 108, 255, 0.5);
  }
  50% {
    transform: scale(1.15);
    background: rgba(105, 108, 255, 0.25) !important;
  }
  100% {
    transform: scale(1);
  }
}

/* Content Body */
.content-body {
  margin-bottom: 0.75rem;
}

.content-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.content-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
  line-height: 1.3;
}

.content-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* Content Footer */
.content-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.content-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.difficulty-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.difficulty-success { background: rgba(25, 135, 84, 0.15); color: #198754; }
.difficulty-warning { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.difficulty-danger { background: rgba(220, 53, 69, 0.15); color: #dc3545; }
.difficulty-dark { background: rgba(255, 255, 255, 0.15); color: #fff; }

.skill-badge {
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.content-stats {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

.stat-item i {
  font-size: 0.875rem;
  color: #ffc107;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
}

.empty-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, rgba(105, 108, 255, 0.15), rgba(13, 202, 240, 0.08));
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: emptyIconFloat 3s ease-in-out infinite;
}

.empty-icon i {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.4);
}

@keyframes emptyIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.empty-state h4 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.empty-state p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== Responsive Design ===== */
@media (max-width: 991.98px) {
  .hero-header {
    padding: 1.75rem 1.5rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
  }

  .hero-icon {
    width: 50px;
    height: 50px;
  }

  .hero-icon i {
    font-size: 1.5rem;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-container::before {
    left: 18px;
  }

  .timeline-marker {
    width: 38px;
    height: 38px;
    font-size: 1.125rem;
  }

  .content-title {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .hero-header {
    padding: 1.5rem 1.25rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.8125rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .timeline-item {
    padding-left: 55px;
    padding-bottom: 1.5rem;
  }

  .timeline-container::before {
    left: 16px;
  }

  .timeline-marker {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    border-radius: 0.625rem;
  }

  .timeline-content {
    padding: 1rem;
  }

  .content-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Print Styles ===== */
@media print {
  .hero-background::before,
  .hero-icon-glow,
  .timeline-container::before {
    display: none;
  }

  .timeline-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
