/* Release Notes Page Styles */

:root {
  --primary-color: #ffc61e;
  --primary-hover: #ffd043;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-sidebar: #f8f9ff;
  --border-color: #e5e7eb;
  --sidebar-width: 280px;
}

/* Mobile Menu Button (Hidden on desktop) */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 90px;
  left: 1rem;
  z-index: 999;
  background: var(--primary-color);
  color: #1f2937;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.mobile-menu-btn svg {
  width: 20px;
  height: 20px;
}

/* Sidebar Overlay (Hidden on desktop) */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sidebar-overlay.overlay-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Sidebar Close Button (Hidden on desktop) */
.sidebar-close-btn {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  z-index: 1001;
}

.sidebar-close-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Container Layout */
.release-notes-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  max-width: 1440px;
  margin: 100px auto;
  min-height: calc(100vh - 80px);
  gap: 0;
}

/* Sidebar Styles */
.release-notes-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
}

.sidebar-header {
  margin-bottom: 2rem;

}
.sidebar-header h1{
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-header h2 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.sidebar-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.sidebar-section {
  margin-top: 2rem;
}

.sidebar-section h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* Release Links in Sidebar */
.release-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.release-link {
  display: block;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.release-link:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.release-link.active {
  background-color: var(--bg-secondary);
  color: var(--primary-color);
  font-weight: 600;
  border-left-color: var(--primary-color);
}

/* Main Content Styles */
.release-notes-content {
  padding: 3rem 4rem;
  background-color: var(--bg-primary);
  max-width: 900px;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* @media (max-width: 768px) {
  .page-title{
    display: none;
  }
} */

.rss-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

.rss-link:hover {
  background-color: var(--bg-secondary);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Release Section */
.release-section {
  margin-bottom: 4rem;
  scroll-margin-top: 100px;
  padding: 0;
}

.release-header {
  margin-bottom: 2rem;
}

.release-week {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* HTML Content Wrapper */
.release-html-content {
  color: var(--text-secondary);
  line-height: 1.75;
}

.release-html-content h3 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
}

.release-html-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.release-html-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.release-html-content li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.release-html-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 1.5rem;
  line-height: 1.5rem;
}

.release-html-content strong {
  font-weight: 600;
  color: var(--text-primary);
}

.release-html-content p {
  margin-bottom: 1rem;
}

.release-html-content a {
  color: var(--primary-color);
  text-decoration: none;
}

.release-html-content a:hover {
  text-decoration: underline;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-state p {
  font-size: 1.125rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .release-notes-container {
    grid-template-columns: 240px 1fr;
  }
  
  .release-notes-content {
    padding: 2rem 3rem;
  }
}

/* Tablet and Mobile Styles */
@media (max-width: 768px) {
  /* Show mobile menu button */
  .mobile-menu-btn {
    display: flex;
  }
  
  /* Show overlay when needed */
  .sidebar-overlay {
    display: block;
  }
  
  /* Show close button in sidebar */
  .sidebar-close-btn {
    display: block;
  }
  
  /* Change container to single column */
  .release-notes-container {
    grid-template-columns: 1fr;
  }
  
  /* Sidebar slides in from left */
  .release-notes-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    max-width: 85vw;
    height: 100vh;
    max-height: 100vh;
    z-index: 10000;
    border-right: 1px solid var(--border-color);
    background-color: var(--bg-sidebar);
    
    /* Slide animation */
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Scrolling */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    
    /* Add shadow when open */
    box-shadow: none;
  }
  
  /* Sidebar open state */
  .release-notes-sidebar.sidebar-open {
    transform: translateX(0);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
  }
  
  /* Adjust sidebar header for close button */
  .sidebar-header {
    padding-top: 3rem; /* Space for close button */
  }
  
  /* Main content takes full width */
  .release-notes-content {
    padding: 2rem 1.5rem;
    margin-top: 60px; /* Space for mobile menu button */
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  /* Adjust content header */
  .content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .mobile-menu-btn {
    top: 90px;
    left: -0.25rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
  }
  
  .mobile-menu-btn span {
    display: none; /* Hide "Menu" text on very small screens */
  }
  
  .release-notes-sidebar {
    max-width: 90vw;
  }
  
  .release-notes-content {
    padding: 1.5rem 1rem;
    margin-top: 50px;
  }
  
  .page-title {
    font-size: 1.75rem;
  }
  
  .content-header {
    margin-bottom: 1.5rem;
  }
  
  /* Smaller release sections */
  .release-section {
    margin-bottom: 3rem;
  }
  
  .release-html-content h3 {
    font-size: 1.5rem;
  }
  
  .release-html-content h4 {
    font-size: 1.125rem;
  }
  
  .release-html-content li {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
  }
}

/* Smooth scrollbar for sidebar */
.release-notes-sidebar::-webkit-scrollbar {
  width: 6px;
}

.release-notes-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.release-notes-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.release-notes-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* Animations */
@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

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

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .release-notes-sidebar,
  .sidebar-overlay,
  .mobile-menu-btn {
    transition: none !important;
    animation: none !important;
  }
}

/* Focus styles for keyboard navigation */
.mobile-menu-btn:focus,
.sidebar-close-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.release-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
}

