/**
 * Support Account Page Styles
 * 
 * Specific styles for the Support page
 * Uses design tokens from core variables
 * 
 * @since 3.0.0
 */

/* ============================================
   LICENSE SECTION
   ============================================ */

.prorank-license-status {
  background: var(--prorank-card-bg);
  border-radius: var(--prorank-radius-lg);
  padding: var(--prorank-spacing-xl);
  margin-bottom: var(--prorank-spacing-lg);
}

.prorank-license-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--prorank-spacing-lg);
}

.prorank-license-info h3 {
  margin: 0 0 var(--prorank-spacing-sm) 0;
  color: var(--prorank-text-primary);
  font-size: var(--prorank-font-lg);
  font-weight: var(--prorank-font-semibold);
}

.prorank-tier-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--prorank-radius-sm);
  font-size: var(--prorank-font-xs);
  font-weight: var(--prorank-font-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prorank-license-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--prorank-spacing-md);
  margin-bottom: var(--prorank-spacing-lg);
}

.prorank-license-detail {
  display: flex;
  flex-direction: column;
  gap: var(--prorank-spacing-xs);
}

.prorank-license-detail-label {
  font-size: var(--prorank-font-sm);
  color: var(--prorank-text-secondary);
  font-weight: var(--prorank-font-medium);
}

.prorank-license-detail-value {
  font-size: var(--prorank-font-base);
  color: var(--prorank-text-primary);
  font-weight: var(--prorank-font-semibold);
}

/* ============================================
   FEEDBACK FORM
   ============================================ */

.prorank-feedback-section {
  margin-top: var(--prorank-spacing-xl);
}

.prorank-feedback-form,
.prorank-form {
  padding: var(--prorank-spacing-xl);
}

.prorank-radio-group {
  padding: var(--prorank-spacing-md);
  background: var(--prorank-bg-secondary);
  border-radius: var(--prorank-radius-md);
  border: 1px solid var(--prorank-border);
}

.prorank-form-field {
  margin-bottom: var(--prorank-spacing-lg);
}

.prorank-form-field label {
  display: block;
  margin-bottom: var(--prorank-spacing-sm);
  font-size: var(--prorank-font-sm);
  font-weight: var(--prorank-font-semibold);
  color: var(--prorank-text-primary);
}

.prorank-form-field .components-base-control__help {
  margin-top: var(--prorank-spacing-xs);
  font-size: var(--prorank-font-xs);
  color: var(--prorank-text-muted);
}

.prorank-error-message {
  display: block;
  margin-top: var(--prorank-spacing-xs);
  color: var(--prorank-danger);
  font-size: var(--prorank-font-xs);
}

.prorank-form-actions {
  padding-top: var(--prorank-spacing-md);
  border-top: 1px solid var(--prorank-border);
  display: flex;
  justify-content: flex-start;
  gap: var(--prorank-spacing-md);
  align-items: center;
}

.prorank-form-error-summary {
  display: flex;
  align-items: center;
  color: var(--prorank-danger);
  font-size: var(--prorank-font-sm);
}

/* Radio control styling */
.prorank-feedback-form .components-radio-control {
  background: var(--prorank-bg-secondary);
  padding: var(--prorank-spacing-md);
  border-radius: var(--prorank-radius-md);
  border: 1px solid var(--prorank-border);
}

.prorank-feedback-form .components-radio-control__option {
  margin-bottom: var(--prorank-spacing-sm);
}

.prorank-feedback-form .components-radio-control__option:last-child {
  margin-bottom: 0;
}

/* ============================================
   FEEDBACK LIST
   ============================================ */

.prorank-feedback-list {
  padding: var(--prorank-spacing-lg);
}

.prorank-feedback-item {
  padding: var(--prorank-spacing-md);
  margin-bottom: var(--prorank-spacing-md);
  background: var(--prorank-bg-secondary);
  border-radius: var(--prorank-radius-md);
  border: 1px solid var(--prorank-border);
  transition: all 0.2s ease;
  cursor: pointer;
}

.prorank-feedback-item:hover {
  border-color: var(--prorank-primary);
  box-shadow: var(--prorank-shadow-sm);
}

