/* Release Notes Specific Styles */

/* Override header color for release notes */
.header {
  background: linear-gradient(135deg, #ee1c25 0%, #d91a20 100%);
  box-shadow: 0 4px 12px rgba(238, 28, 37, 0.15);
}

/* Back link specific styles */
.back-link {
  color: white;
  text-decoration: none;
  background: rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.3s ease;
  position: absolute;
  left: 2rem;
}

.back-link:hover {
  background: rgba(255,255,255,0.3);
}

/* Logo styles for release notes */
.logo img {
  height: 40px;
  width: auto;
}

/* Main Content */
.main-content {
  margin-top: 90px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  color: #ee1c25;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-header p {
  color: #666;
  font-size: 1.1rem;
}

/* Release Cards */
.release-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  overflow: hidden;
  border-left: 4px solid #ee1c25;
}

.release-header {
  background: linear-gradient(135deg, #ee1c25 0%, #d91a20 100%);
  color: white;
  padding: 1.5rem;
}

.release-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.release-meta span {
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.release-description {
  font-size: 1rem;
  line-height: 1.6;
}

.release-content {
  padding: 2rem;
}

.context-section {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid #007bff;
}

.context-section h3 {
  color: #007bff;
  margin-bottom: 1rem;
}

.affected-apis {
  margin-bottom: 2rem;
}

.api-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.api-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.changes-section {
  margin-bottom: 2rem;
}

.change-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid #28a745;
}

.change-item.enhancement {
  border-left-color: #ffc107;
}

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

.change-item.breaking {
  border-left-color: #dc3545;
}

.change-type {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.change-type.enhancement {
  background: #fff3cd;
  color: #856404;
}

.change-type.new {
  background: #d4edda;
  color: #155724;
}

.change-type.breaking {
  background: #f8d7da;
  color: #721c24;
}

.change-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.change-details {
  margin-top: 1rem;
}

.change-details ul {
  list-style-type: none;
  padding-left: 0;
}

.change-details li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.change-details li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #ee1c25;
  font-weight: bold;
}

/* Examples Section */
.examples-section {
  margin-bottom: 2rem;
}

.example-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #dee2e6;
}

.example-title {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.example-code {
  background: #2d3748;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  margin-top: 0.5rem;
}

.method-badge {
  background: #28a745;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

/* Parameters Table */
.parameters-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.parameters-table th {
  background: #ee1c25;
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.parameters-table td {
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.parameters-table tr:last-child td {
  border-bottom: none;
}

.parameters-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* Responsive overrides */
@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }

  .release-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .api-badges {
    justify-content: center;
  }
}