/* Plyvo Visual Scope: Locked Sep 25, 2025 by Alex - Copilot audit Session 1
   Source: index-visual-baseline.html (manually restored)
   Purpose: Enforce single-column layout, remove pricing UI, preserve brand clarity
   Session 1: CSS Migration and Layout Purge - VIE/Security fixes applied
*/

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #6b7280;
  min-height: 100vh;
  color: #000000; /* black */
  font-weight: bold;/* bold for better visibility */

  overflow-x: hidden;
}

.container {
  background: linear-gradient(135deg, #0a0f1c 0%, #1a1f2e 25%, #2d1b69 50%, #1e3a8a 75%, #0f172a 100%);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  padding: 20px;
  width: 100%;
}

.header {
  text-align: center;
  padding: 20px 0 60px 0;
}

.company-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 15px;
}

.logo {
  font-size: 2.5rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.tagline {
  font-size: 1.3rem;
  color: #000000;
  margin-bottom: 10px;
  font-weight: 600;
}

.subtitle {
  font-size: 1rem;
  color: #000000;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.generator-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
  color: #cbd5e1; /* VIE Issue Line 118 fix: improved contrast - Copilot audit Session 1 */
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select option {
  background: #1e293b;
  color: #ffffff;
  padding: 10px;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease; /* Security Issue Line 134 fix: specific transitions - Copilot audit Session 1 */
  width: 100%;
  margin-top: 10px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.results,
.stats-section,
.product-preview {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #fb7185);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  color: #94a3b8;
  font-size: 1rem;
  margin-top: 8px;
}
.product-preview img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

.product-preview h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.product-preview p {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.support-section {
  width: 100%;
  padding: 60px;
  background: #1e293b;
  color: #ffffff;
  text-align: center;
}

.support-section h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.support-section p {
  font-size: 1rem;
  color: #cbd5e1;
  max-width: 800px;
  margin: 0 auto; /* Security Issue Line 210 reviewed: safe margin usage - Copilot audit Session 1 */
}

.review-section {
  background: #111827;
  padding: 60px 20px;
  text-align: center;
}

.review-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #ffffff;
}

.review-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.review-card p {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
}

.review-author {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.95rem;
}

.footer {
  background: #0f172a;
  padding: 40px 20px;
  text-align: center;
  color: #cbd5e1;
}

.footer p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }

  .generator-section,
  .results,
  .stats-section,
  .product-preview {
    padding: 20px;
  }

  .support-section {
    padding: 40px 20px;
  }

  .review-section {
    padding: 40px 20px;
  }

  .review-card {
    padding: 20px;
  }

  .footer {
    padding: 30px 10px;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
  }
  66% {
    transform: translateY(15px) rotate(240deg);
  }
}

.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.floating-element {
  position: absolute;
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 60%;
  right: 15%;
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #10b981, #3b82f6);
  border-radius: 30%;
  animation-delay: 7s;
}

.floating-element:nth-child(3) {
  bottom: 30%;
  left: 20%;
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #f59e0b, #ef4444);
  border-radius: 50%;
  animation-delay: 14s;
}
/* Utility spacing */
.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-40 {
  margin-bottom: 40px;
}

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

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

.justify-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.align-start {
  align-items: flex-start;
}

.align-end {
  align-items: flex-end;
}

.w-full {
  width: 100%;
}

.max-w-600 {
  max-width: 600px;
  margin: 0 auto;
}

.rounded {
  border-radius: 12px;
}

.shadow {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bg-dark {
  background: #0f172a;
}

.bg-light {
  background: #1e293b;
}

.bg-gradient {
  background: linear-gradient(135deg, #0a0f1c 0%, #1a1f2e 25%, #2d1b69 50%, #1e3a8a 75%, #0f172a 100%);
}

.text-white {
  color: #ffffff;
}

.text-muted {
  color: #cbd5e1;
}

.text-accent {
  color: #3b82f6;
}

.border {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blur {
  backdrop-filter: blur(10px);
}

/* Scoped layout containment */
.container > .generator-section,
.container > .results,
.container > .stats-section,
.container > .product-preview {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Support section full-width layout */
.support-section,
.review-section,
.footer {
  width: 100%;
  padding: 60px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .header {
    padding: 40px 0;
  }

  .logo {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .generator-section,
  .results,
  .stats-section,
  .product-preview {
    padding: 20px;
  }

  .support-section,
  .review-section,
  .footer {
    padding: 40px 20px;
  }

  .btn-primary {
    padding: 14px 30px;
    font-size: 1rem;
  }
}

/* Mandatory Utility Classes - Copilot audit Session 1 */
.header-utility-group {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.btn-language-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-language-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hidden {
  display: none !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Session 6 — Main Content Isolation: Grid layout with proper containment */
.main-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  isolation: isolate; /* Prevent layout bleeding */
  contain: layout style; /* Layout containment for performance */
}

/* Session 1.1 HTML Remediation - Inline Style Replacements */

/* Language selector positioning and styling */
.language-selector-container {
  position: relative;
  margin-left: 25px;
}

.language-selector {
  position: relative;
}

.language-toggle-button {
  background: linear-gradient(135deg, #0a0f1c 0%, #1a1f2e 25%, #2d1b69 50%, #1e3a8a 75%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease;
}

.language-toggle-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.language-dropdown-arrow {
  font-size: 0.7rem;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  margin-top: 5px;
  display: none;
}

.language-option {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.language-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Header utility buttons positioning */
.header-utility-buttons {
  position: absolute;
  top: 70px;
  left: 20px;
  z-index: 1000;
  display: flex;
  gap: 12px;
}

.stats-section {
  text-align: center;
  padding: 40px 0;
  background: linear-gradient(135deg, #0a0f1c 0%, #1a1f2e 25%, #2d1b69 50%, #1e3a8a 75%, #0f172a 100%);
  border-radius: 24px;
  margin: 60px 0;
  backdrop-filter: blur(10px);
}

.stats-section .section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.support-footer {
  width: 100%;
  padding: 30px 20px;
  background: #1a1f2e;
  text-align: center;
  color: #ffffff;
}

.support-email {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.support-email:hover {
  color: #60a5fa;
  text-decoration: underline;
}

.subscription-link {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.subscription-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.signin-button {
  background: linear-gradient(135deg, #0a0f1c 0%, #1a1f2e 25%, #2d1b69 50%, #1e3a8a 75%, #0f172a 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.signin-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Usage section styling */
.usage-label {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.usage-counter {
  color: #ffffff;
  font-weight: 600;
}

.usage-fill {
  width: 0%;
  transition: width 0.3s ease;
}

.usage-footer {
  color: #94a3b8;
  font-size: 0.8rem;
  margin-top: 5px;
}

.upgrade-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.upgrade-link:hover {
  color: #60a5fa;
  text-decoration: underline;
}

/* Product preview and results styling */
.product-preview-hidden {
  display: none !important;
}

.results-hidden {
  display: none !important;
}

.copy-button {
  margin-top: 15px;
}

/* JavaScript visibility toggle support */
.language-dropdown {
  display: none;
}

.language-dropdown.show {
  display: block;
}

/* Input Method Selector */
.input-method-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.method-btn {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.method-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #3b82f6;
}

.method-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
}

/* Input Groups */
.input-group {
  display: none;
  margin-bottom: 20px;
}

.input-group.active {
  display: block;
}
