/* Sadece tools.html için stiller */

.tools-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 112px 24px 72px; /* navbar altı + alt boşluk */
  background: var(--bg);
  color: var(--text-main);
}

/* Üst açıklama */
.tools-hero {
  margin-bottom: 32px;
}

.tools-hero h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.tools-hero p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 640px;
}

/* Ortak section wrapper */
.tools-section {
  margin-top: 32px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0;
  font-size: 20px;
}

.section-header p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Ortak tool-card */
.tool-card {
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: var(--bg);
  padding: 16px 16px 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tool-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.tool-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* === GAS & NETWORK === */

.gas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gas-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.gas-item {
  flex: 1;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gas-label {
  font-size: 12px;
  color: var(--text-muted);
}

.gas-value {
  font-size: 18px;
  font-weight: 600;
}

.gas-footer {
  margin-top: 10px;
  font-size: 13px;
  display: flex;
  gap: 4px;
  align-items: baseline;
}

/* Block info */
.block-info {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.block-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.block-label {
  color: var(--text-muted);
}

.block-value {
  font-weight: 500;
}

/* === DEFI DASHBOARD === */

.defi-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr);
  gap: 16px;
}

.defi-table,
.token-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.defi-table th,
.defi-table td,
.token-table th,
.token-table td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.defi-table th,
.token-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.defi-table td:nth-child(1) {
  width: 32px;
  color: var(--text-muted);
}

.table-loading {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* TVL box */
.eth-tvl-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eth-tvl-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
  font-weight: 600;
}

/* === TOKEN SNAPSHOT === */

.token-table td:nth-child(3),
.token-table td:nth-child(4) {
  text-align: right;
}

.token-up {
  color: #16a34a;
}

.token-down {
  color: #dc2626;
}

/* Responsive */
@media (max-width: 960px) {
  .gas-grid {
    grid-template-columns: 1fr;
  }

  .defi-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tools-main {
    padding-inline: 16px;
  }

  .tools-hero h1 {
    font-size: 26px;
  }
}
