/* ===== 前台 DApp 樣式 ===== */

/* Body & Background */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  text-align: center;
  min-height: 100vh;
  background: url('/1744528208.jpg') no-repeat center top fixed;
  background-size: cover;
  backdrop-filter: blur(3px);
  transition: background 0.3s, color 0.3s;
}

/* Header */
header {
  width: 100%;
  padding: 5px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f1f0ee;  /* 正確底色 */
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

header .logo {
  height: 50px;
  max-width: 200px;
  object-fit: contain;
}

/* Titles */
h1 {
  font-size: 6vw;
  font-weight: 700;
  margin-top: 40px;
  color: #000;
}

.subtitle {
  font-size: 1.2rem;
  color: #555;
  margin-top: 10px;
}

/* Container & Cards */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}

.card {
  background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
  border-radius: 20px;
  padding: 30px;
  width: 95%;
  max-width: 500px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  margin-bottom: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}

/* Buttons */
button {
  border: none;
  border-radius: 50px;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

#approve:disabled {
  background: #333;
  color: #aaa;
  cursor: not-allowed;
}

#approve:not(:disabled) {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  cursor: pointer;
}

#approve:hover:not(:disabled),
#connectWallet:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,114,255,0.4);
}

#connectWallet {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  cursor: pointer;
}

/* Inputs */
input[type="text"] {
  display: block;
  margin: 10px auto;
  width: 90%;
  padding: 12px;
  font-size: 1rem;
  border-radius: 5px;
}

/* Feedback */
#status {
  margin-top: 20px;
  font-size: 1.2rem;
  word-break: break-word;
}

.tip {
  font-size: 0.9rem;
  color: #f0a;
  margin-top: 8px;
}

.loading {
  font-size: 1rem;
  color: #ffd700;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 8vw;
    margin-top: 20px;
  }

  .card {
    padding: 20px;
  }

  button {
    width: 100%;
    padding: 14px 0;
  }
}
