/* Product flow — telas auth/dashboard/project/wizard (SSOT) */

/* WIZARD */
.wizard-container {
  max-width: 700px;
  margin: 4rem auto;
  padding: 2rem;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #333;
  z-index: 0;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.wizard-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.wizard-step.active .wizard-step-number {
  background: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.wizard-step.completed .wizard-step-number {
  background: #10b981;
}

.wizard-step-title {
  font-size: 0.875rem;
  color: #999;
}

.wizard-step.active .wizard-step-title {
  color: #fff;
  font-weight: 600;
}

.wizard-content {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.wizard-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.wizard-footer .btn {
  flex: 1;
}

.wizard-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-item {
  padding: 1rem;
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 4px;
}

.summary-item strong {
  color: #667eea;
  margin-right: 0.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 4px;
  color: #fff;
  font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

.form-group input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 4px;
  color: #999;
}

/* Product flow — telas auth/dashboard/project (SSOT) */
#app-root { min-height: 100vh; }
.product-login-page { max-width: 400px; margin: 2rem auto; padding: 2rem; }
.product-login-page h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.product-login-page label { display: block; margin-top: 1rem; }
.product-login-page input { width: 100%; padding: 0.5rem; margin-top: 0.25rem; box-sizing: border-box; }
.product-login-page button.primary { margin-top: 1.5rem; padding: 0.5rem 1rem; width: 100%; cursor: pointer; }
.product-login-page .links { margin-top: 1rem; display: flex; gap: 1rem; }
.product-login-page .links a.disabled { color: #666; cursor: not-allowed; text-decoration: none; }

/* Login moderno — centralizado, Entrar com Google em destaque */
.product-login-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 56px);
  padding: 2rem;
  margin: 0 auto;
  max-width: 100%;
}
.product-login-modern .login-card {
  width: 100%;
  max-width: 400px;
  background: var(--color-bg-medium, #252525);
  border: 1px solid var(--color-border, #404040);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.product-login-modern .login-logo {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-text-primary, #fff);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.product-login-modern .login-tagline {
  text-align: center;
  color: var(--color-text-muted, #a3a3a3);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.product-login-modern .btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.product-login-modern .btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.product-login-modern .btn-google-icon {
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%234285F4' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%2334A853' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.16 7.09-10.27 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%23EA4335' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.product-login-modern .login-divider {
  display: flex;
  align-items: center;
  margin: 1.25rem 0;
  color: var(--color-text-muted, #737373);
  font-size: 0.85rem;
}
.product-login-modern .login-divider::before,
.product-login-modern .login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border, #404040);
}
.product-login-modern .login-divider span { padding: 0 12px; }
.product-login-modern .login-form { margin-top: 0; }
.product-login-modern .login-form label { margin-top: 0.75rem; }
.product-login-modern .login-form input {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-border, #404040);
  background: var(--color-bg-dark, #1a1a1a);
  color: var(--color-text-primary, #fff);
}
.product-login-modern .login-form button.primary {
  margin-top: 1.25rem;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--color-primary, #1d4ed8);
  border: none;
  color: #fff;
  font-weight: 500;
}
.product-login-modern .login-links {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
}
.product-login-modern .login-links a { color: var(--color-primary, #3b82f6); text-decoration: none; }
.product-login-modern .login-links a:hover { text-decoration: underline; }
.product-login-modern .login-links-sep { margin: 0 6px; color: var(--color-text-muted, #737373); }
.product-dashboard { max-width: 1000px; margin: 2rem auto; padding: 2rem; }

.dashboard-empty {
  text-align: center;
  max-width: 500px;
  margin: 6rem auto;
}

.dashboard-empty h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.dashboard-empty p {
  margin-bottom: 2rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 1.75rem;
  margin: 0;
}

.dashboard-projects-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s;
}

.project-card:hover {
  border-color: #667eea;
  transform: translateY(-2px);
}

.project-card-body {
  margin-bottom: 1rem;
}

.project-card-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-card-meta {
  font-size: 0.875rem;
}

.project-card-actions {
  display: flex;
  gap: 0.5rem;
}

/* Dashboard do projeto (identidade / brandkit) */
.product-project-dashboard {
  max-width: 720px;
  margin: 2rem auto;
  padding: 2rem;
}

.project-dashboard-loading {
  text-align: center;
  padding: 3rem 1rem;
}

.project-dashboard-loading .ai-loader-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  border: 3px solid #333;
  border-top-color: var(--color-primary, #667eea);
  border-radius: 50%;
  animation: ai-loader-spin 0.8s linear infinite;
}

.project-dashboard-loading h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-dashboard-ready h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-dashboard-brandkit {
  margin: 1.5rem 0;
}

.brandkit-summary {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.25rem;
}

.brandkit-row {
  margin-bottom: 1rem;
}

.brandkit-row:last-of-type {
  margin-bottom: 1.25rem;
}

.brandkit-row label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: #999;
}

.brandkit-row input {
  width: 100%;
  padding: 0.5rem;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 4px;
  color: #fff;
  box-sizing: border-box;
}

.project-dashboard-actions {
  margin-top: 2rem;
}

.project-dashboard-actions .btn-large {
  padding: 0.75rem 1.5rem;
}

.project-card-actions .btn {
  flex: 1;
}

/* HUB DO PROJETO */
.product-hub {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem;
}

.hub-header {
  text-align: center;
  margin-bottom: 3rem;
}

.hub-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hub-modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.hub-mode-card {
  background: #111;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.hub-mode-card:hover:not(.disabled) {
  border-color: #667eea;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.hub-mode-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hub-mode-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.hub-mode-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hub-mode-desc {
  color: #999;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hub-mode-cta .btn {
  width: 100%;
}

.hub-secondary-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.topbar-breadcrumb {
  font-size: 0.875rem;
  color: #666;
  margin-left: 1rem;
}

/* AI LOADER */
.ai-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.ai-loader-overlay.visible {
  opacity: 1;
}

.ai-loader-content {
  text-align: center;
  max-width: 500px;
  padding: 3rem;
}

.ai-loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #333;
  border-top-color: #667eea;
  border-radius: 50%;
  margin: 0 auto 2rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ai-loader-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fff;
}

.ai-loader-desc {
  font-size: 1rem;
  color: #999;
  margin-bottom: 2rem;
}

.ai-loader-progress {
  width: 100%;
  height: 8px;
  background: #222;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.ai-loader-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.ai-loader-percent {
  font-size: 1.5rem;
  font-weight: 600;
  color: #667eea;
}

/* MODO PLANEJADO */
.product-planner {
  display: flex;
  height: calc(100vh - 56px);
  background: #0a0a0a;
}

.planner-sidebar {
  width: 280px;
  background: #0f0f0f;
  border-right: 1px solid #2a2a2a;
  overflow-y: auto;
  flex-shrink: 0;
}

.planner-sidebar-section {
  padding: 16px;
  border-bottom: 1px solid #1a1a1a;
}

.planner-sidebar-title {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 12px;
}

.planner-label {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 4px;
  display: block;
}

.planner-input,
.planner-select {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  color: #e0e0e0;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 8px;
}

.planner-input:focus,
.planner-select:focus {
  outline: none;
  border-color: #667eea;
}

.planner-backlog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.planner-backlog-list li {
  background: #1a1a1a;
  padding: 8px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.planner-backlog-list li:hover {
  background: #222;
}

.planner-main {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.planner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.planner-month-title {
  font-size: 24px;
  font-weight: 700;
  color: #e0e0e0;
  text-transform: capitalize;
}

.planner-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.planner-day {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 12px;
  min-height: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.planner-day:hover {
  border-color: #667eea;
  transform: translateY(-2px);
}

.planner-day-header {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.planner-day-number {
  font-size: 18px;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 8px;
}

.planner-day-posts {
  font-size: 11px;
  color: #667eea;
}

.planner-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.planner-post-card {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.planner-post-card:hover {
  border-color: #667eea;
}

.planner-post-date {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}

.planner-post-title {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 8px;
}

.planner-post-status {
  display: inline-block;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #1a1a1a;
  color: #888;
}

.planner-inspector {
  width: 280px;
  background: #0f0f0f;
  border-left: 1px solid #2a2a2a;
  overflow-y: auto;
  flex-shrink: 0;
}

.planner-inspector-title {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
  padding: 16px;
  border-bottom: 1px solid #1a1a1a;
}

.planner-inspector-content {
  padding: 16px;
}

.planner-inspector-empty {
  text-align: center;
  color: #555;
  font-size: 13px;
  padding: 40px 16px;
}
.product-modes { max-width: 600px; margin: 2rem auto; padding: 2rem; }
.product-modes h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.product-modes .mode-card { border: 1px solid #333; padding: 1.5rem; margin-bottom: 1rem; cursor: pointer; }
.product-modes .mode-card.disabled { opacity: 0.6; cursor: not-allowed; }
.product-modes .mode-card .badge { font-size: 0.75rem; color: #888; }
