:root {
  --bg-color: #f7f7f8;
  --text-color: #333333;
  --text-muted: #666666;
  --primary-color: #2c2c2c;
  --card-bg: #ffffff;
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  opacity: 0.7;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header & Profile */
.profile-section {
  text-align: center;
  margin-bottom: 40px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  background-color: #e0e0e0;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.name {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.bio {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  white-space: pre-wrap;
  text-align: center;
}

/* Links */
.links-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 50px;
}

.link-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  background-color: var(--card-bg);
  padding: 16px 20px;
  border-radius: var(--border-radius);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.link-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.link-id {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: normal;
}

.link-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.link-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
}

/* Embeds */
.embeds-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 768px) {
  .embeds-section {
    flex-direction: row;
    align-items: flex-start;
  }

  .embed-container {
    flex: 1;
    min-width: 0;
  }
}

.embed-container {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Custom to handle embed overflows sometimes */
.embed-container blockquote {
  margin: 0 !important;
}

/* Admin floating button */
.admin-link {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.admin-link:hover {
  opacity: 1;
}

/* Forms & Admin */
.admin-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(44, 44, 44, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  text-align: center;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: #000;
  opacity: 1;
}

.btn-danger {
  background-color: #e74c3c;
}

.btn-danger:hover {
  background-color: #c0392b;
}

.alert {
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  background-color: #d4edda;
  color: #155724;
  display: none;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

/* Admin Link Item */
.admin-link-item {
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  position: relative;
}

.remove-link {
  color: #e74c3c;
  cursor: pointer;
  font-size: 0.9rem;
}