/* Character Selection Page Styles */

/* Base container */
.char-selection-page {
  min-height: 100vh;
  padding: 3rem 2rem;
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.08) 0%, var(--game-bg-app) 100%);
  font-family: var(--game-font-main);
  display: flex;
  justify-content: center;
}

.char-selection-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Header */
.char-selection-header {
  padding: 2.5rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--game-color-primary-low);
}

.title-main {
  font-size: 3.5rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--game-text-primary);
  text-shadow: 0 0 15px rgba(225, 29, 72, 0.3);
}

.subtitle-sub {
  font-size: 1.25rem;
  color: var(--game-text-secondary);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin: 0;
}

/* Cards Grid */
.char-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* Character Card */
.char-card-ui {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--game-bg-glass) !important;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Default border */
  height: 100%;
  /* Ensure uniform height */
}

.char-card-ui:hover {
  border-color: var(--game-color-primary);
  transform: translateY(-5px);
  box-shadow: var(--game-shadow-glow);
}

/* Avatar Section */
.char-avatar-box {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--game-border-color);
  overflow: hidden;
  position: relative;
}

.char-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.char-card-ui:hover .char-avatar-box img {
  opacity: 1;
  transform: scale(1.05);
}

.avatar-placeholder-ui {
  font-size: 4rem;
  font-weight: 700;
  color: var(--game-border-color);
  opacity: 0.5;
}

/* Info Section */
.char-info-box {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.char-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.char-meta-header h3 {
  font-size: 1.6rem;
  margin: 0;
  color: var(--game-text-primary);
  text-transform: uppercase;
}

.level-badge {
  background: var(--game-color-primary);
  color: #fff;
  padding: 0.15rem 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  clip-path: var(--game-clip-path-sm);
}

/* Stats Preview */
.char-stats-preview {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--game-border-color);
  clip-path: var(--game-clip-path-sm);
}

.stat-preview {
  flex: 1;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.stat-preview .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--game-text-secondary);
}

.stat-preview .value {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Attributes Grid */
.char-attr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.attr-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  clip-path: var(--game-clip-path-sm);
}

.last-played {
  font-size: 0.85rem;
  color: var(--game-text-secondary);
}

/* Actions Section */
.char-card-actions {
  padding: 1rem;
  display: flex;
  gap: 1rem;
  width: 100%;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

/* Create Card Styles */
.create-card {
  align-items: center;
  justify-content: center;
  min-height: 400px;
  /* Approximate height of other cards */
  cursor: pointer;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2) !important;
}

.create-card:hover {
  border-color: var(--game-color-primary);
  background: rgba(225, 29, 72, 0.05) !important;
}

.create-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.create-card:hover .create-icon-wrapper {
  background: var(--game-color-primary);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(225, 29, 72, 0.4);
}

.create-icon {
  font-size: 3rem;
  font-weight: 300;
  color: var(--game-text-primary);
  line-height: 1;
}

.create-card h3 {
  font-size: 1.5rem;
  color: var(--game-text-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.create-subtitle {
  color: var(--game-text-secondary);
  font-size: 1rem;
}

/* Premium Banner */
.premium-banner-ui {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.premium-banner-ui h3 {
  color: #60a5fa;
  margin-bottom: 0.5rem;
}

/* No Characters Empty State */
.no-chars-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem;
  color: var(--game-text-secondary);
}