/**
 * WB AI SEO Admin Styles
 *
 * @package    Wbai_Seo
 * @subpackage Wbai_Seo/admin/css
 */

/* Admin wrapper */
.wbai-admin-wrap {
  max-width: 1200px;
}

.wbai-admin-wrap h1 {
  margin-bottom: 20px;
}

/* Tab content */
.wbai-tab-content {
  margin-top: 20px;
}

/* Card component */
.wbai-card {
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.wbai-card h2 {
  margin: 0 0 16px 0;
  padding: 0;
  font-size: 1.3em;
  border-bottom: 1px solid #c3c4c7;
  padding-bottom: 12px;
}

/* Info Card */
.wbai-info-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #fff 100%);
  border-color: #0ea5e9;
}

.wbai-info-card h2 {
  color: #0369a1;
}

.wbai-info-card p {
  color: #334155;
  line-height: 1.6;
}

/* ==========================================================================
   DASHBOARD TAB STYLES
   ========================================================================== */

/* Hero Section */
.wbai-hero {
  background: linear-gradient(135deg, #1e40af 0%, #7c3aed 50%, #db2777 100%);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  text-align: center;
}

.wbai-hero h2 {
  color: #fff;
  font-size: 1.75em;
  margin: 0 0 8px 0;
  padding: 0;
  border: none;
}

.wbai-hero-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

/* Quick Actions */
.wbai-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .wbai-quick-actions {
    grid-template-columns: 1fr;
  }
}

.wbai-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.wbai-action-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.wbai-action-card .dashicons {
  font-size: 32px;
  width: 32px;
  height: 32px;
  color: #3b82f6;
  margin-bottom: 12px;
}

.wbai-action-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.wbai-action-desc {
  font-size: 12px;
  color: #6b7280;
}

/* Info Grid (What is llms.txt) */
.wbai-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .wbai-info-grid {
    grid-template-columns: 1fr;
  }
}

.wbai-info-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
}

.wbai-info-item .dashicons {
  font-size: 28px;
  width: 28px;
  height: 28px;
  color: #0369a1;
  margin-bottom: 12px;
}

.wbai-info-item h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #0c4a6e;
}

.wbai-info-item p {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

/* Steps (How to Get Started) */
.wbai-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wbai-step {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  align-items: flex-start;
}

.wbai-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wbai-step-content h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: #1f2937;
}

.wbai-step-content p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* Upgrade CTA */
.wbai-upgrade-cta {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.wbai-upgrade-cta h2 {
  color: #fff;
  border: none;
  padding: 0;
  margin: 0 0 8px 0;
}

.wbai-upgrade-cta-content {
  flex: 1;
  min-width: 280px;
}

.wbai-upgrade-cta-content p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 16px 0;
}

.wbai-upgrade-cta-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wbai-upgrade-cta-content li {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}

.wbai-upgrade-cta-content .dashicons-yes {
  color: #34d399;
}

.wbai-upgrade-cta-action {
  text-align: center;
}

.wbai-upgrade-cta-action .button-hero {
  background: #fff;
  color: #1e40af;
  border: none;
  padding: 12px 32px;
  font-weight: 600;
}

.wbai-upgrade-cta-action .button-hero:hover {
  background: #f0f9ff;
  color: #1e40af;
}

/* ==========================================================================
   YOUR LLMS.TXT TAB - STYLES
   ========================================================================== */

/* Toggle Card */
.wbai-toggle-card {
  padding: 0;
}

.wbai-toggle-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.wbai-toggle-row:hover {
  background: #f8fafc;
}

.wbai-toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.wbai-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.wbai-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 28px;
}

.wbai-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wbai-toggle-switch input:checked + .wbai-toggle-slider {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.wbai-toggle-switch input:checked + .wbai-toggle-slider:before {
  transform: translateX(24px);
}

.wbai-toggle-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wbai-toggle-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}

.wbai-toggle-desc {
  font-size: 13px;
  color: #6b7280;
}

/* Editor Card */
.wbai-editor-card {
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}

.wbai-editor-header {
  margin-bottom: 16px;
}

.wbai-editor-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.wbai-editor-title-row h2 {
  border: none;
  padding: 0;
  margin: 0 0 4px 0;
}

.wbai-editor-header h2 {
  border: none;
  padding: 0;
  margin: 0 0 4px 0;
}

.wbai-editor-wrapper {
  margin-bottom: 16px;
}

.wbai-llms-textarea {
  width: 100%;
  min-height: 400px;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.wbai-llms-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.wbai-llms-textarea::placeholder {
  color: #a3a3a3;
}

/* Editor Tips */
.wbai-editor-tips {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

.wbai-editor-tips h4 {
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wbai-editor-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wbai-editor-tips li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
  padding: 6px 0;
}

.wbai-editor-tips .dashicons-yes {
  color: #10b981;
  font-size: 16px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Editor Info / Output Preview */
.wbai-editor-info {
  background: #fefce8;
  border: 1px solid #fde047;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.wbai-editor-info h4 {
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: #854d0e;
}

.wbai-output-preview {
  background: #1e293b;
  border-radius: 6px;
  padding: 12px 16px;
  font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.8;
}

.wbai-output-preview code {
  color: #94a3b8;
  background: transparent;
  padding: 0;
  display: inline;
}

.wbai-output-preview code.wbai-preview-header {
  color: #fbbf24;
  font-weight: bold;
}

.wbai-output-preview code.wbai-preview-body {
  color: #34d399;
  font-style: italic;
}

.wbai-output-preview code.wbai-preview-footer {
  color: #64748b;
  font-size: 11px;
}

/* Preview Card */
.wbai-preview-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
  border-color: #22c55e;
}

.wbai-preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.wbai-live-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #dcfce7;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wbai-live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: wbai-pulse 2s infinite;
}

@keyframes wbai-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.wbai-preview-header h3 {
  margin: 0;
  font-size: 14px;
  color: #166534;
}

.wbai-url-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}

