/**
 * AI Reports - Dedicated Styles
 *
 * Styles dla raportów AI Visibility Analysis i AI Content Analysis
 *
 * @package non
 */

/* ========================================
   RESET & BASE STYLES
   ======================================== */

.ai-report {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #f9fafb;
}

.ai-report * {
  box-sizing: border-box;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.report-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.report-with-sidebar {
  display: block;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
}

/* ========================================
   SECTIONS
   ======================================== */

.report-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 60px 40px;
  margin-bottom: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .report-section {
    padding: 40px 24px;
  }
}

.report-section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.report-section-header {
  margin-bottom: 40px;
  text-align: center;
}

.report-section-subtitle {
  font-size: 18px;
  color: #6b7280;
  margin-top: 12px;
}

/* ========================================
   COVER PAGE
   ======================================== */

.report-cover {
  text-align: center;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.report-header {
  margin-bottom: 60px;
}

.report-logo {
  height: 40px;
  width: auto;
}

.report-cover-title {
  margin-bottom: 60px;
}

.report-subtitle {
  font-size: 20px;
  color: #6b7280;
  margin-top: 16px;
  font-weight: 400;
}

.report-cover-info {
  margin: 60px 0;
}

.report-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  text-align: left;
}

.report-info-item {
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
}

.report-info-label {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 500;
}

.report-info-value {
  font-size: 18px;
  color: #1f2937;
  font-weight: 600;
}

.report-info-url {
  word-break: break-all;
  font-size: 16px;
}

.report-screenshot {
  margin: 60px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.report-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
}

.report-cover-footer {
  margin-top: auto;
  padding-top: 40px;
}

/* ========================================
   CARDS
   ======================================== */

.report-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
}

.report-card:last-child {
  margin-bottom: 0;
}

.report-card h3,
.report-card h4 {
  margin-bottom: 24px;
  color: #1f2937;
}

/* ========================================
   BRAND MATCH
   ======================================== */

.brand-match {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  color: #5716f7;
}

.brand-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
}

.brand-status-success {
  background: #ecfdf5;
  color: #065f46;
}

.brand-status-warning {
  background: #fef3c7;
  color: #92400e;
}

/* ========================================
   AI VISIBILITY GRID
   ======================================== */

.ai-visibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.ai-system-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.ai-system-item.is-visible {
  border-color: #22c55e;
  background: #f0fdf4;
}

.ai-system-item.is-not-visible {
  border-color: #ef4444;
  background: #fef2f2;
}

.ai-system-icon {
  margin-bottom: 12px;
}

.ai-system-name {
  font-weight: 600;
  color: #1f2937;
  text-align: center;
  margin-bottom: 8px;
}

.ai-system-status {
  font-size: 14px;
  color: #6b7280;
}

/* AI Visibility Counter */
.ai-visibility-counter {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border-color: #5716f7;
  justify-content: center;
}

.visibility-counter-number {
  font-size: 48px;
  font-weight: 700;
  color: #5716f7;
  line-height: 1;
  margin-bottom: 12px;
}

.visibility-counter-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  text-align: center;
}

/* ========================================
   TRAFFIC COMPARISON
   ======================================== */

.traffic-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.traffic-item {
  padding: 24px;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
}

.traffic-item-organic {
  background: #f0f9ff;
  border-color: #3b82f6;
}

.traffic-item-ai {
  background: #f0fdf4;
  border-color: #22c55e;
}

