/* Modern button styling */
button {
    background: none;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    letter-spacing: 1px;
    z-index: 1;
}

button:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--accent-primary);
    transition: all 0.3s;
    z-index: -1;
}

button:hover {
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

button:hover:before {
    width: 100%;
}

button:active {
    transform: scale(0.95);
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.3);
}

/* Tag styling */
.taglist {
    max-width: 600px;
    margin: 1.5rem auto;
    text-align: center;
}

#tagcloud {
    clear: both;
    padding: 0.5rem;
    border-radius: 10px;
    text-align: center;
    margin: 1rem auto;
    border: 1px dashed var(--accent-primary);
    list-style: none;
    background-color: rgba(20, 20, 40, 0.5);
}

#tagcloud li {
    display: inline-block;
    margin: 0.25rem;
}

#tagcloud a {
    display: block;
    border-radius: 20px;
    padding: 0.4em 0.8em;
    background-color: rgba(0, 255, 136, 0.1);
    transition: all 0.2s ease;
}

#tagcloud a:hover {
    background-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

/* Updated Wallet Container Styling */
.wallet-container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 2em auto;
  background-color: rgba(15, 40, 15, 0.3);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  max-width: 500px;
  text-align: left;
}

.wallet-container:hover {
  background-color: rgba(20, 50, 20, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.wallet-icon {
  width: 40px;
  height: 40px;
  margin-right: 15px;
  filter: drop-shadow(0 0 5px rgba(0, 255, 0, 0.5));
  transition: transform 0.3s ease;
}

.wallet-container:hover .wallet-icon {
  transform: scale(1.1);
}

.wallet-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.wallet-info h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  text-align: left;
}

.wallet-address {
  display: block;
  margin-top: 0.5rem;
}

.wallet-address .button {
  display: inline-block;
  background-color: rgba(0, 255, 136, 0.1);
  color: var(--accent-primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--accent-primary);
  transition: all 0.3s ease;
  text-align: center;
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.9rem;
}

.wallet-address .button:hover {
  background-color: var(--accent-primary);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.qr-link {
  color: var(--accent-primary);
  text-decoration: underline;
  transition: all 0.2s ease;
}

.qr-link:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

/* Form styling */
input,
textarea {
    background: rgba(30, 30, 50, 0.8);
    color: white;
    margin: 0.5rem auto;
    border: 1px solid #333;
    font-size: large;
    padding: 0.75rem;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.3);
}

form {
    margin: 2rem auto;
    width: 100%;
    max-width: 500px;
    padding: 1.5rem;
    background-color: rgba(20, 20, 40, 0.7);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.profile {
    text-align: center;
    max-height: 250px;
    margin: 2rem auto;
}

.profile img {
    max-height: inherit;
    border-radius: 50%;
    max-width: 100%;
    border: 4px solid var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    transition: all 0.3s ease;
}

.profile img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.7);
}

/* Link list styling */
#linklist, #buttonlist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 0;
    margin: 2rem auto;
}

#linklist li, #buttonlist li {
    height: 150px;
    width: 150px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    background-color: rgba(20, 20, 40, 0.5);
}

#linklist li:hover, #buttonlist li:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

#linklist li a, #buttonlist li a {
    height: 100%;
    width: 100%;
    display: block;
}

#linklist img, #buttonlist img {
    height: 70%;
    width: 70%;
    object-fit: contain;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

#linklist .title, #buttonlist .title,
#linklist li:hover .desc, #buttonlist li:hover .desc {
    position: absolute;
    color: white;
    width: 100%;
    text-align: center;
    padding: 0.5rem;
    background-color: rgba(10, 10, 30, 0.8);
    backdrop-filter: blur(5px);
}

#linklist .title, #buttonlist .title {
    font-size: 1.2rem;
    bottom: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#linklist li:hover .desc, #buttonlist li:hover .desc {
    top: 0;
    font-size: 0.9rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(10, 10, 30, 0.9);
}

/* Donation Table Styling */
.donation-table {
  width: 100%;
  max-width: 600px;
  margin: 1rem auto;
  border-collapse: collapse;
  background-color: var(--bg-secondary);
  border: 1px solid var(--accent-primary);
  border-radius: 8px;
  overflow: hidden;
}

.donation-table th {
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  padding: 0.75rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.donation-table td {
  padding: 0.75rem;
  text-align: center;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  vertical-align: middle;
}

.donation-table tr:last-child td {
  border-bottom: none;
}

.donation-table tr:hover {
  background-color: rgba(0, 212, 255, 0.05);
}

.table-wallet-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
}

.wallet-button {
  display: inline-block;
  background-color: rgba(0, 212, 255, 0.1);
  color: var(--accent-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid var(--accent-primary);
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.85rem;
}

.wallet-button:hover {
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-1px);
}

.wallet-button:hover::after {
  display: none;
}

/* Responsive adjustments for donation table */
@media (max-width: 600px) {
  .donation-table {
    font-size: 0.85rem;
  }
  
  .donation-table th,
  .donation-table td {
    padding: 0.5rem 0.25rem;
  }
  
  .table-wallet-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
  }
  
  .wallet-button {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* Legacy wallet container styles (keeping for compatibility) */
@media (max-width: 600px) {
  .wallet-container {
    padding: 1rem;
  }
  
  .wallet-icon {
    width: 30px;
    height: 30px;
  }
  
  .wallet-info h3 {
    font-size: 1rem;
  }
  
  .wallet-address .button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}