.wbai-url-box code {
  flex: 1;
  font-size: 13px;
  color: #166534;
  background: transparent;
  padding: 0;
}

.wbai-url-box .button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.wbai-url-box .button .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

/* Save Button */
.wbai-save-btn {
  margin-top: 8px !important;
}

/* ==========================================================================
   MARKETING & UPGRADE STYLES (FREE VERSION)
   ========================================================================== */

/* Hero Badge */
.wbai-hero-badge {
  margin-bottom: 12px;
}

.wbai-badge-free {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Notice Card */
.wbai-notice-card {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 8px;
}

.wbai-notice-info {
  background: linear-gradient(135deg, #fef3c7 0%, #fff 100%);
  border-color: #f59e0b;
  border-left: 4px solid #f59e0b;
}

.wbai-notice-icon .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
  color: #d97706;
}

.wbai-notice-content h3 {
  margin: 0 0 8px 0;
  font-size: 15px;
  color: #92400e;
}

.wbai-notice-content p {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #78350f;
  line-height: 1.5;
}

.wbai-notice-content p:last-child {
  margin-bottom: 0;
}

.wbai-notice-highlight {
  background: rgba(245, 158, 11, 0.1);
  padding: 10px 12px;
  border-radius: 6px;
  margin-top: 12px !important;
}

.wbai-link-arrow {
  color: #d97706;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.wbai-link-arrow:hover {
  color: #b45309;
  text-decoration: underline;
}

/* Pro Action Card */
.wbai-action-pro {
  background: linear-gradient(135deg, #fdf4ff 0%, #fff 100%);
  border-color: #a855f7;
}

.wbai-action-pro:hover {
  border-color: #9333ea;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.wbai-action-pro .dashicons {
  color: #9333ea;
}

.wbai-action-pro .wbai-action-title {
  color: #7e22ce;
}

/* Comparison Card */
.wbai-comparison-card {
  background: #fff;
}

.wbai-comparison-card h2 {
  text-align: center;
  border: none;
  font-size: 1.5em;
  margin-bottom: 24px;
}

.wbai-comparison-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .wbai-comparison-table {
    grid-template-columns: 1fr;
  }
}

.wbai-comparison-column {
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.wbai-comparison-free {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.wbai-comparison-pro {
  background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
  color: #fff;
  position: relative;
}

.wbai-comparison-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.wbai-recommended-badge {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: #fbbf24;
  color: #78350f;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.wbai-comparison-header h3 {
  margin: 0 0 4px 0;
  font-size: 1.4em;
}

.wbai-comparison-free .wbai-comparison-header h3 {
  color: #64748b;
}

.wbai-comparison-pro .wbai-comparison-header h3 {
  color: #fff;
}

.wbai-price {
  font-size: 13px;
  opacity: 0.8;
}

.wbai-comparison-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  flex: 1;
}

.wbai-comparison-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.wbai-comparison-pro .wbai-comparison-features li {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.wbai-comparison-features li:last-child {
  border-bottom: none;
}

.wbai-feature-included .dashicons-yes-alt {
  color: #10b981;
}

.wbai-comparison-pro .wbai-feature-included .dashicons-yes-alt {
  color: #34d399;
}

.wbai-feature-excluded {
  color: #9ca3af;
}

.wbai-feature-excluded .dashicons-no-alt {
  color: #d1d5db;
}

.wbai-feature-highlight {
  font-weight: 600;
}

.wbai-comparison-note {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px dashed #e2e8f0;
}

.wbai-upgrade-btn {
  width: 100%;
  justify-content: center;
  background: #fff !important;
  color: #7c3aed !important;
  border: none !important;
  font-weight: 600 !important;
}

.wbai-upgrade-btn:hover {
  background: #f3e8ff !important;
  color: #6d28d9 !important;
}

/* Bottom CTA */
.wbai-upgrade-cta-bottom {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.wbai-upgrade-cta-icon {
  flex-shrink: 0;
}

.wbai-upgrade-cta-icon .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: #fbbf24;
}

.wbai-upgrade-cta-bottom h2 {
  font-size: 1.3em;
  margin: 0 0 8px 0;
}

.wbai-upgrade-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  margin-top: 16px !important;
}

@media (max-width: 600px) {
  .wbai-upgrade-benefits {
    grid-template-columns: 1fr;
  }
}

.wbai-upgrade-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.wbai-upgrade-benefits .dashicons {
  color: #34d399;
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.wbai-guarantee {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin: 8px 0 0 !important;
}

/* Quick Actions with 3 columns */
@media (min-width: 601px) {
  .wbai-quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .wbai-hero {
    padding: 24px 16px;
  }
  
  .wbai-notice-card {
    flex-direction: column;
  }
  
  .wbai-upgrade-cta {
    flex-direction: column;
    text-align: center;
  }
  
  .wbai-upgrade-cta-content ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .wbai-upgrade-cta-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .wbai-upgrade-benefits {
    justify-items: center;
  }
}

