// Sub-attributes tab styling

.character-subattributes.tab {
  .subattributes-content {
    padding: 1rem;

    .subattributes-list {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0.5rem;
    }

    .subattribute-item {
      background: rgba(0, 0, 0, 0.1);
      border: 1px solid var(--color-border-dark-secondary);
      border-radius: 4px;
      padding: 0.4rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.15rem;
      text-align: center;
      cursor: pointer;
      text-decoration: none;

      .subattribute-header {
        display: flex;
        align-items: center;
        gap: 0.3rem;

        i.fa-dice-d20 {
          font-size: 1em;
          color: var(--color-text-dark-primary);
          opacity: 0.7;
        }
      }

      &:hover {
        background: rgba(0, 0, 0, 0.2);
        border-color: var(--color-text-light-primary);
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);

        .subattribute-header i.fa-dice-d20 {
          opacity: 1;
          color: var(--color-text-dark-primary);
        }
      }

      .subattribute-name {
        font-weight: bold;
        font-size: 0.75em;
        color: var(--color-text-dark-primary);
        line-height: 1.2;
      }

      .subattribute-value {
        font-size: 1em;
        font-weight: bold;
        color: var(--color-text-dark-primary);
        min-width: 2em;
        padding: 0.15rem 0.3rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
      }
    }
  }
}

// Responsive adjustments
@media (max-width: 768px) {
  .character-subattributes.tab {
    .subattributes-content {
      .subattributes-list {
        grid-template-columns: repeat(3, 1fr);
      }
    }
  }
}
