@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;800&display=swap');

:root {
  --bg-color: #e0e5ec;
  --text-main: #4a5568;
  --text-muted: #718096;
  --accent: #3182ce;
  
  --shadow-outset: 9px 9px 16px rgb(163,177,198,0.6), -9px -9px 16px rgba(255,255,255, 0.5);
  --shadow-inset: inset 6px 6px 10px 0 rgba(163,177,198, 0.7), inset -6px -6px 10px 0 rgba(255,255,255, 0.8);
  --shadow-hover: 12px 12px 20px rgb(163,177,198,0.7), -12px -12px 20px rgba(255,255,255, 0.6);
  
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-full: 50px;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.container {
  max-width: 1000px;
  width: 100%;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Typography */
h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(163,177,198,0.5), -2px -2px 4px rgba(255,255,255,0.8);
}

.subdomain {
  color: var(--accent);
}

h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
  color: var(--text-muted);
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

a:hover {
  color: #2b6cb0;
}

/* Header */
header {
  text-align: center;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-outset);
  background-color: var(--bg-color);
}

.header-text p {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

/* Navigation */
nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 20px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-outset);
  background-color: var(--bg-color);
}

nav a {
  display: inline-block;
  padding: 10px 25px;
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: var(--shadow-outset);
  transition: all 0.2s ease;
}

nav a:hover {
  box-shadow: var(--shadow-hover);
  color: var(--accent);
}

nav a:active {
  box-shadow: var(--shadow-inset);
}

/* Sections */
section {
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-outset);
  background-color: var(--bg-color);
  margin-bottom: 40px;
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Lists */
ul {
  list-style: none;
}

section ul li {
  margin-bottom: 15px;
}

/* Links and Buttons */
.link-item, .extension-link, .donate-link, .footer-link {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-outset);
  color: var(--text-main);
  transition: all 0.2s ease;
  background-color: var(--bg-color);
}

.link-item:hover, .extension-link:hover, .donate-link:hover, .footer-link:hover {
  box-shadow: var(--shadow-hover);
  color: var(--accent);
}

.link-item:active, .extension-link:active, .donate-link:active, .footer-link:active {
  box-shadow: var(--shadow-inset);
}

.link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: var(--shadow-inset);
  margin-right: 15px;
  font-weight: 800;
  color: var(--accent);
}

/* Contact Items */
.contact-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-inset);
  margin-bottom: 15px;
  background-color: var(--bg-color);
}

.contact-label {
  font-weight: 800;
  width: 80px;
  color: var(--accent);
}

/* Details & Summary */
details {
  margin-top: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-outset);
  overflow: hidden;
}

summary {
  padding: 20px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  outline: none;
  color: var(--text-main);
  transition: color 0.2s ease;
}

summary::-webkit-details-marker {
  display: none;
}

summary:hover {
  color: var(--accent);
}

details .content {
  padding: 0 20px 20px;
  box-shadow: var(--shadow-inset);
  border-radius: var(--radius-md);
  margin: 0 10px 10px;
}

/* Guest Info */
.guest-credentials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-inset);
  margin: 15px 0;
}

.guest-credentials p {
  margin: 0;
  font-family: monospace;
  font-size: 1.1rem;
}

.guest-credentials .label {
  font-weight: 800;
  color: var(--accent);
  margin-right: 10px;
}

/* Services Container */
#services-container {
  margin-top: 30px;
}

/* Service Cards (Dynamically loaded) */
.service-card {
  padding: 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-outset);
  background-color: var(--bg-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.service-card h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

.service-card p {
  flex-grow: 1;
}

.service-card .service-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-outset);
  text-align: center;
  font-weight: 800;
}

.service-card .service-link:hover {
  box-shadow: var(--shadow-hover);
}

.service-card .service-link:active {
  box-shadow: var(--shadow-inset);
}

/* Crypto Section */
.crypto-item {
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-inset);
  margin-bottom: 20px;
  text-align: center;
}

.crypto-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.crypto-name {
  font-weight: 800;
  color: var(--accent);
  font-size: 1.2rem;
}

.crypto-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.crypto-address {
  display: block;
  padding: 15px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-outset);
  word-break: break-all;
  font-family: monospace;
  margin-bottom: 15px;
  background-color: var(--bg-color);
}

.qr-container {
  display: inline-block;
  padding: 15px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-outset);
  background-color: var(--bg-color);
}

.qr-container img {
  max-width: 150px;
  border-radius: var(--radius-sm);
}

/* Footer Links Grid */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.footer-link {
  justify-content: center;
  text-align: center;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-inset);
  margin-top: 20px;
}

#ddate {
  text-align: center;
  padding: 15px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-inset);
  margin-bottom: 40px;
  font-weight: 600;
  color: var(--accent);
}

/* Hide canvas as it doesn't fit neumorphism well */
#warp {
  display: none;
}