.prorank-feedback-item:last-child {
  margin-bottom: 0;
}

.prorank-feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--prorank-spacing-md);
}

.prorank-feedback-title {
  font-size: var(--prorank-font-base);
  font-weight: var(--prorank-font-semibold);
  color: var(--prorank-text-primary);
  margin: 0 0 var(--prorank-spacing-sm) 0;
}

.prorank-feedback-message {
  font-size: var(--prorank-font-sm);
  color: var(--prorank-text-secondary);
  margin-bottom: var(--prorank-spacing-md);
  line-height: 1.5;
  max-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.prorank-feedback-badges {
  display: flex;
  gap: var(--prorank-spacing-sm);
  align-items: center;
}

.prorank-feedback-date {
  font-size: var(--prorank-font-xs);
  color: var(--prorank-text-muted);
}

.prorank-feedback-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prorank-feedback-response-link {
  font-size: var(--prorank-font-xs);
  color: var(--prorank-primary);
  text-decoration: none;
}

.prorank-feedback-response-link:hover {
  text-decoration: underline;
}

/* Feedback type badges */
.prorank-feedback-type-badge {
  padding: 4px 8px;
  border-radius: var(--prorank-radius-sm);
  font-size: 11px;
  font-weight: var(--prorank-font-semibold);
  text-transform: uppercase;
}

.prorank-feedback-type-badge--bug {
  background: #fee2e2;
  color: #dc2626;
}

.prorank-feedback-type-badge--feature {
  background: #dbeafe;
  color: #2563eb;
}

.prorank-feedback-type-badge--support {
  background: #fef3c7;
  color: #d97706;
}

.prorank-feedback-type-badge--general {
  background: #f3f4f6;
  color: #6b7280;
}

/* Priority badges */
.prorank-feedback-priority-badge {
  padding: 4px 8px;
  border-radius: var(--prorank-radius-sm);
  font-size: 11px;
  font-weight: var(--prorank-font-medium);
}

.prorank-feedback-priority-badge--high {
  background: #fef2f2;
  color: #ef4444;
}

.prorank-feedback-priority-badge--medium {
  background: #fff7ed;
  color: #f97316;
}

.prorank-feedback-priority-badge--low {
  background: #f9fafb;
  color: #6b7280;
}

/* Status badges */
.prorank-feedback-status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: var(--prorank-font-medium);
}

.prorank-feedback-status-badge--resolved {
  background: #dcfce7;
  color: #16a34a;
}

.prorank-feedback-status-badge--in_progress {
  background: #fef3c7;
  color: #d97706;
}

.prorank-feedback-status-badge--reviewed {
  background: #dbeafe;
  color: #2563eb;
}

.prorank-feedback-status-badge--pending {
  background: #f3f4f6;
  color: #6b7280;
}

/* ============================================
   CHANGELOG SECTION
   ============================================ */

.prorank-changelog-entries {
  margin-top: var(--prorank-spacing-lg);
}

.prorank-changelog-entry {
  background: var(--prorank-card-bg);
  border-radius: var(--prorank-radius-lg);
  padding: var(--prorank-spacing-lg);
  margin-bottom: var(--prorank-spacing-lg);
  border: 1px solid var(--prorank-border);
}

.prorank-changelog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--prorank-spacing-md);
  padding-bottom: var(--prorank-spacing-md);
  border-bottom: 1px solid var(--prorank-border);
}

.prorank-changelog-version {
  font-size: var(--prorank-font-lg);
  font-weight: var(--prorank-font-semibold);
  color: var(--prorank-text-primary);
  display: flex;
  align-items: center;
  gap: var(--prorank-spacing-sm);
}

.prorank-changelog-date {
  font-size: var(--prorank-font-sm);
  color: var(--prorank-text-muted);
}

.prorank-changelog-highlights {
  margin-bottom: var(--prorank-spacing-lg);
  padding: var(--prorank-spacing-md);
  background: var(--prorank-bg-secondary);
  border-radius: var(--prorank-radius-md);
}

.prorank-changelog-section {
  margin-bottom: var(--prorank-spacing-md);
}

.prorank-changelog-section:last-child {
  margin-bottom: 0;
}

