/* Clean Release Notes Modal Styles */

.release-notes-modal {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

.release-notes-modal .swal2-header {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-bottom: none !important;
}

.release-notes-modal .swal2-content {
  margin: 0 !important;
  padding: 0 !important;
}

.release-notes-modal .swal2-popup {
  padding: 0 !important;
}

.release-notes-modal .swal2-close {
  position: absolute !important;
  top: 16px !important;
  right: 20px !important;
  z-index: 1000 !important;
  background: none !important;
  border: none !important;
  font-size: 28px !important;
  font-weight: 300 !important;
  color: #999 !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.release-notes-modal .swal2-close:hover {
  color: #000 !important;
  background: none !important;
}

.release-notes-content {
  text-align: left;
  max-height: 500px;
  overflow: visible;
  padding: 0;
  background: #ffffff;
  border-radius: 8px;
}

.release-notes-header {
  display: none;
}

.release-notes-title {
  display: none;
}

.release-notes-subtitle {
  display: none;
}

.new-release-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #28a745;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: gentle-pulse 2s infinite;
}

@keyframes gentle-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.release-notes-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 60px 16px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  position: relative;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-title {
  font-size: 1rem;
  font-weight: 600;
  color: #343a40;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.version-counter {
  display: none;
}

.nav-buttons {
  display: none;
}

.release-notes-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

.nav-btn {
  padding: 6px 12px;
  border: 1px solid #337ab7;
  background: #337ab7;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 400;
  transition: all 0.15s ease-in-out;
}

.nav-btn:hover:not(:disabled) {
  background: #286090;
  border-color: #204d74;
}

.nav-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: #6c757d;
  border-color: #6c757d;
}

.release-card-container {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.release-card {
  padding: 16px 20px 24px 20px;
  height: 100%;
  overflow-y: auto;
  display: none;
  box-sizing: border-box;
}

.release-card::-webkit-scrollbar {
  width: 6px;
}

.release-card::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 3px;
}

.release-card::-webkit-scrollbar-thumb {
  background: #dee2e6;
  border-radius: 3px;
}

.release-card.active {
  display: block;
}

.version-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e9ecef;
}

.version-badge {
  background: #007bff;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 600;
}

.release-date {
  color: #6c757d;
  font-size: 0.9em;
  font-weight: 500;
}

.latest-badge {
  background: #28a745;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 600;
  margin-left: auto;
  text-transform: uppercase;
}

.detailed-content {
  line-height: 1.6;
  color: #495057;
}

.detailed-content h4 {
  color: #343a40;
  margin: 16px 0 8px 0;
  font-size: 1.1em;
}

.detailed-content p {
  margin-bottom: 12px;
}

.release-month {
  color: #6c757d;
  font-size: 0.9em;
  font-weight: 500;
  margin-left: 12px;
}

.release-changes {
  margin-top: 0;
}

.change-item {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  border-left: 3px solid #dee2e6;
  background: #f8f9fa;
}

.change-item.new-feature {
  background: #e8f5e8;
  border-left-color: #28a745;
}

.change-item.bug-fix {
  background: #fce8e6;
  border-left-color: #dc3545;
}

.change-item.improvement {
  background: #fff3cd;
  border-left-color: #ffc107;
}

.change-item.app-update {
  background: #e8f4f8;
  border-left-color: #007bff;
}

.change-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.change-icon {
  font-size: 1.1em;
}

.change-type-label {
  font-size: 0.75em;
  font-weight: 600;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.change-description {
  margin: 0;
  color: #212529;
  line-height: 1.3;
  font-size: 0.7em;
}

/* Version separator */
.version-separator {
  margin: 40px 0;
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #e5e7eb 50%, transparent 100%);
  position: relative;
}

.version-separator::after {
  content: '✨';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fafbfc;
  padding: 8px;
  border-radius: 50%;
  font-size: 0.9em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.multiple-releases {
  margin-bottom: 20px;
}

.release-section {
  margin-bottom: 24px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #337ab7;
}

.release-section h4 {
  margin: 0 0 12px 0;
  color: #343a40;
  font-size: 1.1em;
}

.release-section .release-highlights {
  background: white;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

/* Priority indicators */
.priority-high {
  border-left-color: #dc3545;
}

.priority-medium {
  border-left-color: #ffc107;
}

.priority-low {
  border-left-color: #28a745;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .release-notes-content {
    max-height: 500px;
  }

  .all-release-notes {
    padding: 16px;
  }

  .release-section {
    margin-bottom: 24px;
  }

  .version-info,
  .version-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .latest-badge {
    margin-left: 0;
    align-self: flex-start;
  }

  .release-changes {
    padding: 16px;
  }

  .change-header {
    padding: 12px 16px 8px 16px;
  }

  .change-description {
    padding: 0 16px 16px 16px;
    font-size: 0.9em;
  }

  .change-icon {
    width: 28px;
    height: 28px;
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .version-badge {
    font-size: 0.8em;
    padding: 6px 12px;
  }

  .change-type-label {
    font-size: 0.7em;
    padding: 3px 8px;
  }

  .change-item:hover {
    transform: none;
  }
}

/* Modern Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .release-notes-modal {
    background: linear-gradient(135deg, #1a1b2e 0%, #16213e 100%) !important;
  }

  .release-notes-content {
    background: #0f1419;
  }

  .release-section {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
  }

  .release-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  }

  .version-info,
  .version-header {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
  }

  .release-date {
    color: #cbd5e1;
    background: #374151;
  }

  .change-item.new-feature {
    background: linear-gradient(135deg, #1a2e1a 0%, #2d4a2d 100%);
    border-color: #4ade80;
  }

  .change-item.bug-fix {
    background: linear-gradient(135deg, #2e1a1a 0%, #4a2d2d 100%);
    border-color: #f87171;
  }

  .change-item.improvement {
    background: linear-gradient(135deg, #2e261a 0%, #4a3d2d 100%);
    border-color: #fbbf24;
  }

  .change-item.app-update {
    background: linear-gradient(135deg, #1a242e 0%, #2d3a4a 100%);
    border-color: #60a5fa;
  }

  .change-icon {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
  }

  .change-type-label {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.1);
  }

  .change-description {
    color: #d1d5db;
  }

  .version-separator {
    background: linear-gradient(90deg, transparent 0%, #374151 50%, transparent 100%);
  }

  .version-separator::after {
    background: #0f1419;
  }
}