/* ========================================
   CARD COMPONENTS - Award cards, stat cards, game cards
   Clean platform aesthetic
   ======================================== */

/* Award Cards - Simple dark card */
.award-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  text-align: center;
  transition: all var(--transition-base);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  min-height: 160px;
  align-items: center;
}

.award-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.award-label {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
  font-weight: var(--font-weight-bold);
  position: relative;
  z-index: 2;
}

.award-value {
  font-size: var(--font-size-lg);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-bold);
  margin-top: auto;
  position: relative;
  z-index: 2;
  line-height: 1.2;
}

/* Player Display in Award Cards */
.player-display {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0;
  transition: transform 0.2s ease;
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
}

.player-display:hover {
  transform: none;
}

.award-card .player-headshot-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: visible;
  flex-shrink: 0;
}

.award-card .player-headshot {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover;
  border-radius: 50%;
  border: none;
  transition: all 0.3s ease;
  background: transparent;
  box-shadow: none;
  z-index: 1;
  position: relative;
  display: none;
}

.award-card .player-headshot:hover {
  transform: none;
}

.player-headshot-placeholder {
  display: none;
}

.award-card .team-badge-small {
  position: relative;
  bottom: auto;
  right: auto;
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: transparent;
  backdrop-filter: none;
  border-radius: 50%;
  border: 2px solid var(--color-border-secondary);
  padding: 15px;
  z-index: 1;
  transition: all 0.3s ease;
  box-sizing: border-box;
  display: block;
  overflow: visible;
}

.award-card:hover .team-badge-small {
  border-color: var(--color-primary);
}

.award-card .player-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
  margin-top: 0;
  flex: 1;
  justify-content: center;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.award-card .player-name {
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  line-height: 1.3;
  margin: 0;
}

.award-card .player-team {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: 1.3;
  font-weight: var(--font-weight-medium);
  margin: 0;
}

/* Award Team Flip Card */
.award-team-flip {
  display: block;
  perspective: 1000px;
  height: 80px;
  margin: 0.5rem 0;
  text-decoration: none;
}

.award-team-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.award-team-flip:hover .award-team-inner {
  transform: rotateY(180deg);
}

.award-team-front,
.award-team-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.award-team-front {
  background: transparent;
}

.award-team-back {
  transform: rotateY(180deg);
  flex-direction: column;
  gap: 0.15rem;
}

.award-team-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.award-team-back .team-display {
  gap: 0.1rem;
}

.award-team-back .team-abbr {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.award-team-back .team-nickname {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Stat Cards - Simple dark style */
.stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.stat-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Game Cards */
.game-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.game-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.game-week {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  text-align: center;
}

.game-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.team-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

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

.team-name {
  font-size: 0.9rem;
  color: var(--color-text-primary);
  font-weight: 500;
}

.score {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-left: auto;
}

.vs {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.game-result {
  margin-left: 1rem;
}

.win {
  background: #22c55e;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.loss {
  background: #ef4444;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.tie {
  background: #f59e0b;
  color: #000;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Team Game Cards (for team pages) */
.team-game-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
  flex: 0 0 380px;
  min-width: 280px;
}

.team-game-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.team-game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.team-game-week {
  font-size: 0.8rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.team-game-result {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.team-game-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.team-game-team {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.team-game-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.team-game-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.team-game-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.team-game-record {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.team-game-score {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-left: auto;
}

.team-game-vs {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin: 0 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .award-card {
    min-height: 180px;
    padding: 1.25rem;
  }
  
  .player-headshot-wrapper {
    width: 120px;
    height: 120px;
  }
  
  .player-headshot,
  .player-headshot-placeholder {
    width: 120px;
    height: 120px;
  }
  
  .team-badge-small {
    width: 38px;
    height: 38px;
    bottom: -6px;
    right: -6px;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .team-game-card {
    flex: 0 0 320px;
    min-width: 280px;
    padding: 1rem;
  }
}

/* ========================================
   POST PLATFORM BADGES
   Styling for external media post cards
   ======================================== */

.post-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: white;
}

.post-platform-badge.platform-twitter { background: #000; }
.post-platform-badge.platform-youtube { background: #FF0000; }
.post-platform-badge.platform-tiktok { background: #000; }
.post-platform-badge.platform-instagram { 
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D); 
}

/* Post Card in Grid */
.index-card.post-card {
  cursor: pointer;
}

.index-card.post-card .post-caption {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Play overlay for video posts */
.post-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.index-card.post-card:hover .post-play-overlay {
  opacity: 1;
}

.post-play-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.post-play-icon svg {
  margin-left: 4px;
}
