/* ====================================
   SUPPORT SYSTEM STYLES
   Portland Weird Aesthetic
   ==================================== */

/* Support Hub */
.support-hub {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

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

.support-header h1 {
  font-family: 'Courier New', monospace;
  font-size: 3rem;
  color: var(--bridge-orange, #FF6B35);
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
  margin-bottom: 0.5rem;
}

.support-header .tagline {
  font-size: 1.2rem;
  color: var(--forest-green, #2D5F3F);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.support-card {
  background: white;
  border: 3px solid var(--bridge-orange, #FF6B35);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 6px 6px 0 var(--tracksuit-teal, #00CED1),
              12px 12px 0 var(--tracksuit-purple, #9B59B6);
  transition: all 0.3s ease;
}

.support-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0 var(--tracksuit-teal, #00CED1),
              16px 16px 0 var(--tracksuit-purple, #9B59B6);
}

.support-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.support-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

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

.support-card h2 {
  font-family: 'Courier New', monospace;
  color: var(--pavement-dark, #2C3E50);
  margin-bottom: 0.5rem;
}

.support-count {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--bridge-orange, #FF6B35);
  margin: 0.5rem 0;
}

.support-desc {
  color: var(--rainy-gray, #6B7C7E);
}

/* Support Page Layout */
.support-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header h1 {
  font-family: 'Courier New', monospace;
  font-size: 2.5rem;
  color: var(--bridge-orange, #FF6B35);
}

.header-actions {
  display: flex;
  gap: 1rem;
}

/* Filter Bar */
.filter-bar {
  background: white;
  border: 2px solid var(--bridge-orange, #FF6B35);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.filter-form {
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-weight: bold;
  color: var(--pavement-dark, #2C3E50);
  font-size: 0.9rem;
}

.filter-select {
  padding: 0.5rem 1rem;
  border: 2px solid var(--forest-green, #2D5F3F);
  border-radius: 6px;
  background: white;
  font-size: 1rem;
  min-width: 150px;
}

/* Items List */
.items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.item-card {
  background: white;
  border: 2px solid var(--forest-green, #2D5F3F);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  box-shadow: 4px 4px 0 rgba(0, 206, 209, 0.3);
  transition: all 0.2s ease;
}

.item-card:hover {
  transform: translateX(4px);
  box-shadow: 6px 6px 0 rgba(0, 206, 209, 0.5);
}

.item-vote {
  flex-shrink: 0;
}

.vote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  background: white;
  border: 2px solid var(--forest-green, #2D5F3F);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 60px;
}

.vote-btn:hover {
  background: var(--misty-blue, #B8D4E3);
  transform: scale(1.05);
}

.vote-btn.voted {
  background: var(--bridge-orange, #FF6B35);
  border-color: var(--bridge-orange, #FF6B35);
  color: white;
}

.vote-icon {
  font-size: 1.5rem;
}

.vote-count {
  font-weight: bold;
  font-size: 1.2rem;
}

.item-content {
  flex-grow: 1;
}

.item-title {
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.item-title a {
  color: var(--pavement-dark, #2C3E50);
  text-decoration: none;
}

.item-title a:hover {
  color: var(--bridge-orange, #FF6B35);
  text-decoration: underline;
}

.item-description {
  color: var(--rainy-gray, #6B7C7E);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.item-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--rainy-gray, #6B7C7E);
  flex-wrap: wrap;
}

.item-status {
  flex-shrink: 0;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: var(--bridge-orange, #FF6B35);
  color: white;
}

.badge-secondary {
  background: var(--rainy-gray, #6B7C7E);
  color: white;
}

.badge-success {
  background: var(--forest-green, #2D5F3F);
  color: white;
}

.badge-danger {
  background: #dc3545;
  color: white;
}

.badge-warning {
  background: var(--finish-line, #FFD700);
  color: var(--pavement-dark, #2C3E50);
}

.badge-info {
  background: var(--tracksuit-teal, #00CED1);
  color: white;
}

/* Form Page */
.form-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.form-container {
  background: white;
  border: 3px solid var(--bridge-orange, #FF6B35);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 8px 8px 0 var(--tracksuit-teal, #00CED1);
}

.form-container h1 {
  font-family: 'Courier New', monospace;
  color: var(--bridge-orange, #FF6B35);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.form-subtitle {
  color: var(--forest-green, #2D5F3F);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.error-box {
  background: linear-gradient(135deg, #FFB6C1 0%, #FF69B4 100%);
  border: 2px dashed #dc3545;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.error-box h3 {
  color: #dc3545;
  margin-bottom: 0.75rem;
  font-family: 'Courier New', monospace;
}

.error-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.error-box li::before {
  content: "💔 ";
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-weight: bold;
  color: var(--pavement-dark, #2C3E50);
  font-size: 1rem;
}

.required {
  color: #dc3545;
}

.text-input,
.text-area,
.file-input {
  padding: 0.75rem 1rem;
  border: 2px solid var(--forest-green, #2D5F3F);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.text-input:focus,
.text-area:focus {
  outline: none;
  border-color: var(--bridge-orange, #FF6B35);
  box-shadow: inset 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.text-area {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

.field-help {
  font-size: 0.9rem;
  color: var(--rainy-gray, #6B7C7E);
  margin: 0;
}

.checkbox-field {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-field label {
  margin: 0;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
}

.btn-primary {
  background: linear-gradient(135deg, var(--bridge-orange, #FF6B35) 0%, var(--neon-pink, #FF10F0) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.btn-secondary {
  background: white;
  color: var(--pavement-dark, #2C3E50);
  border: 2px solid var(--forest-green, #2D5F3F);
}

.btn-secondary:hover {
  background: var(--misty-blue, #B8D4E3);
}

/* Detail Page */
.support-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-areas:
    "header header"
    "meta meta"
    "content sidebar"
    "actions actions";
  gap: 2rem;
}

.detail-header {
  grid-area: header;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.detail-header h1 {
  font-family: 'Courier New', monospace;
  color: var(--bridge-orange, #FF6B35);
  font-size: 2.5rem;
  flex: 1;
}

.detail-meta {
  grid-area: meta;
  display: flex;
  gap: 1.5rem;
  font-size: 1rem;
  color: var(--rainy-gray, #6B7C7E);
  flex-wrap: wrap;
}

.detail-content {
  grid-area: content;
  background: white;
  border: 2px solid var(--forest-green, #2D5F3F);
  border-radius: 10px;
  padding: 2rem;
}

.detail-content h3 {
  font-family: 'Courier New', monospace;
  color: var(--pavement-dark, #2C3E50);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.detail-content h3:first-child {
  margin-top: 0;
}

.description-text {
  line-height: 1.8;
  color: var(--pavement-dark, #2C3E50);
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.image-item {
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--forest-green, #2D5F3F);
}

.bug-image {
  width: 100%;
  height: auto;
  display: block;
}

.admin-response {
  background: linear-gradient(135deg, var(--misty-blue, #B8D4E3) 0%, rgba(184, 212, 227, 0.3) 100%);
  border-left: 4px solid var(--bridge-orange, #FF6B35);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.admin-response h3 {
  margin-top: 0 !important;
  color: var(--bridge-orange, #FF6B35);
}

.response-text {
  color: var(--pavement-dark, #2C3E50);
  line-height: 1.8;
}

.detail-sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vote-box,
.info-box {
  background: white;
  border: 2px solid var(--forest-green, #2D5F3F);
  border-radius: 10px;
  padding: 1.5rem;
}

.vote-box h4,
.info-box h4 {
  font-family: 'Courier New', monospace;
  color: var(--pavement-dark, #2C3E50);
  margin-bottom: 1rem;
  margin-top: 0;
}

.vote-btn-large {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: white;
  border: 3px solid var(--forest-green, #2D5F3F);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vote-btn-large:hover {
  background: var(--misty-blue, #B8D4E3);
  transform: scale(1.05);
}

.vote-btn-large.voted {
  background: var(--bridge-orange, #FF6B35);
  border-color: var(--bridge-orange, #FF6B35);
  color: white;
}

.vote-btn-large .vote-icon {
  font-size: 2rem;
}

.vote-btn-large .vote-count {
  font-size: 2rem;
  font-weight: bold;
}

.vote-btn-large .vote-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-box dl {
  margin: 0;
}

.info-box dt {
  font-weight: bold;
  color: var(--pavement-dark, #2C3E50);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.info-box dt:first-child {
  margin-top: 0;
}

.info-box dd {
  margin: 0.25rem 0 0 0;
  color: var(--rainy-gray, #6B7C7E);
}

.detail-actions {
  grid-area: actions;
}

/* Help Guides */
.help-guide-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.help-guide-header {
  margin-bottom: 2rem;
}

.help-guide-header h1 {
  font-family: 'Courier New', monospace;
  color: var(--bridge-orange, #FF6B35);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.category-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--forest-green, #2D5F3F);
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

.help-guide-content {
  background: white;
  border: 2px solid var(--forest-green, #2D5F3F);
  border-radius: 10px;
  padding: 2.5rem;
  line-height: 1.8;
  color: var(--pavement-dark, #2C3E50);
  margin-bottom: 2rem;
}

.help-guide-actions {
  margin-top: 2rem;
}

.help-category {
  margin-bottom: 2.5rem;
}

.help-category h2 {
  font-family: 'Courier New', monospace;
  color: var(--bridge-orange, #FF6B35);
  margin-bottom: 1rem;
}

.help-guides-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.help-guide-link {
  padding: 1rem 1.5rem;
  background: white;
  border: 2px solid var(--forest-green, #2D5F3F);
  border-radius: 8px;
  text-decoration: none;
  color: var(--pavement-dark, #2C3E50);
  transition: all 0.2s ease;
  display: block;
}

.help-guide-link:hover {
  background: var(--misty-blue, #B8D4E3);
  border-color: var(--bridge-orange, #FF6B35);
  transform: translateX(5px);
}

/* Floating Get Help Button */
.floating-help-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--bridge-orange, #FF6B35) 0%, var(--neon-pink, #FF10F0) 100%);
  color: white;
  border: none;
  border-radius: 28px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  text-decoration: none;
  font-family: 'Courier New', monospace;
}

.floating-help-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.floating-help-btn:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .support-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
  }

  .filter-select {
    width: 100%;
  }

  .item-card {
    flex-direction: column;
  }

  .support-detail {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "meta"
      "sidebar"
      "content"
      "actions";
  }

  .detail-header {
    flex-direction: column;
  }

  .floating-help-btn {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    bottom: 16px;
    right: 16px;
  }

  .floating-help-btn .btn-text {
    display: none;
  }
}

/* Admin Navigation - Compact */
.admin-nav-wrapper {
  text-align: center;
  margin-bottom: 1.5rem;
}

.admin-nav {
  background: var(--pavement-dark, #2C3E50);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-nav-label {
  font-family: 'Courier New', monospace;
  color: var(--bridge-orange, #FF6B35);
  font-weight: bold;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.admin-nav-link {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
  border-radius: 4px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  font-family: 'Courier New', monospace;
}

.admin-nav-link:hover {
  background: rgba(255, 107, 53, 0.3);
  border-color: var(--bridge-orange, #FF6B35);
  color: white;
}

.admin-nav-link.active {
  background: var(--bridge-orange, #FF6B35);
  color: white;
}

/* Comparison Table for Run Edit Suggestions */
.comparison-section {
  background: white;
  border: 2px solid var(--forest-green, #2D5F3F);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.comparison-section h2 {
  font-family: 'Courier New', monospace;
  color: var(--bridge-orange, #FF6B35);
  margin-bottom: 1.5rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.comparison-table thead {
  background: var(--pavement-dark, #2C3E50);
  color: white;
}

.comparison-table th {
  padding: 1rem;
  text-align: left;
  font-family: 'Courier New', monospace;
  font-weight: bold;
}

.comparison-table td {
  padding: 1rem;
  border: 1px solid #ddd;
  vertical-align: top;
}

.comparison-table tbody tr.field-changed {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 16, 240, 0.1) 100%);
  border-left: 4px solid var(--bridge-orange, #FF6B35);
}

.comparison-table tbody tr.field-changed td:first-child {
  font-weight: bold;
  color: var(--bridge-orange, #FF6B35);
}

.comparison-table tbody tr.field-unchanged {
  opacity: 0.6;
}

.comparison-table tbody tr.field-unchanged td:first-child {
  color: var(--rainy-gray, #6B7C7E);
}

.admin-actions-section {
  background: white;
  border: 2px solid var(--forest-green, #2D5F3F);
  border-radius: 10px;
  padding: 2rem;
  margin-top: 2rem;
}

.admin-actions-section h3 {
  font-family: 'Courier New', monospace;
  color: var(--pavement-dark, #2C3E50);
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* Distance fields in forms */
.distance-field {
  margin-bottom: 0.5rem;
}

/* Print */
@media print {
  .floating-help-btn {
    display: none !important;
  }

  .admin-nav {
    display: none !important;
  }
}

/* Responsive comparison table */
@media (max-width: 768px) {
  .comparison-table {
    font-size: 0.9rem;
  }

  .comparison-table td,
  .comparison-table th {
    padding: 0.75rem 0.5rem;
  }
}
