/* Signers Feature Styles */

/* Container */
.signers-container {
  max-width: 100%;
}

.signers-container h1 {
  margin-bottom: 0.5em;
}

.signers-container h1 .count {
  font-weight: normal;
  color: #ccc;
}

/* Wallet Controls */
.wallet-controls {
  margin: 1.5em 0 2em 1.8em;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  align-items: center;
}

.wallet-controls .status-text {
  margin: 0;
  color: #ccc;
  font-size: 1.1em;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  padding: 0.6em 1.2em;
  border: none;
  border-radius: 0.3em;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: #fff;
  color: #292c35;
}

.btn-primary:hover:not(:disabled) {
  background-color: #ccc;
}

.btn-secondary {
  background-color: #444;
  color: #fff;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #555;
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Signature List */
.signature-list {
  margin: 1em 0 1em 1.8em;
}

.signature-list .loading,
.signature-list .error,
.signature-list .no-signers {
  color: #ccc;
  margin: 0;
}

.signature-list .error {
  color: #ff6b6b;
}

/* Signature Card - Inline Layout */
.signature-card {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.75em 1em;
  margin-bottom: 0.5em;
  background-color: #292c35;
  border-radius: 0.5em;
}

/* Avatar */
.signer-avatar-container {
  flex-shrink: 0;
}

.signer-avatar,
.signer-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.signer-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Signer Info - Inline */
.signer-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
}

.signer-name {
  font-weight: bold;
  white-space: nowrap;
}

.signer-details {
  display: flex;
  align-items: center;
  gap: 0.25em;
  font-size: 1.1em;
  color: #aaa;
}

.eth-price {
  color: #8bc34a;
}

.sign-date {
  color: #fff;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  margin: 2em 0 1em 1.8em;
  flex-wrap: wrap;
}

.btn-pagination {
  padding: 0.5em 1em;
  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 0.3em;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.2s ease;
}

.btn-pagination:hover:not(:disabled) {
  background-color: #555;
}

.btn-pagination:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  color: #ccc;
  font-size: 0.9em;
}

/* Recent Signers Section (Homepage) */
.recent-signers {
  margin-top: 2em;
}

.recent-signers h3 {
  margin-bottom: 0.5em;
}

.recent-signers .signer-count {
  margin-left: 1.8em;
  color: #ccc;
  margin-bottom: 1em;
}

.recent-signers .view-all {
  display: inline-block;
  margin-left: 1.8em;
  margin-top: 1em;
  position: relative;
  z-index: 1;
}

/* Mobile Responsive */
@media only screen and (max-width: 783px) {
  .wallet-controls {
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .signature-list {
    margin-left: 0;
  }

  .signature-card {
    padding: 0.6em 0.75em;
  }

  .signer-avatar,
  .signer-avatar-fallback {
    width: 32px;
    height: 32px;
    font-size: 0.75em;
  }

  .signer-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2em;
  }

  .signer-name {
    font-size: 0.95em;
  }

  .signer-details {
    font-size: 0.8em;
  }

  .pagination {
    margin-left: 0;
  }

  .recent-signers .signer-count,
  .recent-signers .view-all {
    margin-left: 0;
  }
}
