/* Release Notes Extended Styles - Specific to guides/release-notes.html */

/* Specific back-link overrides for guides folder */
.back-link {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: #ec0000;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 14px;
  white-space: nowrap;
  z-index: 10;
  text-decoration: none;
}

.back-link:hover {
  background: #d40000;
}

/* Enhanced release header with interactive features */
.release-header {
  cursor: pointer;
  transition: all 0.3s ease;
}

.release-header:hover {
  background: linear-gradient(135deg, #d91a20 0%, #c8181e 100%);
}

.release-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.release-title-section {
  flex: 1;
}

.expand-icon {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  margin-left: 1rem;
  transition: transform 0.3s ease;
}

/* Enhanced release content with expand/collapse functionality */
.release-content {
  transition: all 0.3s ease;
  overflow: hidden;
}

.release-content.expanded {
  padding: 2rem;
  max-height: none;
  opacity: 1;
}

.release-content.collapsed {
  padding: 0 2rem;
  max-height: 0;
  opacity: 0;
}

/* Release actions section */
.release-actions {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
  text-align: right;
}

.copy-link-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.copy-link-btn:hover {
  background: #0056b3;
}

/* Enhanced change items with Portuguese language support */
.change-item.melhoria {
  border-left-color: #ffc107;
}

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

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

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

/* JSON examples with copy functionality */
.example-json {
  margin-top: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: white;
}

.json-header {
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #495057;
}

.copy-json-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.copy-json-btn:hover {
  background: #0056b3;
}

.example-json pre {
  margin: 0;
  padding: 1rem;
  background: #f8f9fa;
  overflow-x: auto;
}

.example-json code.json {
  color: #495057;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .header-content {
    justify-content: space-between;
  }

  .logo {
    justify-content: center;
  }

  /* Grid layout fixes for mobile */
  .example-item div[style*="grid-template-columns"] {
    display: block !important;
  }

  .example-item div[style*="grid-template-columns"] > div:first-child {
    margin-bottom: 1rem;
  }
}

/* Toast animations for interactive features */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Toast notification styles for copy functions */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
  animation: slideIn 0.3s ease;
}

.toast-notification.success {
  background: #28a745;
}

.toast-notification.error {
  background: #dc3545;
}

.toast-notification.hiding {
  animation: slideOut 0.3s ease;
}