/**
 * Support Page Styles
 * Modern, professional design matching Analytics Hub
 */

/* Page Layout */
.prorank-support-page {
  --support-primary: #3b82f6;
  --support-secondary: #10b981;
  --support-warning: #f59e0b;
  --support-danger: #ef4444;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --card-hover-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  max-width: 1600px;
  margin: 0 auto;
}

/* Header Styles */
.prorank-support-page .prorank-page-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e0e0e0;
  margin: -20px -20px 30px;
  padding: 40px;
}

.prorank-support-page h1 {
  font-size: 32px;
  font-weight: 600;
  color: #1d2327;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.prorank-support-page h1::before {
  content: '🛟';
  font-size: 36px;
}

.prorank-support-page .prorank-page-subtitle {
  font-size: 16px;
  color: #646970;
  margin: 0;
  max-width: 800px;
}

/* Tab Panel Customization */
.prorank-support-tabs .components-tab-panel__tabs {
  background: white;
  border-radius: 8px;
  padding: 4px;
  box-shadow: inset 0 0 0 1px #e0e0e0;
  margin-bottom: 30px;
}

.prorank-support-tabs .components-tab-panel__tabs button {
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 500;
  color: #646970;
  transition: all 0.2s ease;
}

.prorank-support-tabs .components-tab-panel__tabs button.is-active {
  background: var(--support-primary);
  color: white;
  box-shadow: 0 2px 4px rgba(115, 102, 240, 0.3);
}

.prorank-support-tabs .components-tab-panel__tabs button:hover:not(.is-active) {
  background: #f3f4f6;
  color: #1d2327;
}

/* Section Headers */
.prorank-section-header {
  margin-bottom: 30px;
}

.prorank-section-title {
  font-size: 24px;
  font-weight: 600;
  color: #1d2327;
  margin: 0 0 8px;
}

.prorank-section-description {
  font-size: 16px;
  color: #646970;
  margin: 0;
}

/* Modern Grid */
.prorank-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* Modern Card Design */
.prorank-support-page .components-card {
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  overflow: hidden;
}

.prorank-support-page .components-card:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-2px);
  border-color: #d0d0d0;
}

.prorank-card--modern {
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.prorank-card--modern:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-2px);
  border-color: #d0d0d0;
}

/* Full Width Card */
.prorank-card--full-width {
  grid-column: 1 / -1;
  margin-top: 20px;
}

/* Search Card */
.prorank-card--search {
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

/* Card Header */
.prorank-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.prorank-card-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #1d2327;
}

