/* FixMyFile.ai - Monetized Version Styles */

:root {
  --bg: #0f1419;
  --card: #1a1f26;
  --card-border: #2d3640;
  --text: #e7e9ea;
  --text-muted: #8b98a5;
  --primary: #1d9bf0;
  --primary-hover: #1a8cd8;
  --success: #00ba7c;
  --warning: #ffad1f;
  --error: #f4212e;
  --accent: #6ee7b7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stats-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(0, 186, 124, 0.1);
  border: 1px solid rgba(0, 186, 124, 0.3);
  border-radius: 20px;
  font-size: 13px;
  color: var(--success);
}

.stats-icon {
  font-size: 14px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

/* Main Grid */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
}

.card-header {
  margin-bottom: 20px;
}

.card-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-header p {
  color: var(--text-muted);
  font-size: 15px;
}

.trust-badges {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(110, 231, 183, 0.1);
  border: 1px solid rgba(110, 231, 183, 0.2);
  border-radius: 12px;
  font-size: 12px;
  color: var(--accent);
}

/* Upload Area */
.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  border: 2px dashed var(--card-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.upload-area:hover {
  border-color: var(--primary);
  background: rgba(29, 155, 240, 0.05);
}

.upload-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.upload-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.upload-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.upload-input {
  display: none;
}

/* Pricing Preview */
.pricing-preview {
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
}

.pricing-preview.free {
  background: rgba(0, 186, 124, 0.1);
  border: 1px solid rgba(0, 186, 124, 0.3);
  color: var(--success);
}

.pricing-preview.paid {
  background: rgba(29, 155, 240, 0.1);
  border: 1px solid rgba(29, 155, 240, 0.3);
  color: var(--primary);
}

.pricing-preview.error {
  background: rgba(244, 33, 46, 0.1);
  border: 1px solid rgba(244, 33, 46, 0.3);
  color: var(--error);
}

.free-badge, .paid-badge, .error-badge {
  font-weight: 700;
  margin-right: 8px;
}

/* File Meta */
.file-meta {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.file-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.file-meta-label {
  color: var(--text-muted);
}

/* Tool Sections */
.tool-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .tool-sections {
    grid-template-columns: 1fr;
  }
}

.tool-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 16px;
}

.tool-card-header {
  margin-bottom: 8px;
}

.tool-card-title {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-pill {
  font-size: 10px;
  padding: 2px 8px;
  background: var(--primary);
  border-radius: 10px;
  font-weight: 500;
}

.tool-card-body {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tool-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 12px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--text);
}

.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--card-border);
  margin: 24px 0;
}

/* Action Row */
.action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill-button {
  padding: 12px 24px;
  border-radius: 24px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.pill-button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.pill-button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.pill-button.primary:hover {
  background: var(--primary-hover);
}

.status-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
}

.status-dot.active {
  background: var(--success);
  animation: pulse 1s infinite;
}

/* Progress Bar */
.progress-bar {
  height: 6px;
  background: var(--card-border);
  border-radius: 3px;
  margin-top: 20px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width 0.3s;
}

/* Payment Panel */
.payment-panel {
  background: linear-gradient(135deg, rgba(29, 155, 240, 0.1), rgba(110, 231, 183, 0.1));
  border: 1px solid rgba(29, 155, 240, 0.3);
  border-radius: 16px;
  padding: 32px;
  margin-top: 24px;
  text-align: center;
}

.payment-success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.payment-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--success);
}

.payment-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.payment-price {
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.payment-reason {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.payment-button {
  display: inline-block;
  padding: 16px 48px;
  background: linear-gradient(135deg, var(--primary), #0d8ecf);
  border: none;
  border-radius: 30px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.payment-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 155, 240, 0.3);
}

.payment-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.payment-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--success);
}

.payment-secure {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Result Panel */
.result-panel {
  background: rgba(0, 186, 124, 0.1);
  border: 1px solid rgba(0, 186, 124, 0.3);
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
  text-align: center;
}

.result-success {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--success);
}

.result-link {
  display: inline-block;
  padding: 14px 32px;
  background: var(--success);
  color: white;
  text-decoration: none;
  border-radius: 24px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
}

.result-link:hover {
  background: #00a56e;
  transform: translateY(-1px);
}

.result-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Pricing Card */
.pricing-card {
  background: linear-gradient(135deg, var(--card), rgba(29, 155, 240, 0.05));
}

.pricing-header {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pricing-tier {
  text-align: center;
  padding: 16px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
}

.pricing-tier.free {
  border-color: var(--success);
}

.tier-name {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tier-price {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-tier.free .tier-price {
  color: var(--success);
}

.tier-details {
  font-size: 11px;
  color: var(--text-muted);
}

.tier-limit {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

.pricing-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
}

/* AI Console */
.ai-diagnosis-card {
  max-height: 200px;
}

.ai-diagnosis-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-tag {
  font-size: 10px;
  padding: 2px 8px;
  background: var(--success);
  border-radius: 8px;
  color: var(--bg);
  font-weight: 600;
}

.ai-diagnosis-log {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 12px;
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Trust Card */
.trust-card {
  padding: 20px;
}

.trust-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.trust-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trust-icon {
  font-size: 20px;
}

.trust-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.trust-item p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* FAQ Card */
.faq-card {
  padding: 20px;
}

.faq-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.faq-item {
  margin-bottom: 16px;
}

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

.faq-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.faq-item p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 24px 0;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-content p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-content a {
  color: var(--primary);
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .top-right {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .action-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .pill-button {
    width: 100%;
    text-align: center;
  }
  
  .pricing-tiers {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ==================== VIDEO SECTION ==================== */
.video-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.video-header {
  text-align: center;
  margin-bottom: 24px;
}

.video-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.video-header p {
  color: var(--text-muted);
  font-size: 16px;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.video-stat {
  text-align: center;
}

.video-stat-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.video-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 32px;
}

.testimonials-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.testimonials-header p {
  color: var(--text-muted);
  font-size: 16px;
}

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

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 18px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-weight: 600;
  font-size: 15px;
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-muted);
}

.testimonial-file {
  font-size: 12px;
  padding: 6px 12px;
  background: rgba(110, 231, 183, 0.1);
  border: 1px solid rgba(110, 231, 183, 0.2);
  border-radius: 8px;
  color: var(--accent);
  text-align: center;
}

/* ==================== FAQ SECTION ==================== */
.faq-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.faq-header {
  text-align: center;
  margin-bottom: 32px;
}

.faq-header h2 {
  font-size: 28px;
  font-weight: 700;
}

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

.faq-item-large {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
}

.faq-item-large strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}

.faq-item-large p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
  .video-stats {
    gap: 24px;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .video-header h2,
  .testimonials-header h2,
  .faq-header h2 {
    font-size: 24px;
  }
}
