/*
 * TEFR Character Forge - WordPress plugin (scoped)
 * version 0.049 - scoped under .tefr-character-forge to avoid theme conflicts
 */

.tefr-character-forge {
  padding: 0;
  margin: 0;
  font-family: Georgia, serif;
  line-height: 1.4;
  background-color: #FFFFFF;
  color: #000000;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tefr-character-forge h1 {
  padding: 0;
  margin: 0;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  margin-top: 0px;
  margin-bottom: 0px;
}

.tefr-character-forge h2 {
  text-align: center;
  font-weight: normal;
  font-size: 14px;
  line-height: 70%;
  margin-top: 0px;
  margin-bottom: 0px;
}

.tefr-character-forge p {
  font-family: arial, sans-serif;
  font-weight: normal;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  padding: 0;
}

.tefr-character-forge ul {
  list-style-type: none;
  list-style: none;
  padding-left: 0;
}

.tefr-character-forge li {
  font-family: arial, sans-serif;
  font-size: 12px;
}

.tefr-character-forge .column {
  width: 45%;
  display: inline-block;
  flex: 1;
}

.tefr-character-forge .attr {
  font-size: 14px;
  text-align: center;
  font-weight: bold;
  height: 30px;
}

.tefr-character-forge .character-name {
  font-size: 14px;
  text-align: left;
  font-weight: bold;
  height: 30px;
}

.tefr-character-forge .container {
  display: flex;
  justify-content: space-between;
}

.tefr-character-forge .column {
  width: 45%;
  align-items: center;
}

.tefr-character-forge .character-sheet {
  width: 350px;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: 800px;
}

.tefr-character-forge .skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 350px;
  margin: 0 auto;
}

.tefr-character-forge .skills-section {
  margin-top: 4px;
}

.tefr-character-forge .skill {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.tefr-character-forge .skill-name {
  display: inline;
  text-align: left;
}

.tefr-character-forge .skill-stat {
  display: inline;
  text-align: right;
}

.tefr-character-forge .skill-unlisted {
  display: inline;
  text-align: left;
}

.tefr-character-forge .equipment,
.tefr-character-forge .languages,
.tefr-character-forge .attained-skills,
.tefr-character-forge .craft-skills {
  text-align: left;
}

.tefr-character-forge .age {
  text-align: left;
}

.tefr-character-forge .version {
  padding: 10px;
  font-size: 8px;
}

.tefr-character-forge .grid-layout {
  background-color: white;
  display: grid;
  grid-gap: 0px;
  grid-template-areas:
    'header header header header header header'
    'stats bits bits bits bits bits'
    'footer footer footer footer footer footer';
  max-width: 800px;
  margin: 0 auto;
  grid-template-columns: repeat(6, 1fr);
  min-width: 0;
}

.tefr-character-forge .log-layout {
  width: 900px;
  height: 400px;
  color: #000000;
  text-align: left;
  border: 1px solid black;
  justify-content: center;
  align-items: center;
}

.tefr-character-forge .grid-item {
  font-family: Georgia, serif;
  color: #58170D;
  font-weight: bold;
}

.tefr-character-forge .header {
  grid-area: header;
  font-size: 200%;
  line-height: 1.4;
  background-color: #F3EAD7;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.tefr-character-forge .stats {
  margin-top: 20px;
  grid-area: stats;
  display: grid;
  grid-template-columns: 50px 50px;
  padding: 10px;
  gap: 5px;
  height: 250px;
}

.tefr-character-forge .tab-container {
  display: flex;
  width: 900px;
  justify-content: center;
}

.tefr-character-forge .tab {
  display: none;
  width: 100%;
}

.tefr-character-forge .tab.active {
  display: block;
}

.tefr-character-forge .tab-links {
  flex: 1;
  cursor: pointer;
  text-align: center;
  padding: 10px;
  border: 1px solid #ccc;
  display: inline-block;
}

.tefr-character-forge .tab-links.active {
  background-color: #ccc;
}

.tefr-character-forge .class-selection {
  width: 900px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px;
}

.tefr-character-forge .class-selection label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 3px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.tefr-character-forge .nation-selection {
  width: 900px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 10px;
}

.tefr-character-forge .nation-selection label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 3px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.tefr-character-forge .nation-selection label:nth-child(even) {
  background-color: #e9e9e9;
}

.tefr-character-forge .nation-selection label:nth-child(odd) {
  background-color: #f9f9f9;
}

.tefr-character-forge .section {
  display: flex;
  flex-direction: column;
}

.tefr-character-forge .checkbox-gap {
  margin-right: 40px;
}

.tefr-character-forge .checkbox-group-OLD label {
  display: block;
  width: 100%;
}