.traffic-label {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.traffic-value {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.traffic-percentage {
  font-size: 14px;
  color: #6b7280;
}

/* ========================================
   TABLES
   ======================================== */

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.report-table thead th {
  background: #f9fafb;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
  font-size: 14px;
}

.report-table tbody td {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

.report-table tbody tr:last-child td {
  border-bottom: none;
}

.report-table tbody tr:hover {
  background: #f9fafb;
}

.llm-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1f2937;
}

.llm-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.change-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  margin-left: 8px;
}

.change-up {
  color: #22c55e;
}

.change-down {
  color: #ef4444;
}

.change-neutral {
  color: #94a3b8;
}

/* ========================================
   PROMPTS
   ======================================== */

.prompts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prompt-item {
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.prompt-header {
  margin-bottom: 12px;
}

.prompt-text {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.prompt-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #6b7280;
}

.prompt-llm {
  padding: 4px 8px;
  background: #5716f7;
  color: #ffffff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.prompt-volume {
  font-weight: 500;
}

.prompt-answer p {
  color: #374151;
  margin-bottom: 12px;
}

.prompt-expand {
  background: #eff6ff;
  border: 1px solid #3b82f6;
  color: #3b82f6;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  margin-top: 10px;
}

.prompt-expand:hover {
  background: #dbeafe;
  border-color: #2563eb;
  color: #2563eb;
}

.prompt-expand::before {
  content: "+";
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.prompt-expand[data-expanded="true"]::before {
  content: "−";
}

.prompt-links {
  margin-top: 12px;
  font-size: 14px;
}

.prompt-links ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.prompt-links li {
  margin-bottom: 4px;
}

/* Split prompt layout (1/3 position, 2/3 content) */
.prompt-item-split {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.prompt-position {
  flex: 0 0 calc(33.333% - 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.position-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  text-align: center;
  /* margin-bottom: 8px; */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.position-number {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5716f7 0%, #7c3aed 100%);
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(87, 22, 247, 0.2);
}

/* Position 1-5: Keep purple gradient */
.position-number.position-1-5 {
  background: linear-gradient(135deg, #5716f7 0%, #7c3aed 100%);
  box-shadow: 0 4px 12px rgba(87, 22, 247, 0.2);
}

/* Position 6-9: Yellow gradient */
.position-number.position-6-9 {
  background: linear-gradient(135deg, #ffe02c 0%, #ffc700 100%);
  box-shadow: 0 4px 12px rgba(255, 224, 44, 0.25);
  color: #1f2937;
}

/* Position 10+: Red/Pink gradient */
.position-number.position-10-plus {
  background: linear-gradient(135deg, #fc305c 0%, #e02048 100%);
  box-shadow: 0 4px 12px rgba(252, 48, 92, 0.25);
  color: #ffffff;
}

.prompt-linked-pages {
  margin-top: 12px;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.prompt-linked-pages strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #374151;
}

.linked-pages-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.linked-page-url {
  display: block;
  padding: 6px 0;
  font-size: 12px;
  color: #5716f7;
  text-decoration: none;
  word-break: break-all;
}

.linked-page-url:hover {
  text-decoration: underline;
}

.prompt-content {
  flex: 0 0 calc(66.666% - 10px);
}

/* Report cover meta (Market and Date below screenshot) */
.report-cover-meta {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 24px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

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

.report-meta-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.report-meta-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
}

/* Traffic previous data */
.traffic-previous {
  font-size: 14px;
  color: #6b7280;
  margin-top: 8px;
}

/* Traffic percentage inline (between value and arrow) */
.traffic-percentage-inline {
  font-size: 16px;
  color: #6b7280;
  font-weight: 400;
  margin: 0 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .prompt-item-split {
    flex-direction: column;
  }

  .prompt-position,
  .prompt-content {
    flex: 1 1 100%;
  }

  .position-number {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
}

.prompt-links a {
  color: #5716f7;
  text-decoration: none;
}

.prompt-links a:hover {
  text-decoration: underline;
}

/* ========================================
   COMMERCIAL PROMPTS
   ======================================== */

.commercial-prompts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.commercial-prompt-item {
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.commercial-prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.commercial-prompt-keyword {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  flex: 1;
}

.commercial-prompt-position {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

/* Position colors (reuse existing classes) */
.commercial-prompt-position.position-1-5 {
  background: linear-gradient(135deg, #5716f7 0%, #7c3aed 100%);
  color: #ffffff;
}

.commercial-prompt-position.position-6-9 {
  background: linear-gradient(135deg, #ffe02c 0%, #ffc700 100%);
  color: #1f2937;
}

.commercial-prompt-position.position-10-plus {
  background: linear-gradient(135deg, #fc305c 0%, #e02048 100%);
  color: #ffffff;
}

.commercial-prompt-position.position-not-found {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.commercial-prompt-content {
  margin-bottom: 16px;
}

.commercial-prompt-overview {
  margin-bottom: 20px;
}

.commercial-prompt-overview h5,
.commercial-prompt-references h5 {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ai-overview-text {
  padding: 16px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  line-height: 1.8;
  color: #374151;
}

/* Markdown styling in AI Overview */
.ai-overview-text strong {
  font-weight: 600;
  color: #1f2937;
}

.ai-overview-text ul,
.ai-overview-text ol {
  margin: 12px 0;
  padding-left: 24px;
}

.ai-overview-text li {
  margin-bottom: 8px;
}

.references-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.references-list li {
  padding: 12px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  position: relative;
}

.references-list li.reference-client {
  background: #fef3c7;
  border-color: #f59e0b;
}

.reference-badge {
  display: inline-block;
  padding: 4px 8px;
  background: #f59e0b;
  color: #ffffff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 8px;
  vertical-align: middle;
}

.references-list a {
  color: #5716f7;
  text-decoration: none;
  display: block;
}

.references-list a:hover {
  text-decoration: underline;
}

.references-list strong {
  display: block;
  margin-bottom: 4px;
  color: #1f2937;
  font-size: 14px;
}

.reference-text {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.card-description {
  font-size: 14px;
  color: #6b7280;
  margin-top: -12px;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .commercial-prompt-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .commercial-prompt-position {
    align-self: flex-start;
  }
}

/* ========================================
   COMPETITORS
   ======================================== */

.competitors-grid {
  display: grid;
  gap: 32px;
}

.competitor-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e5e7eb;
}

.competitor-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.competitor-logo img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.competitor-info h3 {
  margin: 0 0 4px 0;
}

.competitor-domain {
  color: #6b7280;
  font-size: 14px;
}

.competitor-screenshot {
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.competitor-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.competitor-traffic {
  background: #ffffff;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.traffic-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.traffic-row:last-child {
  border-bottom: none;
}

.stats-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1f2937;
}

.report-table-compact {
  font-size: 13px;
}

.report-table-compact thead th,
.report-table-compact tbody td {
  padding: 10px 12px;
}

.prompts-simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.prompts-simple-list li {
  padding: 12px;
  background: #ffffff;
  border-radius: 6px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.prompts-simple-list .prompt-text {
  flex: 1;
  font-size: 14px;
  margin: 0;
}

.prompt-llm-badge {
  padding: 4px 8px;
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* ========================================
   BENCHMARK
   ======================================== */

.leaders-grid {
  display: grid;
  gap: 16px;
}

.leader-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.leader-item.is-you {
  background: #fef3c7;
  border-color: #f59e0b;
}

.leader-item.leader-win {
  background: #dcfce7;
  border-color: #16a34a;
}

.leader-item.leader-lose {
  background: #fee2e2;
  border-color: #dc2626;
}

.leader-llm {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #374151;
}

.llm-logo-small {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.leader-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.leader-icon {
  width: 20px;
  height: 20px;
}

.leader-badge {
  padding: 4px 8px;
  background: #f59e0b;
  color: #ffffff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.comparison-item {
  padding: 24px;
  background: #f9fafb;
  border-radius: 8px;
  text-align: center;
}

.comparison-label {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}

.comparison-value {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.comparison-positive {
  color: #22c55e;
}

.comparison-negative {
  color: #ef4444;
}

.comparison-percentage {
  font-size: 18px;
  font-weight: 600;
  color: #6b7280;
}

.comparison-insight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fef3c7;
  border-radius: 8px;
  border: 1px solid #f59e0b;
}

.comparison-insight svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.comparison-insight p {
  margin: 0;
  color: #92400e;
  font-size: 14px;
}

.growth-comparison {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.growth-section {
  padding: 24px;
  background: #f9fafb;
  border-radius: 8px;
}

.growth-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.growth-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.growth-bar-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.growth-bar-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.growth-bar-wrapper {
  background: #e5e7eb;
  border-radius: 8px;
  height: 32px;
  position: relative;
  overflow: hidden;
}

.growth-bar {
  background: #5716f7;
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  transition: width 0.5s ease;
}

.growth-bar-competitor {
  background: #ef4444;
}

.growth-bar-value {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
}

/* ========================================
   SUMMARY & CONTACT
   ======================================== */

.report-summary {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 2px solid #5716f7;
}

.summary-icon {
  text-align: center;
  margin-bottom: 24px;
}

.summary-content {
  font-family: Nimbussanl Bol, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}

.summary-content h3 {
  letter-spacing: -0.0875rem;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-top: 24px;
  margin-bottom: 12px;
}

.summary-content h3:first-child {
  margin-top: 0;
}

.summary-content p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.summary-content p:last-child {
  margin-bottom: 0;
}

.summary-content code {
  /* background: #f3f4f6; */
  padding: 2px 6px;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  color: #111827;
  font-weight: 500;
}

.summary-content strong {
  font-weight: 700;
}

.summary-content em {
  font-style: italic;
}

.report-contact {
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.contact-photo {
  position: relative;
}

.consultant-photo {
  width: 100%;
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
}

.contact-description {
  font-size: 16px;
  color: #6b7280;
  margin: 16px 0 24px;
}

.consultant-details {
  margin-bottom: 24px;
}

.consultant-name {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.consultant-role {
  font-size: 14px;
  color: #6b7280;
  margin-top: 4px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  text-decoration: none;
  color: #1f2937;
  transition: all 0.2s ease;
}

.contact-method:hover {
  background: #f3f4f6;
  transform: translateX(4px);
}

.contact-method-icon {
  color: #5716f7;
}

.contact-method-text {
  flex: 1;
}

.contact-method-label {
  font-size: 12px;
  color: #6b7280;
}

.contact-method-value {
  font-weight: 600;
  color: #1f2937;
  margin-top: 2px;
}

.contact-cta {
  margin-top: 24px;
}

.contact-cta .button {
  display: inline-flex;
  max-width: fit-content;
  width: auto;
}

/* ========================================
   FOOTER
   ======================================== */

.report-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #e5e7eb;
}

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

@media (max-width: 768px) {
  .report-footer-content {
    flex-direction: column;
    text-align: center;
  }
}

.report-footer-text p {
  margin: 4px 0;
}

/* ========================================
   CONTENT REPORT - SCORE CARD
   ======================================== */

.report-score-card {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: none;
}

.score-main {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 768px) {
  .score-main {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.score-circle {
  display: flex;
  justify-content: center;
}

.score-breakdown {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.score-breakdown-item {
  display: grid;
  grid-template-columns: 140px 1fr 60px;
  gap: 12px;
  align-items: center;
}

.score-breakdown-label {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.score-breakdown-bar {
  background: #e5e7eb;
  border-radius: 8px;
  height: 12px;
  overflow: hidden;
}

.score-breakdown-progress {
  background: #5716f7;
  height: 100%;
  border-radius: 8px;
  transition: width 0.5s ease;
}

.score-breakdown-value {
  font-weight: 700;
  color: #5716f7;
  text-align: right;
}

/* ========================================
   CONTENT STATS GRID
   ======================================== */

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

.content-stat-item {
  text-align: center;
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
}

.content-stat-icon {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.content-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.content-stat-label {
  font-size: 14px;
  color: #6b7280;
}

/* ========================================
   OPTIMIZATION ITEMS
   ======================================== */

.optimization-item {
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
}

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

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

.optimization-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.optimization-score {
  font-size: 18px;
  font-weight: 700;
  color: #5716f7;
}

.optimization-score .score-value {
  font-size: 24px;
}

.optimization-progress-bar {
  background: #e5e7eb;
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.optimization-progress {
  background: #5716f7;
  height: 100%;
  border-radius: 8px;
  transition: width 0.5s ease;
}

.optimization-recommendation {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}

/* ========================================
   LLM PERFORMANCE
   ======================================== */

.llm-performance-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.llm-performance-item {
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
}

.llm-performance-item.is-visible {
  border-color: #22c55e;
}

.llm-performance-item.is-not-visible {
  border-color: #ef4444;
}

.llm-perf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.llm-perf-name {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.status-success {
  background: #ecfdf5;
  color: #065f46;
}

.status-error {
  background: #fef2f2;
  color: #991b1b;
}

.llm-perf-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

.llm-perf-snippet {
  padding: 16px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.snippet-text {
  font-size: 14px;
  color: #374151;
  font-style: italic;
  margin: 8px 0 0 0;
  line-height: 1.6;
}

/* ========================================
   IMPROVEMENTS
   ======================================== */

.improvements-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.improvement-item {
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
}

.improvement-priority-high {
  border-left: 4px solid #ef4444;
}

.improvement-priority-medium {
  border-left: 4px solid #f59e0b;
}

.improvement-priority-low {
  border-left: 4px solid #3b82f6;
}

.improvement-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.improvement-priority-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.improvement-priority-high .improvement-priority-badge {
  background: #fee2e2;
  color: #991b1b;
}

.improvement-priority-medium .improvement-priority-badge {
  background: #fef3c7;
  color: #92400e;
}

.improvement-priority-low .improvement-priority-badge {
  background: #dbeafe;
  color: #1e40af;
}

.improvement-category {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.improvement-issue,
.improvement-impact,
.improvement-recommendation {
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.improvement-estimated-impact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #ecfdf5;
  color: #065f46;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

/* ========================================
   SIDEBAR - Basic Styles
   ======================================== */

.report-sidebar-inner {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

.sidebar-logo {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-logo-img {
  height: 28px;
  width: auto;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.toc-nav {
  margin-bottom: 20px;
}

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

.toc-item {
  margin-bottom: 4px;
}

.toc-item-h3 {
  padding-left: 16px;
}

.toc-link {
  display: block;
  padding: 8px 12px;
  color: #6b7280;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.toc-item-h3 .toc-link {
  font-size: 12px;
  padding: 6px 12px;
  color: #9ca3af;
}

.toc-link:hover {
  background: #f3f4f6;
  color: #5716f7;
}

.sidebar-cta {
  padding: 16px;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border-radius: 12px;
  border: 2px solid #5716f7;
  text-align: center;
}

.sidebar-cta-photo {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.cta-consultant-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-cta-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
  line-height: 1.4;
}

.sidebar-consultant-info {
  margin-bottom: 12px;
}

.sidebar-consultant-info .consultant-name {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.sidebar-consultant-info .consultant-role {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.sidebar-contact-methods {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.sidebar-contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-contact-link:hover {
  background: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sidebar-contact-link svg {
  color: #5716f7;
  flex-shrink: 0;
}

.sidebar-cta-button {
  width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-primary:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.btn-schedule svg {
  stroke: currentColor;
}

.sidebar-scroll-top {
  display: none;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: #f3f4f6;
  border: none;
  border-radius: 8px;
  color: #374151;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-scroll-top:hover {
  background: #e5e7eb;
}

@media (max-width: 1024px) {
  .sidebar-scroll-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
}

/* ========================================
   SIDEBAR TOGGLE & ANIMATIONS
   ======================================== */

/* Sidebar Toggle Button */
.sidebar-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 80px;
}

.sidebar-toggle:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.sidebar-toggle-expand-arrow {
  color: #5716f7;
}

.sidebar-toggle-label {
  font-size: 10px;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.2em;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-toggle-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #5716f7;
}

.sidebar-toggle-icons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-toggle-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 50%;
  color: #5716f7;
  transition: all 0.2s ease;
}

.sidebar-toggle-icon:hover {
  background: #5716f7;
  color: #ffffff;
}

/* When sidebar is open, hide toggle button */
.sidebar-open .sidebar-toggle {
  display: none;
}

/* Sidebar Overlay - disabled */
.sidebar-overlay {
  display: none;
}

/* Sidebar Positioning & Animation */
.report-sidebar {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100vh;
  background: #f9fafb;
  z-index: 1000;
  overflow-y: auto;
  transition: right 0.3s ease;
  padding: 20px;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
}

.sidebar-open .report-sidebar {
  right: 0;
}

.sidebar-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.sidebar-close-btn:hover {
  background: #f3f4f6;
  color: #5716f7;
}

.sidebar-logo-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
  padding: 0;
}

.sidebar-logo-close:hover {
  background: #f3f4f6;
  color: #5716f7;
}

/* Responsive sidebar toggle */
@media (max-width: 768px) {
  .sidebar-toggle {
    width: 64px;
    padding: 12px 8px;
    gap: 8px;
  }

  .sidebar-toggle-label {
    font-size: 9px;
    gap: 1px;
  }

  .sidebar-toggle-avatar {
    width: 40px;
    height: 40px;
  }

  .sidebar-toggle-icon {
    width: 40px;
    height: 40px;
  }

  .sidebar-toggle-icon svg {
    width: 14px;
    height: 14px;
  }

  .report-sidebar {
    width: 300px;
    right: -300px;
  }
}

@media (max-width: 480px) {
  .sidebar-toggle {
    width: 56px;
    top: 16px;
    right: 16px;
    padding: 10px 6px;
    gap: 6px;
  }

  .sidebar-toggle-label {
    font-size: 8px;
    gap: 1px;
  }

  .sidebar-toggle-avatar {
    width: 36px;
    height: 36px;
  }

  .sidebar-toggle-icon {
    width: 36px;
    height: 36px;
  }

  .sidebar-toggle-icon svg {
    width: 12px;
    height: 12px;
  }

  .report-sidebar {
    width: 280px;
    right: -280px;
    padding: 16px;
  }
}

/* ========================================
   UTILITIES
   ======================================== */

.text-size-small {
  font-size: 14px;
}

.text-color-secondary {
  color: #6b7280;
}

.text-color-primary {
  color: #1f2937;
}

.text-color-black {
  color: #000000;
}

.heading-style-h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: #1f2937;
}

.heading-style-h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2937;
}

.heading-style-h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: #1f2937;
}

.heading-style-h4 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: #1f2937;
}

@media (max-width: 768px) {
  .heading-style-h1 {
    font-size: 36px;
  }

  .heading-style-h2 {
    font-size: 28px;
  }

  .heading-style-h3 {
    font-size: 20px;
  }
}

.llm-stats-table {
  overflow-x: auto;
}

.report-table-compact {
  overflow-x: auto;
}

.llm-breakdown-table {
  overflow-x: auto;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .report-sidebar {
    display: none;
  }

  .report-with-sidebar {
    grid-template-columns: 1fr;
  }

  .report-section {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sidebar-scroll-top {
    display: none;
  }
}

/* ============================================
   COMMERCIAL PROMPTS SUBSECTION
   ============================================ */

.commercial-prompts-subsection {
  margin-top: 48px;
}

.commercial-prompts-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  font-size: 13px;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.commercial-prompts-legend .legend-title {
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  margin-bottom: 4px;
}

.commercial-prompts-legend .legend-item {
  display: flex;
  gap: 4px;
  line-height: 1.6;
}

.commercial-prompts-legend .legend-item strong {
  color: #1f2937;
  font-weight: 600;
}

.commercial-prompts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.commercial-prompt-item {
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.commercial-prompt-item:hover {
  background: #f3f4f6;
}

.commercial-prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.commercial-prompt-keyword {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  flex: 1;
  line-height: 1.4;
}

.commercial-prompt-indicators {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Status badges with labels */
.status-badges {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid;
  white-space: nowrap;
}

.status-badge.status-yes {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.status-badge.status-no {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.status-badge .status-label {
  font-weight: 500;
}

.status-badge .status-icon {
  font-weight: 700;
  font-size: 13px;
}

/* Position badges in header */
.position-badges-inline {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.position-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
}

.position-badge.position-1-5 {
  background: #f5f3ff;
  color: #5716f7;
  border-color: #c4b5fd;
}

.position-badge.position-6-9 {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde047;
}

.position-badge.position-10-plus {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.position-badge.position-none {
  background: #f9fafb;
  color: #6b7280;
  border-color: #d1d5db;
}

.position-badge.position-no-refs {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.visibility-indicator {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid;
  letter-spacing: 0.01em;
}

.visibility-indicator.visibility-none {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.visibility-indicator.visibility-partial {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.visibility-indicator.visibility-medium {
  background: #fefce8;
  color: #a16207;
  border-color: #fde047;
}

.visibility-indicator.visibility-top5 {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.commercial-prompt-content {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.commercial-prompt-positions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.positions-heading {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px 0;
}

.position-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.position-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.position-value {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  padding: 4px 10px;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

.position-value.position-1-5 {
  background: #f5f3ff;
  color: #5716f7;
  border-color: #5716f7;
}

.position-value.position-6-9 {
  background: #fef3c7;
  color: #92400e;
  border-color: #fbbf24;
}

.position-value.position-10-plus {
  background: #fee2e2;
  color: #991b1b;
  border-color: #f87171;
}

.commercial-prompt-overview {
  margin-bottom: 20px;
}

.commercial-prompt-overview h5 {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}

.ai-overview-text {
  color: #4b5563;
  line-height: 1.6;
}

.ai-overview-text h6 {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-top: 12px;
  margin-bottom: 8px;
}

.ai-overview-text p {
  margin-bottom: 12px;
}

.commercial-prompt-toggle {
  margin-top: 12px;
  background: #eff6ff;
  border: 1px solid #3b82f6;
  color: #3b82f6;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.commercial-prompt-toggle:hover {
  background: #dbeafe;
  border-color: #2563eb;
  color: #2563eb;
}

/* Zmień kolor fioletowy na neutralny w linked pages */
.prompt-linked-pages {
  margin-top: 20px;
}

.prompt-linked-pages strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.linked-pages-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: link-counter;
}

.linked-page-url {
  display: block;
  padding: 10px 14px;
  padding-left: 38px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #4b5563;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s ease;
  position: relative;
  counter-increment: link-counter;
  line-height: 1.5;
}

.linked-page-url::before {
  content: counter(link-counter);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: #e5e7eb;
  color: #6b7280;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.linked-page-url:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #1f2937;
}

.linked-page-url.client-domain {
  background: #fef3c7;
  border-color: #fbbf24;
  color: #92400e;
  font-weight: 600;
}

.linked-page-url.client-domain::before {
  background: #fbbf24;
  color: #ffffff;
}

.linked-page-url.client-domain:hover {
  background: #fde68a;
  border-color: #f59e0b;
}

/* Visual Comparison Section (Benchmark) */
.visual-comparison-section {
  margin-bottom: 32px;
}

.visual-comparison-section:last-child {
  margin-bottom: 0;
}

.visual-comparison-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
}

/* Growth bar dla klienta (purple) */
.growth-bar-client {
  background: #5716f7;
}

/* Obsługa bardzo małych wartości w Visual Comparison */
.visual-comparison-section .growth-bar-wrapper {
  overflow: visible; /* Pozwól wartościom wychodzić poza bar */
}

.visual-comparison-section .growth-bar-value {
  white-space: nowrap;
  display: inline-block;
  min-width: max-content;
}

/* Dla progress barów klienta - wartość wewnątrz na biało */
.visual-comparison-section .growth-bar-client .growth-bar-value {
  color: #ffffff;
  font-weight: 600;
}

/* Per-LLM Breakdown Table */
.llm-breakdown-table {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.llm-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 16px;
  padding: 12px 16px;
  background: #f9fafb;
  font-weight: 600;
  font-size: 14px;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}

.llm-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  align-items: center;
}

.llm-table-row:last-child {
  border-bottom: none;
}

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

.llm-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.col-you,
.col-best {
  font-weight: 600;
  color: #1f2937;
}

.col-gap {
  font-weight: 600;
}

.gap-negative {
  color: #dc2626;
}

.gap-positive {
  color: #16a34a;
}

.col-pos {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pos-you {
  color: #5716f7;
  font-weight: 600;
}

.pos-separator {
  color: #9ca3af;
}

.pos-best {
  color: #6b7280;
}

/* Growth Metrics Grid */
.growth-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.metric-card {
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  text-align: center;
}

.metric-label {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
  font-weight: 500;
}

.metric-value {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.metric-change-positive {
  color: #16a34a;
}

.metric-change-negative {
  color: #dc2626;
}

.metric-percent {
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
  .commercial-prompt-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .commercial-prompt-indicators {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .commercial-prompt-positions {
    flex-direction: column;
    gap: 12px;
  }

  .growth-metrics-grid {
    grid-template-columns: 1fr;
  }

  /* Adjust LLM table grid for mobile */
  .llm-table-header,
  .llm-table-row {
    grid-template-columns: 140px 80px 80px 80px 140px;
  }

  /* Ensure table container allows horizontal scroll */
  .llm-breakdown-table {
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Add padding back to table rows */
  .llm-table-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Reduce padding on mobile for more space */
  .llm-table-row {
    padding: 12px 16px;
  }

  /* Adjust position column layout for better fit */
  .col-pos {
    gap: 4px;
  }

  /* Slightly smaller font for position values on mobile */
  .pos-you,
  .pos-separator,
  .pos-best {
    font-size: 14px;
  }
}
