/* ============================================
   DETAIL PAGE SUMMARY CARD - Premium At-a-Glance
   Matches comparison page card design language
   ============================================ */

/* Summary Card Container */
.summary-card {
  position: relative;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  overflow: hidden;
  animation: summaryFadeIn 0.6s ease-out;
}

[data-theme="light"] .summary-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-color: var(--color-border);
  box-shadow: var(--shadow-lg);
}

.summary-card[data-brand="amd"] {
  border-color: rgba(237, 28, 36, 0.35);
}

.summary-card[data-brand="intel"] {
  border-color: rgba(0, 113, 197, 0.35);
}

.summary-card[data-brand="nvidia"] {
  border-color: rgba(118, 185, 0, 0.35);
}

[data-theme="light"] .summary-card[data-brand="amd"] { border-color: rgba(237, 28, 36, 0.4); }
[data-theme="light"] .summary-card[data-brand="intel"] { border-color: rgba(0, 113, 197, 0.4); }
[data-theme="light"] .summary-card[data-brand="nvidia"] { border-color: rgba(118, 185, 0, 0.4); }

@keyframes summaryFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Top gradient border */
.summary-card-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.summary-card[data-brand="amd"] .summary-card-border {
  background: linear-gradient(90deg, #ed1c24, #f97316, #fbbf24);
}

.summary-card[data-brand="intel"] .summary-card-border {
  background: linear-gradient(90deg, #0071c5, #3b82f6, #60a5fa);
}

.summary-card[data-brand="nvidia"] .summary-card-border {
  background: linear-gradient(90deg, #76b900, #22c55e, #10b981);
}

/* Glow effect */
.summary-card-glow {
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.summary-card[data-brand="amd"] .summary-card-glow {
  background: radial-gradient(ellipse at 30% 20%, rgba(237, 28, 36, 0.06) 0%, transparent 60%);
}

.summary-card[data-brand="nvidia"] .summary-card-glow {
  background: radial-gradient(ellipse at 30% 20%, rgba(118, 185, 0, 0.06) 0%, transparent 60%);
}

[data-theme="light"] .summary-card-glow { display: none; }

/* Header */
.summary-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.summary-card-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

[data-theme="light"] .summary-card-title {
  color: var(--color-text-muted);
}

.summary-card-title-icon {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.summary-card-title-icon svg {
  width: 100%;
  height: 100%;
}

.summary-card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.summary-card[data-brand="amd"] .summary-card-badge {
  background: rgba(237, 28, 36, 0.12);
  color: #f87171;
  border-color: rgba(237, 28, 36, 0.25);
}

.summary-card[data-brand="intel"] .summary-card-badge {
  background: rgba(0, 113, 197, 0.12);
  color: #60a5fa;
  border-color: rgba(0, 113, 197, 0.25);
}

.summary-card[data-brand="nvidia"] .summary-card-badge {
  background: rgba(118, 185, 0, 0.12);
  color: #86efac;
  border-color: rgba(118, 185, 0, 0.25);
}

[data-theme="light"] .summary-card-badge {
  background: var(--color-background-secondary);
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}

/* Stats Grid */
.summary-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-md);
}

/* Individual Stat Item */
.summary-stat {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
  animation: statSlideIn 0.5s ease-out both;
  overflow: hidden;
  min-width: 0;
}

.summary-stat:nth-child(1) { animation-delay: 0.05s; }
.summary-stat:nth-child(2) { animation-delay: 0.1s; }
.summary-stat:nth-child(3) { animation-delay: 0.15s; }
.summary-stat:nth-child(4) { animation-delay: 0.2s; }
.summary-stat:nth-child(5) { animation-delay: 0.25s; }
.summary-stat:nth-child(6) { animation-delay: 0.3s; }
.summary-stat:nth-child(7) { animation-delay: 0.35s; }
.summary-stat:nth-child(8) { animation-delay: 0.4s; }

@keyframes statSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.summary-stat:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

[data-theme="light"] .summary-stat {
  background: var(--color-background-secondary);
  border-color: var(--color-border);
}

[data-theme="light"] .summary-stat:hover {
  background: #fff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}


/* Stat Icon */
.summary-stat-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  position: relative;
  perspective: 80px;
}

/* Icon color variants */
.summary-stat-icon.icon-cores {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.1) 100%);
}
.summary-stat-icon.icon-clock {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
}
.summary-stat-icon.icon-cache {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
}
.summary-stat-icon.icon-power {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
}
.summary-stat-icon.icon-arch {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.1) 100%);
}
.summary-stat-icon.icon-socket {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(219, 39, 119, 0.1) 100%);
}
.summary-stat-icon.icon-process {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(8, 145, 178, 0.1) 100%);
}
.summary-stat-icon.icon-date {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(147, 51, 234, 0.1) 100%);
}
.summary-stat-icon.icon-memory {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
}
.summary-stat-icon.icon-bus {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(234, 88, 12, 0.1) 100%);
}
.summary-stat-icon.icon-shaders {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.1) 100%);
}
.summary-stat-icon.icon-rt {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(147, 51, 234, 0.1) 100%);
}