.prorank-changelog-section-title {
  font-size: var(--prorank-font-sm);
  font-weight: var(--prorank-font-semibold);
  color: var(--prorank-text-secondary);
  margin-bottom: var(--prorank-spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prorank-changelog-changes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.prorank-changelog-changes li {
  position: relative;
  padding-left: var(--prorank-spacing-lg);
  margin-bottom: var(--prorank-spacing-sm);
  font-size: var(--prorank-font-sm);
  color: var(--prorank-text-primary);
  line-height: 1.6;
}

.prorank-changelog-changes li:before {
  content: '•';
  position: absolute;
  left: var(--prorank-spacing-sm);
  color: var(--prorank-primary);
  font-weight: bold;
}

.prorank-changelog-changes--highlights li {
  font-size: var(--prorank-font-base);
  font-weight: var(--prorank-font-medium);
}

.prorank-changelog-actions {
  margin-top: var(--prorank-spacing-xl);
  display: flex;
  gap: var(--prorank-spacing-md);
  justify-content: center;
}

/* ============================================
   ADVANCED SETTINGS
   ============================================ */

.prorank-debug-settings,
.prorank-performance-settings,
.prorank-security-settings,
.prorank-features-settings,
.prorank-debug-info,
.prorank-import-export {
  margin-bottom: var(--prorank-spacing-xl);
}

.prorank-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--prorank-spacing-lg);
  padding: var(--prorank-spacing-md);
  background: var(--prorank-bg-secondary);
  border-radius: var(--prorank-radius-md);
}

.prorank-button-group {
  display: flex;
  gap: var(--prorank-spacing-md);
  flex-wrap: wrap;
  margin-top: var(--prorank-spacing-md);
}

.prorank-import-wrapper {
  position: relative;
  display: inline-block;
}

.prorank-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.prorank-section-description {
  display: block;
  margin-bottom: var(--prorank-spacing-md);
  font-size: var(--prorank-font-sm);
  color: var(--prorank-text-secondary);
  line-height: 1.5;
}

/* ============================================
   QUICK LINKS & HELP ACTIONS
   ============================================ */

.prorank-quick-links {
  display: flex;
  gap: var(--prorank-spacing-lg);
  margin-top: var(--prorank-spacing-lg);
  flex-wrap: wrap;
}

.prorank-quick-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--prorank-spacing-xs);
  color: var(--prorank-primary);
  text-decoration: none;
  font-size: var(--prorank-font-sm);
  font-weight: var(--prorank-font-medium);
  transition: color 0.2s ease;
}

.prorank-quick-links a:hover {
  color: var(--prorank-primary-dark);
  text-decoration: underline;
}

.prorank-help-actions {
  display: flex;
  gap: var(--prorank-spacing-md);
  margin-top: var(--prorank-spacing-lg);
  flex-wrap: wrap;
}

/* ============================================
   EMPTY STATES
   ============================================ */

.prorank-empty-state {
  text-align: center;
  padding: var(--prorank-spacing-xxl) var(--prorank-spacing-lg);
}

.prorank-empty-state-title {
  font-size: var(--prorank-font-xl);
  font-weight: var(--prorank-font-semibold);
  color: var(--prorank-text-primary);
  margin-bottom: var(--prorank-spacing-sm);
}

.prorank-empty-state-description {
  font-size: var(--prorank-font-base);
  color: var(--prorank-text-secondary);
  margin-bottom: var(--prorank-spacing-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   LOADING STATES
   ============================================ */

.prorank-loading-state {
  display: flex;
  align-items: center;
  gap: var(--prorank-spacing-md);
  padding: var(--prorank-spacing-lg);
  justify-content: center;
}

.prorank-loading-text {
  font-size: var(--prorank-font-sm);
  color: var(--prorank-text-secondary);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  .prorank-license-details {
    grid-template-columns: 1fr;
  }
  
  .prorank-info-grid {
    grid-template-columns: 1fr;
  }
  
  .prorank-changelog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--prorank-spacing-sm);
  }
  
  .prorank-feedback-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--prorank-spacing-sm);
  }
  
  .prorank-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .prorank-button-group {
    flex-direction: column;
  }
  
  .prorank-button-group .prorank-button {
    width: 100%;
  }
}