/* Ethereum Address & Transaction Explorer CSS (Prefix: eae-) */

.eae-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.eae-header {
  background-color: #0f172a;
  border-bottom: 1px solid #1e293b;
  padding: 0.75rem 1.5rem;
}

.eae-nav-container {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eae-logo-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
}

.eae-logo-link:hover {
  color: #7dd3fc;
}

.eae-nav-badge {
  background-color: #1e293b;
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eae-main {
  max-width: 1150px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.eae-breadcrumbs {
  margin-bottom: 1rem;
}

.eae-bc-list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.eae-bc-item {
  display: inline;
}

.eae-bc-link {
  color: #0284c7;
  text-decoration: none;
}

.eae-bc-link:hover {
  text-decoration: underline;
}

.eae-bc-separator {
  margin: 0 0.5rem;
  color: #94a3b8;
}

.eae-bc-current {
  color: #334155;
  font-weight: 500;
}

/* Privacy Alert */
.eae-privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.eae-notice-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.eae-notice-text {
  font-size: 0.85rem;
  color: #15803d;
  line-height: 1.4;
}

/* Hero */
.eae-hero {
  margin-bottom: 1.5rem;
}

.eae-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.eae-subtitle {
  font-size: 1.05rem;
  color: #475569;
  margin: 0;
  max-width: 800px;
}

/* Presets Bar */
.eae-presets-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  background-color: #e2e8f0;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.eae-preset-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.eae-preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.eae-preset-btn {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.eae-preset-btn:hover {
  background-color: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Cards */
.eae-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.eae-input-card {
  margin-bottom: 1.5rem;
}

.eae-form {
  display: flex;
  flex-direction: column;
}

.eae-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.eae-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.eae-search-wrap {
  display: flex;
  gap: 0.5rem;
}

.eae-input {
  flex: 1;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #0f172a;
  background-color: #fff;
  font-family: ui-monospace, monospace;
  box-sizing: border-box;
}

.eae-input:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.eae-btn-primary {
  background-color: #0284c7;
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.eae-btn-primary:hover {
  background-color: #0369a1;
}

.eae-hint {
  font-size: 0.75rem;
  color: #64748b;
}

/* Account Header */
.eae-account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, #f8fafc);
}

.eae-acc-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.eae-acc-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.eae-acc-badge {
  background-color: #0284c7;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.eae-ens-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.eae-address-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.eae-address-code {
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  background-color: #f1f5f9;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  word-break: break-all;
}

.eae-btn-copy {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}

.eae-btn-copy:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.eae-checksum-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #16a34a;
  font-weight: 600;
}

.eae-status-indicator {
  font-weight: 800;
}

.eae-status-pass {
  color: #16a34a;
}

.eae-status-fail {
  color: #dc2626;
}

.eae-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.5rem;
  border-radius: 6px;
}

.eae-qr-svg {
  display: block;
}

.eae-qr-label {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

/* Summary Grid */
.eae-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.eae-summary-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.eae-summary-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.eae-summary-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.eae-summary-sub {
  font-size: 0.8rem;
  color: #64748b;
}

/* Content Layout */
.eae-content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 960px) {
  .eae-content-layout {
    grid-template-columns: 1fr;
  }
}

.eae-main-column, .eae-sidebar-column {
  display: flex;
  flex-direction: column;
}

.eae-mt-1 {
  margin-top: 1.5rem;
}

.eae-card-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.eae-card-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.eae-btn-small {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}

.eae-btn-small:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

/* Table */
.eae-table-wrap {
  overflow-x: auto;
}

.eae-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.eae-table th, .eae-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.eae-table th {
  background-color: #f8fafc;
  font-weight: 600;
  color: #475569;
}

.eae-tx-in {
  display: inline-block;
  background-color: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.eae-tx-out {
  display: inline-block;
  background-color: #fef3c7;
  color: #b45309;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.eae-tx-success {
  color: #16a34a;
  font-weight: 700;
}

.eae-tx-fail {
  color: #dc2626;
  font-weight: 700;
}

/* Token Grid */
.eae-token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.eae-token-item {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eae-token-info {
  display: flex;
  flex-direction: column;
}

.eae-token-symbol {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

.eae-token-name {
  font-size: 0.75rem;
  color: #64748b;
}

.eae-token-bal {
  text-align: right;
  font-weight: 700;
  color: #0284c7;
  font-size: 0.9rem;
}

/* Converter */
.eae-conv-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.eae-conv-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.eae-conv-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

/* Gas Grid */
.eae-gas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.eae-gas-tier {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.eae-gas-standard {
  border-color: #38bdf8;
  background-color: #f0f9ff;
}

.eae-gas-tier-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.eae-gas-tier-gwei {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.eae-gas-tier-time {
  font-size: 0.7rem;
  color: #64748b;
}

/* Ads */
.eae-ad-wrapper {
  margin: 2rem 0;
  min-height: 280px;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Guide Section */
.eae-guide-section {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.eae-guide-article {
  margin-bottom: 2rem;
}

.eae-guide-article:last-child {
  margin-bottom: 0;
}

.eae-guide-article h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem 0;
}

.eae-guide-article p {
  color: #334155;
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.eae-guide-list {
  padding-left: 1.25rem;
  color: #334155;
  line-height: 1.7;
}

.eae-faq-list {
  margin: 0;
}

.eae-faq-q {
  font-weight: 700;
  color: #0f172a;
  margin-top: 1rem;
  font-size: 1rem;
}

.eae-faq-a {
  margin: 0.35rem 0 0.75rem 0;
  color: #475569;
  line-height: 1.5;
}

/* Related Tools */
.eae-related-tools {
  margin-bottom: 2rem;
}

.eae-related-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.eae-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.eae-related-card {
  display: block;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.eae-related-card:hover {
  border-color: #0284c7;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.eae-related-title {
  display: block;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 0.35rem;
}

.eae-related-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

.eae-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 2rem 1.5rem;
  font-size: 0.875rem;
  text-align: center;
}

.eae-footer-inner {
  max-width: 1150px;
  margin: 0 auto;
}

.eae-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #0f172a;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
}
