.tarot-deck-manager {
  .tension-select {
    width: 100%;
  }

  .tarot-deck-manager-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: linear-gradient(
      135deg,
      rgba(102, 126, 234, 0.05) 0%,
      rgba(118, 75, 162, 0.05) 100%
    );
    min-height: 100%;
  }

  .deck-header {
    h2 {
      margin: 0 0 0.75rem 0;
      font-size: 1.25rem;
      color: #667eea;
      text-align: center;
      border-bottom: 2px solid #667eea;
      padding-bottom: 0.5rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .deck-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.5rem;
      margin-top: 0.75rem;

      .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem;
        background: linear-gradient(
          135deg,
          rgba(102, 126, 234, 0.15) 0%,
          rgba(118, 75, 162, 0.15) 100%
        );
        border-radius: 0.5rem;
        border: 2px solid rgba(102, 126, 234, 0.3);
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

        &:hover {
          transform: translateY(-3px);
          box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
          border-color: rgba(102, 126, 234, 0.5);
        }

        i {
          font-size: 1.25rem;
          color: #667eea;
          margin-bottom: 0.15rem;
        }

        .stat-label {
          font-size: 0.7rem;
          color: var(--color-text-dark-secondary);
          text-transform: uppercase;
          letter-spacing: 0.05em;
          text-align: center;
        }

        .stat-value {
          font-size: 1.25rem;
          font-weight: bold;
          color: #667eea;
          text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }
      }
    }
  }

  .deck-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;

    .action-button {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.6rem 0.75rem;
      font-size: 0.85rem;
      font-weight: bold;
      border: none;
      border-radius: 0.5rem;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
      text-transform: uppercase;
      letter-spacing: 0.05em;

      i {
        font-size: 1.1rem;
      }

      &:hover:not(:disabled) {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
      }

      &:active:not(:disabled) {
        transform: translateY(-1px);
      }

      &:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        filter: grayscale(50%);
      }
    }

    .reset-button {
      background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
      color: white;

      &:hover:not(:disabled) {
        background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
      }
    }

    .collect-hands-button {
      background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
      color: white;

      &:hover:not(:disabled) {
        background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
      }
    }

    .distribute-cards-button {
      background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
      color: white;

      &:hover:not(:disabled) {
        background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
      }
    }

    .shuffle-discard-button {
      background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
      color: white;

      &:hover:not(:disabled) {
        background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
      }
    }

    .draw-button {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;

      &:hover:not(:disabled) {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
      }
    }

    .draw-tension-button {
      background: linear-gradient(135deg, #f39c12 0%, #d35400 100%);
      color: white;

      &:hover:not(:disabled) {
        background: linear-gradient(135deg, #d35400 0%, #f39c12 100%);
      }
    }
  }

  .recent-draws {
    h3 {
      margin: 0 0 1rem 0;
      font-size: 1.25rem;
      color: var(--color-text-dark-primary);
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--color-border-dark);
    }

    .drawn-cards-list {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      max-height: 300px;
      overflow-y: auto;

      .drawn-card {
        display: flex;
        gap: 1rem;
        padding: 0.75rem;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 0.25rem;
        border: 1px solid var(--color-border-dark);
        transition: all 0.2s ease;

        &:hover {
          background: rgba(0, 0, 0, 0.3);
          border-color: var(--color-border-dark-tertiary);
        }

        .card-image {
          width: 60px;
          height: 60px;
          object-fit: cover;
          border-radius: 0.25rem;
          border: 1px solid var(--color-border-dark);
        }

        .card-info {
          flex: 1;
          display: flex;
          flex-direction: column;
          justify-content: center;
          gap: 0.25rem;

          .card-name {
            margin: 0;
            font-size: 1rem;
            color: var(--color-text-light-heading);
          }

          .card-details {
            display: flex;
            gap: 1rem;
            font-size: 0.875rem;

            .card-symbole,
            .card-valeur {
              color: var(--color-text-dark-secondary);
            }
          }
        }
      }
    }
  }

  .no-draws {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 1rem;
    color: var(--color-text-dark-secondary);
    text-align: center;

    i {
      opacity: 0.3;
    }

    p {
      margin: 0;
      font-style: italic;
    }
  }

  .deck-empty-warning {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 0.25rem;
    color: #ffa500;

    i {
      font-size: 1.5rem;
    }

    p {
      margin: 0;
      flex: 1;
    }
  }
}
