
/* sheet.css */

.char-sheet {
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: var(--text-light);
  min-height: 100vh;
}

/* Character Header Section */
.char-sheet-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-avatar-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid var(--primary-gold);
  overflow: hidden;
  position: relative;
  background: var(--background-dark);
}

.profile-avatar-container:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: var(--shadow-glow), var(--shadow-premium);
}

.profile-avatar {
  width: 180%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Race-specific positioning for profile avatars */
.profile-avatar-container[data-race="dragonborn"] .profile-avatar {
  top: -15%;
  width: 140%;
}
.profile-avatar-container[data-race="dwarf"] .profile-avatar {
  top: -15%;
  width: 140%;
}

.profile-avatar-container[data-race="gnome"] .profile-avatar {
  top: -20%;
  width: 150%;
}

.profile-avatar-container[data-race="halfling"] .profile-avatar {
  top: -10%;
  width: 145%;
  left: 46px;
}

.char-sheet-header .character-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.char-sheet-header .character-details h2 {
  margin: 0;
  color: var(--text-gold);
  font-family: "Cinzel Decorative", serif;
  font-size: 2.2rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.char-sheet-header .character-details p {
  margin: 0.25rem 0;
  color: var(--text-light);
  font-weight: 600;
  font-size: 1.1rem;
}

.char-sheet-header .character-details strong {
  color: var(--primary-gold);
}

/* Tab Navigation */
.sheet-tabs {
  display: flex;
  border-bottom: 2px solid var(--primary-gold);
  overflow-x: auto;
  scrollbar-width: none;
}

.sheet-tabs::-webkit-scrollbar {
  display: none;
}

.tab-button {
  flex: 1;
  min-width: 80px;
  padding: 0.75rem 0.25rem;
  background: rgba(212, 175, 55, 0.1);
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-weight: 900;
  font-size: 0.75rem;
  border-radius: 15px 15px 0 0;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-button:last-child {
  border-right: none;
}

.tab-button.active {
  background: var(--primary-gold);
  color: var(--background-dark);
  box-shadow: 0 -2px 10px rgba(212, 175, 55, 0.3);
}

.tab-button:hover:not(.active) {
  background: rgba(212, 175, 55, 0.2);
}

/* Tab Content */
.tab-content {
  display: none;
  padding: 1.5rem;
  background: rgba(10, 10, 15, 0.5);
}

.tab-content.active {
  display: block;
}

.tab-section {
  background: var(--surface-glass);
  backdrop-filter: blur(15px);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.tab-section h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text-gold);
  font-family: "Cinzel Decorative", serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

/* Combat Stats Grid */
.combat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.combat-stat {
  padding: 1rem;
  background: rgba(212, 175, 55, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.combat-stat:hover {
  background: rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

.combat-stat strong {
  display: block;
  color: var(--text-gold);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Ability Scores Table */
.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: var(--surface-glass);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stats-table th,
.stats-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-table th {
  background: rgba(212, 175, 55, 0.2);
  color: var(--text-gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.stats-table td {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-light);
}

.stats-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.stat-input,
.mod-input {
  width: 60px;
  padding: 0.5rem;
  border: 1px solid var(--primary-gold);
  border-radius: 6px;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  color: var(--text-light);
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.stat-input:focus,
.mod-input:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: rgba(212, 175, 55, 0.2);
}

.skill-item.proficient {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.5);
}

.skill-item.proficient:hover {
  background: rgba(212, 175, 55, 0.3);
}

.skill-name {
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.proficiency-dot {
  font-size: 0.8rem;
  color: var(--primary-gold);
}

.skill-item.proficient .proficiency-dot {
  color: var(--primary-gold);
  filter: brightness(1.2);
}

.skill-modifier {
  color: var(--primary-gold);
  font-weight: bold;
}

/* Spell Stats */
.spell-stats {
  background: rgba(139, 92, 246, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.spell-stats h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--accent-purple);
  font-family: "Cinzel Decorative", serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

.spell-stats p {
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: rgba(139, 92, 246, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  border-left: 3px solid var(--accent-purple);
  transition: all 0.3s ease;
}

.spell-stats p:hover {
  background: rgba(139, 92, 246, 0.2);
}

.spell-stats strong {
  color: var(--accent-purple);
}

/* Features List */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  padding: 1rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  border-left: 4px solid var(--primary-gold);
}

.feature-name {
  font-weight: bold;
  color: var(--text-gold);
  margin-bottom: 0.5rem;
}

.feature-description {
  color: var(--text-light);
  line-height: 1.5;
}

/* Combat Attacks */
.combat-attacks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.combat-attack {
  padding: 1rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  border-left: 4px solid var(--accent-red);
}

.attack-name {
  color: var(--text-gold);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.attack-details {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Spells */
.spells-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.spell-item {
  padding: 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.spell-item:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

.spell-item.cantrip {
  border-left: 4px solid var(--accent-purple);
}

.spell-item.level1 {
  border-left: 4px solid var(--primary-gold);
}

.spell-name {
  font-weight: bold;
  color: var(--text-gold);
  margin-bottom: 0.5rem;
}

.spell-level {
  color: var(--accent-purple);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .char-sheet-header {
    padding: 1.5rem 1rem 1rem;
  }
  
  .profile-avatar-container {
    width: 100px;
    height: 100px;
  }
  
  .char-sheet-header .character-details h2 {
    font-size: 1.8rem;
  }
  
  .tab-button {
    min-width: 60px;
    padding: 0.5rem 0.15rem;
    font-size: 0.65rem;
  }
  
  .tab-content {
    padding: 1.5rem;
  }
  
  .spells-list {
    grid-template-columns: 1fr;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
