/* Uniswap.org style - white bg, pink accent, black text */
:root {
  --bg: #ffffff;
  --bg-secondary: #f7f8fa;
  --text: #000000;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --pink: #FF007A;
  --pink-hover: #e6006e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

/* Header - uniswap.org style */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo {
  height: 32px;
  width: auto;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Chain dropdown */
.chain-dropdown {
  position: relative;
}

.chain-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.chain-toggle:hover {
  background: #edeef2;
}

.chain-toggle .chevron {
  transition: transform 0.2s;
}

.chain-dropdown.open .chain-toggle .chevron {
  transform: rotate(180deg);
}

.chain-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  list-style: none;
  padding: 6px;
  z-index: 100;
}

.chain-menu.open {
  display: block;
}

.chain-menu li {
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}

.chain-menu li:hover {
  background: var(--bg-secondary);
}

.addr {
  font-size: 14px;
  color: var(--text-secondary);
}

.connect-btn {
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  background: var(--pink);
  color: white;
}

.connect-btn:hover {
  background: var(--pink-hover);
}

.connect-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Main - centered card layout like uniswap */
.main {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 24px;
}

.content-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 16px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.page-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.claim-card {
  padding: 0;
}

.claim-btn {
  width: 100%;
  padding: 16px 24px;
  border-radius: 16px;
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  background: var(--pink);
  color: white;
}

.claim-btn:hover {
  background: var(--pink-hover);
}

.claim-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.claim-status {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.claim-status.error {
  color: #ef4444;
}

.pool-card .card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.empty-msg {
  color: var(--text-secondary);
  font-size: 14px;
}

.position-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.position-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid transparent;
}

.position-row .rescue-btn {
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: var(--pink);
  color: white;
  font-size: 14px;
}

.position-row .rescue-btn:hover {
  background: var(--pink-hover);
}

.position-row .rescue-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.disconnect-btn {
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
}

.disconnect-btn:hover {
  background: var(--bg-secondary);
}

.wallet-info.hidden {
  display: none;
}

/* LP Explore Pools */
.lp-explore-card .card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.lp-explore-card .card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.lp-pool-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.lp-pool-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.lp-pool-row:last-child {
  border-bottom: none;
}

.lp-pool-row:hover {
  background: var(--bg-secondary);
}

.lp-tokens {
  display: flex;
  flex-shrink: 0;
}

.lp-token-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  font-weight: 600;
  font-size: 12px;
  border: 2px solid var(--bg);
}

.lp-token-avatar-2 {
  margin-left: -10px;
}

.lp-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lp-pair {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.lp-chain {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.chain-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0052ff;
}

.lp-apy {
  font-size: 13px;
  color: #22c55e;
  font-weight: 500;
}

.lp-more {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  border-radius: 8px;
}

.lp-more:hover {
  background: var(--bg-secondary);
  color: var(--text);
}

/* Explore pools style table (bottom section only) */
.pools-market-card .card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pools-market-card .card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.pools-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}

.pools-head,
.pools-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

.pools-head {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pools-row {
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.pools-row:last-child {
  border-bottom: none;
}

.pools-row span:first-child {
  font-weight: 600;
}

@media (max-width: 640px) {
  .pools-head,
  .pools-row {
    grid-template-columns: 1.2fr 0.9fr 0.9fr 0.8fr;
    gap: 8px;
    padding: 12px;
    font-size: 12px;
  }
}