/* SVG inside icons */
.summary-stat-icon svg {
  width: 20px;
  height: 20px;
}

/* Animated icon elements */
.sicon-cube {
  width: 18px;
  height: 18px;
  position: relative;
  transform-style: preserve-3d;
  animation: sicon-rotate 10s linear infinite;
}

.sicon-cube-face {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.08);
}

.sicon-cube-front { transform: translateZ(9px); }
.sicon-cube-back { transform: translateZ(-9px) rotateY(180deg); }
.sicon-cube-top { transform: rotateX(90deg) translateZ(9px); }
.sicon-cube-bottom { transform: rotateX(-90deg) translateZ(9px); }

@keyframes sicon-rotate {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Bolt animation */
.sicon-bolt {
  width: 12px;
  height: 18px;
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  clip-path: polygon(50% 0%, 100% 40%, 60% 40%, 70% 100%, 0% 55%, 45% 55%);
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
  animation: sicon-bolt-pulse 2s ease-in-out infinite;
}

@keyframes sicon-bolt-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.3)); }
  50% { filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.7)); }
}

/* Memory chips */
.sicon-mem-chips {
  display: flex;
  gap: 2px;
  align-items: flex-end;
}

.sicon-mem-chip {
  width: 5px;
  border-radius: 1.5px;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.sicon-mem-chip:nth-child(1) { height: 14px; }
.sicon-mem-chip:nth-child(2) { height: 18px; }
.sicon-mem-chip:nth-child(3) { height: 12px; }

/* Power ring */
.sicon-power-ring {
  width: 22px;
  height: 22px;
  border: 2.5px solid #ef4444;
  border-radius: 50%;
  border-top-color: transparent;
  animation: sicon-spin 2.5s linear infinite;
}

.sicon-power-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

@keyframes sicon-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Arch layers */
.sicon-arch-layers {
  display: flex;
  flex-direction: column;
  gap: 3px;
  transform: perspective(40px) rotateX(15deg);
}

.sicon-arch-layer {
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(139, 92, 246, 0.4);
}

.sicon-arch-layer:nth-child(1) { width: 18px; }
.sicon-arch-layer:nth-child(2) { width: 14px; margin-left: 2px; }
.sicon-arch-layer:nth-child(3) { width: 10px; margin-left: 4px; }

/* Socket/grid icon */
.sicon-grid {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 2px;
}

.sicon-grid-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ec4899;
  box-shadow: 0 0 4px rgba(236, 72, 153, 0.4);
}

.sicon-grid-dot:nth-child(odd) {
  animation: sicon-grid-blink 3s ease-in-out infinite;
}

.sicon-grid-dot:nth-child(even) {
  animation: sicon-grid-blink 3s ease-in-out 1.5s infinite;
}

@keyframes sicon-grid-blink {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Process circle */
.sicon-process-ring {
  width: 20px;
  height: 20px;
  border: 2px solid #06b6d4;
  border-radius: 50%;
  position: relative;
}

.sicon-process-nm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 800;
  color: #06b6d4;
}

