/* EZ Model Platform — dashboards, AI, CMS (extends main.css) */

.platform-hero {
  padding: clamp(4rem, 8vw, 6rem) 0 2rem;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(63, 163, 150, 0.12), transparent);
}

.platform-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.platform-grid--2 {
  grid-template-columns: 1.4fr 1fr;
}

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

.platform-panel {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.platform-panel h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.platform-stat {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.progress-ring {
  flex-shrink: 0;
  transform: rotate(-90deg);
}

.progress-ring__track {
  fill: none;
  stroke: rgba(246, 240, 227, 0.08);
  stroke-width: 6;
}

.progress-ring__fill {
  fill: none;
  stroke: var(--teal-bright);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s var(--ease-out);
}

.progress-ring__label {
  position: absolute;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream-dim);
}

.platform-stat { position: relative; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.platform-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--cream-dim);
}

.platform-state--error { color: var(--sunrise-bright); }

.platform-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(246, 240, 227, 0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: platform-spin 0.9s linear infinite;
  margin-bottom: 0.75rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .platform-spinner { animation: none; border-top-color: var(--gold); }
}

.ai-chat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.ai-msg { display: flex; }
.ai-msg--user { justify-content: flex-end; }
.ai-msg--assistant { justify-content: flex-start; }

.ai-msg__bubble {
  max-width: min(85%, 520px);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  line-height: 1.55;
}

.ai-msg--user .ai-msg__bubble {
  background: rgba(207, 168, 94, 0.15);
  border: 1px solid rgba(207, 168, 94, 0.25);
}

.ai-msg--assistant .ai-msg__bubble {
  background: rgba(63, 163, 150, 0.1);
  border: 1px solid rgba(63, 163, 150, 0.22);
}

.ai-compose {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ai-compose textarea {
  flex: 1;
  min-height: 52px;
  resize: vertical;
  background: rgba(12, 14, 18, 0.6);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--cream);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
}

.platform-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--cream-dim);
  margin-bottom: 0.35rem;
}

.platform-form input,
.platform-form select,
.platform-form textarea {
  width: 100%;
  background: rgba(12, 14, 18, 0.6);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--cream);
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.platform-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.platform-table th,
.platform-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--card-border);
}

.platform-table th { color: var(--gold); font-weight: 500; }

[dir="rtl"] .platform-table th,
[dir="rtl"] .platform-table td { text-align: right; }

.voice-soon {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
  border: 1px dashed rgba(207, 168, 94, 0.35);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 0%, rgba(207, 168, 94, 0.08), transparent 60%);
}

.voice-soon .ez-icon {
  width: 3rem;
  height: 3rem;
  color: var(--gold-bright);
  margin: 0 auto 1rem;
}

.lang-switcher {
  display: inline-flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.lang-switcher button {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--cream-dim);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

.lang-switcher button.is-active {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.platform-nav-extra {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.platform-nav-extra a {
  font-size: 0.88rem;
  color: var(--cream-dim);
}

.platform-nav-extra a:hover { color: var(--gold-bright); }

.login-shell {
  max-width: 420px;
  margin: 0 auto;
}

.timeline-item {
  padding-left: 1.25rem;
  border-left: 2px solid rgba(63, 163, 150, 0.35);
  margin-bottom: 1rem;
}

[dir="rtl"] .timeline-item {
  padding-left: 0;
  padding-right: 1.25rem;
  border-left: none;
  border-right: 2px solid rgba(63, 163, 150, 0.35);
}

.cms-output {
  background: rgba(12, 14, 18, 0.5);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  max-height: 360px;
  overflow: auto;
  font-size: 0.85rem;
  white-space: pre-wrap;
  font-family: ui-monospace, monospace;
}
