/* Base styles */
:root {
  --bg-color: #000000;
  --text-color: #4ade80;
  --text-color-muted: #22c55e;
  --text-color-dim: rgba(74, 222, 128, 0.7);
  --border-color: rgba(34, 197, 94, 0.3);
  --card-bg: rgba(20, 83, 45, 0.2);
  --card-bg-hover: rgba(20, 83, 45, 0.3);
  --button-bg: rgba(22, 101, 52, 0.4);
  --button-bg-hover: rgba(22, 101, 52, 0.5);
  --shadow-color: rgba(34, 197, 94, 0.2);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: radial-gradient(circle at center, rgba(0, 128, 0, 0.15), rgba(0, 0, 0, 0) 70%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

/* Profile section */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--text-color-muted);
  box-shadow: 0 0 15px var(--shadow-color);
  margin-bottom: 1rem;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.title {
  font-size: 0.875rem;
  color: var(--text-color-muted);
  margin-bottom: 0.5rem;
}

.bio {
  font-size: 0.875rem;
  color: var(--text-color-dim);
  max-width: 32rem;
}

/* Links section */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-card {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.link-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
}

.link-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.link-icon {
  color: var(--text-color);
}

.link-toggle {
  color: var(--text-color);
}

.link-content {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  background-color: rgba(0, 0, 0, 0.2);
}

.link-content p {
  font-size: 0.875rem;
  color: var(--text-color-dim);
  margin-bottom: 0.75rem;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--button-bg);
  color: var(--text-color-muted);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.link-button:hover {
  background-color: var(--button-bg-hover);
}

/* Footer */
.footer {
  margin-top: 3rem;
  text-align: center;
}

.footer p {
  font-size: 0.75rem;
  color: rgba(34, 197, 94, 0.5);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 50, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 128, 0, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 128, 0, 0.5);
}

/* HTML <details> element styling */
details.link-card summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.link-card summary::after {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
}

details.link-card[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E");
}

details.link-card summary::-webkit-details-marker {
  display: none;
}

/* Animation for expanding/collapsing */
details.link-card .link-content {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media queries for responsiveness */
@media (max-width: 640px) {
  .container {
    padding: 2rem 1rem;
  }
  
  .avatar {
    width: 80px;
    height: 80px;
  }
  
  h1 {
    font-size: 1.25rem;
  }
}