.prorank-card-description {
  color: #646970;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* License Status Box */
.license-status-box {
  background: linear-gradient(135deg, #f0f6fc 0%, #e8f0fe 100%);
  border: 1px solid #d3e3fd;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.status-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.status-row:last-child {
  border-bottom: none;
}

.status-row .label {
  font-weight: 600;
  color: #646970;
  min-width: 120px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-row .value {
  font-size: 16px;
  color: #1d2327;
}

.status-row .value.status {
  font-weight: 700;
  color: var(--support-secondary);
}

.status-row .value.tier {
  font-weight: 700;
  color: var(--support-primary);
  text-transform: capitalize;
}

/* Status Badges */
.prorank-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.prorank-status--active {
  background: #e6f4ea;
  color: var(--support-secondary);
}

.prorank-status--inactive {
  background: #fce8e6;
  color: var(--support-danger);
}

.prorank-status--warning {
  background: #fef7e0;
  color: var(--support-warning);
}

/* Documentation Links */
.documentation-links {
  display: grid;
  gap: 16px;
}

.doc-item {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.doc-item:hover {
  background: #f0f6fc;
  border-color: var(--support-primary);
  transform: translateX(4px);
}

.doc-item a {
  font-size: 16px;
  font-weight: 600;
  color: var(--support-primary);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.doc-item p {
  margin: 0;
  color: #646970;
  font-size: 14px;
}

/* Video Tutorials */
.video-tutorials {
  margin-top: 24px;
}

.video-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.video-item:hover {
  background: #f0f6fc;
  transform: translateX(4px);
}

.video-item a {
  color: var(--support-primary);
  text-decoration: none;
  font-weight: 500;
}

.video-item .duration {
  color: #646970;
  font-size: 14px;
}

/* Quick Links */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.quick-links .components-button {
  padding: 8px 16px;
  border-radius: 6px;
  background: #f0f6fc;
  color: var(--support-primary);
  border: 1px solid #d3e3fd;
  text-decoration: none;
}

.quick-links .components-button:hover {
  background: var(--support-primary);
  color: white;
  border-color: var(--support-primary);
}

/* Feedback Tab */
.feature-requests {
  display: grid;
  gap: 16px;
}

.request-item {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.2s ease;
}

.request-item:hover {
  border-color: var(--support-primary);
  box-shadow: var(--card-shadow);
}

.request-item h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #1d2327;
}

.request-item p {
  margin: 0 0 12px 0;
  color: #646970;
  font-size: 14px;
}

.request-item .votes {
  color: var(--support-primary);
  font-weight: 600;
  font-size: 14px;
}

/* Contact Methods */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.method {
  text-align: center;
  padding: 24px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.method:hover {
  border-color: var(--support-primary);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

.method h4 {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: #1d2327;
}

.method p {
  margin: 0 0 16px 0;
  color: #646970;
  font-size: 14px;
}

/* Changelog Styles */
.current-version {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #f0f6fc 0%, #e8f0fe 100%);
  border-radius: 8px;
  margin-bottom: 24px;
}

.version-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--support-primary);
}

.build-info {
  color: #646970;
  font-size: 14px;
}

.release-card {
  margin-bottom: 24px;
}

.release-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.release-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.version-badge {
  font-size: 12px;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--support-primary);
}

.release-date {
  color: #646970;
  font-size: 14px;
}

.release-highlights {
  background: #f0f6fc;
  border-left: 4px solid var(--support-primary);
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 0 8px 8px 0;
}

.release-highlights h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #1d2327;
}

.change-section {
  margin-bottom: 24px;
}

.change-section h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #1d2327;
}

.change-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.change-section li {
  margin-bottom: 8px;
  padding-left: 28px;
  position: relative;
  font-size: 14px;
  color: #646970;
}

.change-icon {
  position: absolute;
  left: 0;
  font-weight: 700;
  width: 20px;
}

.change-icon.added {
  color: #10b981;
}

.change-icon.improved {
  color: #3b82f6;
}

.change-icon.fixed {
  color: #f59e0b;
}

.change-icon.removed {
  color: #ef4444;
}

/* Settings Actions */
.settings-actions {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.prorank-settings-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Large Button */
.prorank-button--large {
  padding: 12px 24px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

/* Advanced Settings Warning */
.advanced-warning {
  background: #fef3f2;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

/* Import/Export Buttons */
.import-export-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.import-button-wrapper input[type="file"] {
  display: none;
}

/* Podcast Tips */
.podcast-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.tip {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.2s ease;
}

.tip:hover {
  border-color: var(--support-primary);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.tip h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: var(--support-primary);
}

.tip p {
  margin: 0;
  color: #646970;
  font-size: 14px;
  line-height: 1.6;
}

/* Form Enhancements */
.prorank-support-page .components-text-control__input {
  border-radius: 4px;
  border-color: #dcdcde;
  padding: 8px 12px;
}

.prorank-support-page .components-text-control__input:focus {
  border-color: var(--support-primary);
  box-shadow: 0 0 0 1px var(--support-primary);
}

/* Buttons */
.prorank-support-page .components-button.is-primary {
  background: var(--support-primary);
  border-color: var(--support-primary);
}

.prorank-support-page .components-button.is-primary:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

/* Dark Mode Support */
[data-theme="dark"] .prorank-support-page,
.prorank-dark-theme .prorank-support-page {
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --card-hover-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .prorank-support-page .prorank-page-header,
.prorank-dark-theme .prorank-support-page .prorank-page-header {
  background: linear-gradient(135deg, #1d2327 0%, #2c3338 100%);
  border-bottom-color: #40464d;
}

[data-theme="dark"] .prorank-support-page h1,
[data-theme="dark"] .prorank-section-title,
.prorank-dark-theme .prorank-support-page h1,
.prorank-dark-theme .prorank-section-title {
  color: #f0f0f1;
}

[data-theme="dark"] .prorank-support-page .prorank-page-subtitle,
[data-theme="dark"] .prorank-section-description,
.prorank-dark-theme .prorank-support-page .prorank-page-subtitle,
.prorank-dark-theme .prorank-section-description {
  color: #c3c4c7;
}

[data-theme="dark"] .prorank-support-page .components-card,
[data-theme="dark"] .prorank-card--modern,
.prorank-dark-theme .prorank-support-page .components-card,
.prorank-dark-theme .prorank-card--modern {
  background: #2c3338;
  border-color: #40464d;
}

[data-theme="dark"] .prorank-support-page .components-card:hover,
[data-theme="dark"] .prorank-card--modern:hover,
.prorank-dark-theme .prorank-support-page .components-card:hover,
.prorank-dark-theme .prorank-card--modern:hover {
  border-color: #50565d;
}

[data-theme="dark"] .license-status-box,
.prorank-dark-theme .license-status-box {
  background: linear-gradient(135deg, #40464d 0%, #2c3338 100%);
  border-color: #50565d;
}

[data-theme="dark"] .doc-item,
[data-theme="dark"] .video-item,
[data-theme="dark"] .request-item,
[data-theme="dark"] .method,
[data-theme="dark"] .tip,
.prorank-dark-theme .doc-item,
.prorank-dark-theme .video-item,
.prorank-dark-theme .request-item,
.prorank-dark-theme .method,
.prorank-dark-theme .tip {
  background: #40464d;
  border-color: #50565d;
}

[data-theme="dark"] .doc-item:hover,
[data-theme="dark"] .video-item:hover,
[data-theme="dark"] .method:hover,
[data-theme="dark"] .tip:hover,
.prorank-dark-theme .doc-item:hover,
.prorank-dark-theme .video-item:hover,
.prorank-dark-theme .method:hover,
.prorank-dark-theme .tip:hover {
  background: #50565d;
  border-color: var(--support-primary);
}

[data-theme="dark"] .current-version,
[data-theme="dark"] .release-highlights,
.prorank-dark-theme .current-version,
.prorank-dark-theme .release-highlights {
  background: linear-gradient(135deg, #40464d 0%, #2c3338 100%);
}

[data-theme="dark"] .prorank-support-tabs .components-tab-panel__tabs,
.prorank-dark-theme .prorank-support-tabs .components-tab-panel__tabs {
  background: #2c3338;
  box-shadow: inset 0 0 0 1px #40464d;
}

[data-theme="dark"] .prorank-support-tabs .components-tab-panel__tabs button:hover:not(.is-active),
.prorank-dark-theme .prorank-support-tabs .components-tab-panel__tabs button:hover:not(.is-active) {
  background: #40464d;
  color: #f0f0f1;
}

[data-theme="dark"] .status-row .label,
[data-theme="dark"] .doc-item p,
[data-theme="dark"] .video-item .duration,
[data-theme="dark"] .request-item p,
[data-theme="dark"] .method p,
[data-theme="dark"] .tip p,
[data-theme="dark"] .build-info,
[data-theme="dark"] .release-date,
[data-theme="dark"] .change-section li,
.prorank-dark-theme .status-row .label,
.prorank-dark-theme .doc-item p,
.prorank-dark-theme .video-item .duration,
.prorank-dark-theme .request-item p,
.prorank-dark-theme .method p,
.prorank-dark-theme .tip p,
.prorank-dark-theme .build-info,
.prorank-dark-theme .release-date,
.prorank-dark-theme .change-section li {
  color: #c3c4c7;
}

[data-theme="dark"] .status-row .value,
[data-theme="dark"] .doc-item h4,
[data-theme="dark"] .request-item h4,
[data-theme="dark"] .method h4,
[data-theme="dark"] .release-highlights h4,
[data-theme="dark"] .change-section h4,
.prorank-dark-theme .status-row .value,
.prorank-dark-theme .doc-item h4,
.prorank-dark-theme .request-item h4,
.prorank-dark-theme .method h4,
.prorank-dark-theme .release-highlights h4,
.prorank-dark-theme .change-section h4 {
  color: #f0f0f1;
}

[data-theme="dark"] .advanced-warning,
.prorank-dark-theme .advanced-warning {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prorank-card--modern {
  animation: slideIn 0.5s ease-out;
  animation-fill-mode: both;
}

.prorank-card--modern:nth-child(1) { animation-delay: 0.1s; }
.prorank-card--modern:nth-child(2) { animation-delay: 0.2s; }
.prorank-card--modern:nth-child(3) { animation-delay: 0.3s; }
.prorank-card--modern:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 768px) {
  .prorank-support-page .prorank-page-header {
    padding: 24px;
  }
  
  .prorank-support-page h1 {
    font-size: 24px;
  }
  
  .prorank-support-grid {
    grid-template-columns: 1fr;
  }
  
  .release-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .current-version {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-methods {
    grid-template-columns: 1fr;
  }
  
  .import-export-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}
/* Account Links */
.account-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.account-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.account-links a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.account-links .link-arrow {
  font-size: 14px;
  color: #f97316;
}