/* Calendar icon */
.sicon-cal-body {
  width: 18px;
  height: 16px;
  border: 2px solid #a855f7;
  border-radius: 3px;
  position: relative;
}

.sicon-cal-header {
  position: absolute;
  top: -1px;
  left: 2px;
  right: 2px;
  height: 5px;
  background: #a855f7;
  border-radius: 1px 1px 0 0;
}

/* Bus/bandwidth icon */
.sicon-bus-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sicon-bus-line {
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, #f97316, #fbbf24);
}

.sicon-bus-line:nth-child(1) { width: 18px; animation: sicon-bus-flow 1.5s ease-in-out infinite; }
.sicon-bus-line:nth-child(2) { width: 14px; animation: sicon-bus-flow 1.5s ease-in-out 0.3s infinite; }
.sicon-bus-line:nth-child(3) { width: 18px; animation: sicon-bus-flow 1.5s ease-in-out 0.6s infinite; }
.sicon-bus-line:nth-child(4) { width: 10px; animation: sicon-bus-flow 1.5s ease-in-out 0.9s infinite; }

@keyframes sicon-bus-flow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Shaders icon */
.sicon-shader-grid {
  display: grid;
  grid-template-columns: repeat(4, 4px);
  gap: 1.5px;
}

.sicon-shader-unit {
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: #3b82f6;
  animation: sicon-shader-pulse 2s ease-in-out infinite;
}

.sicon-shader-unit:nth-child(2n) { animation-delay: 0.5s; }
.sicon-shader-unit:nth-child(3n) { animation-delay: 1s; }

@keyframes sicon-shader-pulse {
  0%, 100% { opacity: 0.3; background: #3b82f6; }
  50% { opacity: 1; background: #60a5fa; }
}

/* RT cores icon */
.sicon-rt-rays {
  position: relative;
  width: 22px;
  height: 22px;
}

.sicon-rt-ray {
  position: absolute;
  width: 2px;
  background: linear-gradient(180deg, #a855f7, transparent);
  border-radius: 1px;
  transform-origin: bottom center;
  bottom: 50%;
  left: 50%;
}

.sicon-rt-ray:nth-child(1) { height: 10px; transform: translateX(-1px) rotate(-30deg); animation: sicon-ray-glow 2s ease-in-out infinite; }
.sicon-rt-ray:nth-child(2) { height: 12px; transform: translateX(-1px) rotate(0deg); animation: sicon-ray-glow 2s ease-in-out 0.3s infinite; }
.sicon-rt-ray:nth-child(3) { height: 10px; transform: translateX(-1px) rotate(30deg); animation: sicon-ray-glow 2s ease-in-out 0.6s infinite; }

.sicon-rt-dot {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

@keyframes sicon-ray-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Stat Content */
.summary-stat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.summary-stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .summary-stat-label {
  color: var(--color-text-muted);
}

.summary-stat-value {
  font-size: var(--text-body);
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

[data-theme="light"] .summary-stat-value {
  color: var(--color-text-primary);
}

.summary-stat-value.highlight {
  color: #60a5fa;
}

.summary-card[data-brand="amd"] .summary-stat-value.highlight { color: #f87171; }
.summary-card[data-brand="nvidia"] .summary-stat-value.highlight { color: #86efac; }

[data-theme="light"] .summary-stat-value.highlight {
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .summary-card {
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
  }

  .summary-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .summary-stat {
    padding: var(--space-sm);
  }

  .summary-stat-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }

  .summary-stat-icon svg {
    width: 16px;
    height: 16px;
  }

  .sicon-cube { width: 14px; height: 14px; }
  .sicon-cube-face { width: 14px; height: 14px; }
  .sicon-cube-front { transform: translateZ(7px); }
  .sicon-cube-back { transform: translateZ(-7px) rotateY(180deg); }
  .sicon-cube-top { transform: rotateX(90deg) translateZ(7px); }
  .sicon-cube-bottom { transform: rotateX(-90deg) translateZ(7px); }

  .summary-stat-value {
    font-size: var(--text-small);
  }

  .summary-stat-label {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .summary-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .summary-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
}
