/*
 * ViralMedia AI Suite - Native Standalone Application Stylesheet
 * Version: 2.0.26 &bull; Copyright (c) 2026 ViralMedia AI Inc.
 */
.viralmedia-app-root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #1a1a2e;
  color: #f8f9fa;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  border: 1px solid #2a3447;
  margin: 20px 0;
  box-sizing: border-box;
}

.viralmedia-app-root * {
  box-sizing: border-box;
}

.vm-app-header {
  background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
  padding: 20px 24px;
  border-bottom: 1px solid #2a3447;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.vm-app-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vm-app-badge {
  background: #e94560;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.vm-app-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.5px;
}

.vm-app-title span {
  color: #e94560;
}

.vm-app-subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.vm-app-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vm-app-select {
  background: #1a1a2e;
  border: 1px solid #2a3447;
  color: #f8f9fa;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.vm-app-select:focus {
  border-color: #e94560;
}

/* Nav Tabs */
.vm-app-nav {
  display: flex;
  background: #121826;
  border-bottom: 1px solid #2a3447;
  overflow-x: auto;
  padding: 6px 12px;
  gap: 6px;
}

.vm-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vm-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.vm-tab-btn.active {
  color: #fff;
  background: #e94560;
}

/* Workstation Layout */
.vm-app-body {
  padding: 24px;
}

.vm-tool-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .vm-tool-container {
    grid-template-columns: 360px 1fr;
  }
}

/* Controls Panel */
.vm-panel-controls {
  background: #16213e;
  border: 1px solid #2a3447;
  border-radius: 12px;
  padding: 20px;
}

.vm-form-group {
  margin-bottom: 16px;
}

.vm-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.vm-input, .vm-textarea {
  width: 100%;
  background: #1a1a2e;
  border: 1px solid #2a3447;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.vm-input:focus, .vm-textarea:focus {
  border-color: #e94560;
}

.vm-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #e94560 0%, #ff5773 100%);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.vm-btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.vm-btn-primary:active {
  transform: translateY(0);
}

/* Results Panel */
.vm-panel-results {
  background: #16213e;
  border: 1px solid #2a3447;
  border-radius: 12px;
  padding: 20px;
  min-height: 400px;
}

.vm-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2a3447;
}

.vm-results-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.vm-item-card {
  background: #1a1a2e;
  border: 1px solid #2a3447;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}

.vm-item-card:hover {
  border-color: #e94560;
}

.vm-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vm-item-text {
  font-size: 14px;
  color: #f1f5f9;
  line-height: 1.5;
  font-weight: 500;
}

.vm-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  shrink: 0;
}

.vm-btn-copy, .vm-btn-save {
  background: #2a3447;
  color: #cbd5e1;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.vm-btn-copy:hover, .vm-btn-save:hover {
  background: #e94560;
  color: #fff;
}

.vm-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vm-tag-score {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.vm-tag-niche {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(233, 69, 96, 0.15);
  color: #ff5773;
}

/* Virality Gauge */
.vm-gauge-box {
  background: #1a1a2e;
  border: 1px solid #2a3447;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.vm-gauge-score {
  font-size: 56px;
  font-weight: 900;
  color: #e94560;
  line-height: 1;
}

.vm-gauge-label {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Toast */
.vm-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 999999;
  display: none;
}
