/**
 * Admin help page styles for the subscription system plugin.
 *
 * @package Subs_Sys
 */

/* Full width container for help page */
.subscription-system-help-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #f1f1f1;
  min-height: 100vh;
}

/* Help sections */
.help-section {
  background: white;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  border: 1px solid #e1e5e9;
}

.help-section h2 {
  margin: 0 0 30px 0;
  color: #23282d;
  border-bottom: 3px solid #0073aa;
  padding-bottom: 15px;
  font-size: 24px;
  font-weight: 600;
}

.help-section h3 {
  color: #0073aa;
  margin: 30px 0 20px 0;
  font-size: 20px;
  font-weight: 600;
}

.help-section h4 {
  color: #23282d;
  margin: 20px 0 15px 0;
  font-size: 16px;
  font-weight: 600;
}

.help-section p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: #666;
}

/* Shortcode sections */
.shortcode-section {
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  padding: 25px;
  background: #fafafa;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.shortcode-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.shortcode-section:hover::before {
  transform: scaleX(1);
}

.shortcode-section:hover {
  border-color: #0073aa;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

/* Shortcode display */
.shortcode-display {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
  padding: 20px;
  background: white;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.shortcode-display:hover {
  border-color: #0073aa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shortcode-display textarea {
  flex: 1;
  background: none;
  border: none;
  resize: none;
  font-size: 16px;
  color: #d63384;
  font-weight: bold;
  font-family: "Courier New", monospace;
  outline: none;
  padding: 0;
}

.shortcode-actions {
  display: flex;
  gap: 10px;
}

.copy-shortcode {
  background: #0073aa;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.copy-shortcode:hover {
  background: #005a87;
  transform: scale(1.05);
}

.shortcode-note {
  margin: 10px 0 0 0 !important;
  font-size: 13px;
  color: #888;
  font-style: italic;
}

/* Code examples */
.code-example {
  margin: 15px 0;
  padding: 15px;
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  border-left: 4px solid #0073aa;
}

.code-example textarea {
  width: 100%;
  background: none;
  border: none;
  resize: none;
  font-size: 14px;
  color: #d63384;
  font-weight: bold;
  font-family: "Courier New", monospace;
  outline: none;
  padding: 0;
}

/* Feature lists */
.feature-list {
  list-style: none;
  margin: 15px 0;
  padding: 0;
}

.feature-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #666;
  line-height: 1.5;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #46b450;
  font-weight: bold;
  font-size: 16px;
}

/* Settings link */
.settings-link {
  margin: 25px 0;
  padding: 20px;
  background: #f0f6ff;
  border: 1px solid #0073aa;
  border-radius: 8px;
  text-align: center;
}

.settings-link .button-primary {
  background: #0073aa;
  border-color: #0073aa;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.settings-link .button-primary:hover {
  background: #005a87;
  border-color: #005a87;
  transform: scale(1.05);
}

/* Troubleshooting items */
.troubleshoot-item {
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  background: #f8f9fa;
  border-left: 4px solid #ffb900;
}

.troubleshoot-item h4 {
  margin-top: 0;
  color: #23282d;
  font-size: 16px;
}

.troubleshoot-item ul {
  margin: 15px 0;
  padding-left: 20px;
}

.troubleshoot-item li {
  margin-bottom: 8px;
  color: #666;
  line-height: 1.5;
}

/* Support grid */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.support-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e1e5e9;
  position: relative;
  overflow: hidden;
}

.support-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.support-card:hover::before {
  transform: scaleX(1);
}

.support-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.support-icon {
  margin-bottom: 20px;
}

.support-icon .dashicons {
  font-size: 48px;
  color: #0073aa;
  background: #f0f6ff;
  padding: 20px;
  border-radius: 50%;
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.support-card h3 {
  margin: 0 0 15px 0;
  color: #23282d;
  font-size: 20px;
  font-weight: 600;
}

.support-card p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.support-card .button {
  background: #0073aa;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.support-card .button:hover {
  background: #005a87;
  color: white;
  transform: scale(1.05);
}

/* Legacy styles for backward compatibility */
.subscription-system-help {
  max-width: 1200px;
}

.subscription-system-help .notice {
  margin: 1em 0;
  padding: 1em;
  border-left: 4px solid #0073aa;
  background: #f7f7f7;
  border-radius: 4px;
}

.subscription-system-help .notice.notice-warning {
  border-left-color: #ffb900;
}

.subscription-system-help .notice.notice-error {
  border-left-color: #dc3232;
}

.subscription-system-help .notice.notice-success {
  border-left-color: #46b450;
}

.subscription-system-help code {
  background: #f1f1f1;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: Consolas, Monaco, monospace;
  color: #d63384;
  font-weight: bold;
}

.subscription-system-help pre {
  background: #f1f1f1;
  padding: 1em;
  border-radius: 3px;
  overflow-x: auto;
}

.subscription-system-help .docs-section {
  background: #fff;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  padding: 1.5em;
  margin: 1em 0;
}

.subscription-system-help .docs-section h4 {
  margin-top: 0;
  color: #23282d;
}

.subscription-system-help .support-info {
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 4px;
  padding: 1.5em;
  margin: 1em 0;
}

.subscription-system-help .support-info h4 {
  margin-top: 0;
  color: #0073aa;
}

.subscription-system-help .version-info {
  font-size: 0.9em;
  color: #666;
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #ddd;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .subscription-system-help-content {
    padding: 15px;
  }

  .support-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .subscription-system-help-content {
    padding: 10px;
  }

  .help-section {
    padding: 25px 20px;
  }

  .shortcode-section {
    padding: 20px 15px;
  }

  .shortcode-display {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .shortcode-actions {
    justify-content: center;
  }

  .copy-shortcode {
    width: 100%;
    justify-content: center;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-icon .dashicons {
    font-size: 40px;
    width: 70px;
    height: 70px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .help-section h2 {
    font-size: 20px;
  }

  .help-section h3 {
    font-size: 18px;
  }

  .shortcode-display textarea {
    font-size: 14px;
  }

  .support-card {
    padding: 20px 15px;
  }
}
