/* Summary page - Discord Checkpoint style */
.summary-layout {
  display: flex;
  width: 100%;
  height: 100vh;
  align-items: stretch;
}

.summary-cards {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.card-stack {
  position: relative;
  width: 300px;
  height: 450px;
}

.github-card {
  position: absolute;
  width: 280px;
  height: 405px;
  background: linear-gradient(145deg, #ff5caa, #ff7eb8);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(255, 92, 170, 0.3);
  transition: transform 0.3s ease;
  border: 2px solid #1a1a2e;
}

.github-card.back {
  transform: rotate(-8deg) translateX(-20px);
  z-index: 1;
  background: linear-gradient(145deg, #1a1a2e, #2d2d44);
  border: 2px solid rgba(255, 92, 170, 0.5);
}

.github-card.front {
  transform: rotate(4deg) translateX(20px);
  z-index: 2;
  cursor: pointer;
}

.github-card:hover {
  transform: rotate(0deg) translateX(0) scale(1.02);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 0.02em;
}

.card-header-title {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-header-title svg {
  width: 14px;
  height: 14px;
}

.card-level {
  background: rgba(0, 0, 0, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  color: #1a1a2e;
}

.card-image {
  width: 100%;
  height: 160px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.card-image .card-profile-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #1a1a2e;
  background: rgba(255, 255, 255, 0.3);
}

.card-image .card-vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-align: left;
  rotate: 180deg;
}

.card-image .card-vertical-text .heart {
  color: #e25555;
  font-size: 1.5rem;
  rotate: 90deg;
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
}

.card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  position: absolute;
  bottom: -10px;
  right: -10px;
  border: 3px solid currentColor;
  background: var(--bg-dark);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card-info {
  color: #1a1a2e;
}

.card-year {
  font-size: 0.6rem;
  font-weight: 600;
  opacity: 0.6;
  letter-spacing: 0.03em;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.1;
}

.card-icons {
  display: flex;
  gap: 5px;
}

.card-icons svg {
  width: 18px;
  height: 18px;
  color: #1a1a2e;
  opacity: 0.5;
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.card-stat {
  text-align: center;
  color: #1a1a2e;
}

.card-stat-value {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a2e;
}

.card-stat-label {
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #1a1a2e;
  opacity: 0.6;
  margin-top: 1px;
}

.card-stat.wide {
  grid-column: span 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  margin-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.card-stat.wide .card-stat-label {
  font-size: 0.5rem;
  opacity: 0.6;
}

.card-stat.wide .card-stat-value {
  font-size: 0.85rem;
}

/* Card zoom overlay */
.card-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

.card-zoom-overlay.active {
  opacity: 1;
  visibility: visible;
}

.card-zoom-overlay .zoomed-card {
  transform: scale(2.5);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.card-zoom-overlay.active .zoomed-card {
  transform: scale(2.5);
}

.card-zoom-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  pointer-events: none;
}

/* Share overlay styles */
.share-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: auto;
  padding: 2rem;
}

.share-overlay.active {
  opacity: 1;
  visibility: visible;
}

.share-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-height: 100%;
}

.share-card-container {
  transform: scale(1.2);
  margin: 2rem 0;
}

.share-card-preview {
  box-shadow: 0 30px 80px rgba(255, 92, 170, 0.4);
}

.share-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-bottom: 1rem;
}

.download-btn,
.close-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.download-btn {
  background: var(--theme-pink);
  color: #000;
  border: 2px solid var(--theme-pink);
}

.download-btn:hover {
  background: #ff7eb8;
  border-color: #ff7eb8;
  transform: translateY(-2px);
}

.download-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.close-share-btn {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.close-share-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.summary-stats {
  flex: 1;
  background: rgba(128, 0, 80, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  position: relative;
}

.summary-header {
  margin-bottom: 2rem;
}

.summary-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: currentColor;
}

.summary-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: currentColor;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-item-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: currentColor;
  opacity: 0.8;
}

.stat-item-label svg {
  width: 14px;
  height: 14px;
}

.stat-item-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: currentColor;
}

.stat-item-value.small {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-item-value img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.share-btn {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  background: var(--bg-dark);
  color: currentColor;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.share-btn.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

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

.share-btn svg {
  width: 18px;
  height: 18px;
}

.restart-btn {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.restart-btn.show {
  opacity: 0.7;
  transform: scale(1) translateY(0);
}

.restart-btn:hover {
  opacity: 1;
  background: var(--theme-pink);
  color: #000;
  transform: scale(1.05) translateY(-2px);
}

/* 3D Geometric decoration */
.geometric-deco {
  position: absolute;
  opacity: 0.3;
  pointer-events: none;
}

.geometric-deco.left {
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
}

.geometric-deco.right {
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
}
