/* ==========================================================================
   Shido Elite — Cosmos Native & EVM UI Separation Styling
   ========================================================================== */

/* ── 1. Filter Bar & View Toggle (On /txs and /address/:hash) ───────────── */
.shido-chain-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  width: fit-content;
  flex-wrap: wrap;
}

.shido-address-filter-bar {
  margin-top: 12px;
  margin-bottom: 16px;
}

.shido-filter-pill {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.shido-filter-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
}

.shido-filter-pill.active[data-view="evm"],
.shido-filter-pill.active[data-addr-view="evm"] {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2) 0%, rgba(0, 184, 212, 0.1) 100%);
  border-color: rgba(0, 229, 255, 0.45);
  color: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

.shido-filter-pill.active[data-view="cosmos"],
.shido-filter-pill.active[data-addr-view="cosmos"] {
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.25) 0%, rgba(101, 31, 255, 0.15) 100%);
  border-color: rgba(124, 77, 255, 0.45);
  color: #d1c4e9;
  box-shadow: 0 0 12px rgba(124, 77, 255, 0.25);
}

.shido-link-pill {
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

.shido-filter-counter {
  font-size: 12px;
  color: #64748b;
  margin-left: 8px;
  font-weight: 500;
}

/* ── 2. Dedicated Cosmos Table Styles ────────────────────────────────────── */
.shido-cosmos-container,
.shido-address-cosmos-container {
  width: 100%;
  margin-top: 8px;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.shido-cosmos-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.3);
}

.shido-cosmos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.shido-cosmos-table th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.shido-cosmos-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  vertical-align: middle;
}

.shido-cosmos-row {
  transition: background 0.15s ease-in-out;
}

.shido-cosmos-row:hover {
  background: rgba(124, 77, 255, 0.06);
}

.shido-hash-link {
  color: #38bdf8;
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 500;
}

.shido-hash-link:hover {
  text-decoration: underline;
  color: #7dd3fc;
}

.shido-copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  margin-left: 6px;
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 4px;
}

.shido-copy-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.shido-cosmos-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.25) 0%, rgba(101, 31, 255, 0.15) 100%);
  border: 1px solid rgba(179, 157, 219, 0.4);
  color: #d1c4e9;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(124, 77, 255, 0.2);
}

.shido-block-link {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
}

.shido-block-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.shido-addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #cbd5e1;
}

.shido-recipient {
  color: #f1f5f9;
  font-weight: 500;
}

.shido-val {
  color: #ffffff;
  font-weight: 600;
}

.shido-age-text {
  color: #64748b;
  font-size: 12px;
}

.shido-col-fromto {
  white-space: nowrap;
}

.shido-table-loading,
.shido-table-empty,
.shido-table-error {
  text-align: center;
  padding: 40px !important;
  color: #94a3b8;
  font-size: 14px;
}

.shido-cosmos-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.shido-pagination-btn {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.shido-pagination-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

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

/* ── 3. Cosmos Native Banner on Tx Details Page (Only for Cosmos Txs) ─────── */
.shido-cosmos-tx-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(48, 28, 96, 0.5) 0%, rgba(26, 16, 54, 0.4) 100%);
  border: 1px solid rgba(149, 117, 205, 0.35);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 15px rgba(124, 77, 255, 0.15);
}

.shido-cosmos-tx-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(124, 77, 255, 0.2);
  border-radius: 10px;
  border: 1px solid rgba(179, 157, 219, 0.3);
  flex-shrink: 0;
}

.shido-cosmos-tx-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shido-cosmos-tx-title {
  font-size: 15px;
  font-weight: 700;
  color: #ede7f6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shido-cosmos-tx-subtitle {
  font-size: 13px;
  color: #b39ddb;
}

.shido-cosmos-tag {
  background: rgba(124, 77, 255, 0.3);
  color: #ede7f6;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── 4. Homepage Latest Transactions Toggle & List ───────────────────────── */
.shido-home-toggle-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shido-home-toggle-bar .shido-filter-pill {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
}

.shido-home-cosmos-container {
  width: 100%;
  animation: fadeIn 0.2s ease-in-out;
}

.shido-home-cosmos-items {
  display: flex;
  flex-direction: column;
  gap: 0px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 12px;
}

.shido-home-tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease-in-out;
  gap: 16px;
}

.shido-home-tx-item:hover {
  background: rgba(124, 77, 255, 0.05);
}

.shido-home-tx-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.shido-home-tx-icon {
  font-size: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 77, 255, 0.15);
  border: 1px solid rgba(179, 157, 219, 0.25);
  border-radius: 8px;
  flex-shrink: 0;
}

.shido-home-tx-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shido-home-tx-hash-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shido-home-tx-addrs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.shido-home-arrow {
  color: #64748b;
  font-size: 11px;
}

.shido-home-tx-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.shido-home-tx-empty {
  text-align: center;
  padding: 30px;
  color: #94a3b8;
  font-size: 13px;
}

.shido-home-view-all {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #38bdf8;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.shido-home-view-all:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
}

@media (max-width: 768px) {
  .shido-home-tx-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .shido-home-tx-right {
    align-items: flex-start;
  }
}
