/**
 * ─────────────────────────────────────────────────────────
 *  GEM LUXE — Investors Portal Stylesheet
 *  Ultra-premium dark mode glassmorphism and animations
 * ─────────────────────────────────────────────────────────
 */

/* Investors Hero & Intro */
.investors-hero {
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}

.investors-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(201, 169, 110, 0.08) 0%, rgba(13, 13, 18, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.investors-hero .container-h {
  position: relative;
  z-index: 2;
}

/* Stats Dashboard Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 60px;
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(201, 169, 110, 0.3);
  transform: translateY(-2px);
}

.stat-card__label {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: rgba(245, 240, 232, 0.4);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stat-card__value {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  color: var(--color-ivory);
  font-weight: 400;
  line-height: 1.2;
}

.stat-card__delta {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.delta-positive {
  color: #a3e635; /* Lime green */
}

/* Main Layout Grid */
.portal-grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 40px;
  margin-bottom: 120px;
}

@media (max-width: 992px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
}

/* Leaderboard Container */
.leaderboard-section {
  display: flex;
  flex-direction: column;
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-header__title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--color-ivory);
}

.leaderboard-header__count {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  color: rgba(245, 240, 232, 0.5);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 20px;
}

/* The Animated Leaderboard */
.leaderboard-list {
  position: relative;
  width: 100%;
  transition: height 0.6s var(--ease-out-expo);
}

.investor-row {
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(19, 19, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), 
              border-color 0.3s ease, 
              background-color 0.4s ease;
}

.investor-row:hover {
  border-color: rgba(201, 169, 110, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

/* Row Flash Effect when receiving investment */
.investor-row.flash-active {
  background: rgba(201, 169, 110, 0.15) !important;
  border-color: var(--color-gold) !important;
}

.investor-rank {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 600;
  color: rgba(245, 240, 232, 0.3);
  width: 45px;
  flex-shrink: 0;
}

/* Special styling for top 3 ranks */
.investor-row[data-rank="1"] .investor-rank {
  color: #ffd700; /* Gold */
}
.investor-row[data-rank="2"] .investor-rank {
  color: #c0c0c0; /* Silver */
}
.investor-row[data-rank="3"] .investor-rank {
  color: #cd7f32; /* Bronze */
}

.investor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid rgba(201, 169, 110, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 500;
  margin-right: 18px;
  flex-shrink: 0;
}

.investor-identity {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.investor-name {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-ivory);
}

.investor-badge {
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  width: fit-content;
  font-weight: 500;
}

.badge-founder {
  background: rgba(201, 169, 110, 0.1);
  color: var(--color-gold);
}
.badge-board {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
}
.badge-stakeholder {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 240, 232, 0.7);
}

.investor-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: right;
}

@media (max-width: 600px) {
  .investor-stats {
    gap: 15px;
  }
  .investor-share-col {
    display: none;
  }
}

.investor-amount {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-ivory);
}

.investor-share {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  color: rgba(245, 240, 232, 0.4);
}

.investor-trend {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Feed Column */
.feed-section {
  display: flex;
  flex-direction: column;
}

.feed-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 480px;
  display: flex;
  flex-direction: column;
}

.feed-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-ivory);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #a3e635;
  border-radius: 50%;
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(163, 230, 53, 0);
  }
  100% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(163, 230, 53, 0);
  }
}

.feed-container {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 8px;
}

/* Hide scrollbar but keep functionality */
.feed-container::-webkit-scrollbar {
  width: 4px;
}
.feed-container::-webkit-scrollbar-track {
  background: transparent;
}
.feed-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.feed-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 12px;
  animation: slide-in-bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-in-bottom {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feed-item__time {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: rgba(245, 240, 232, 0.3);
  margin-bottom: 4px;
}

.feed-item__text {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  color: rgba(245, 240, 232, 0.85);
  line-height: 1.5;
}

.feed-item__text strong {
  color: var(--color-gold);
  font-weight: 500;
}

.feed-item__amount {
  color: #a3e635;
  font-weight: 500;
}
