:root {
  --bg: #0d0a1f;
  --text: #e8dcff;
  --accent: #c4a7ff;
  --muted: #9f8dc9;
  --tab-bg: #1b1445;
  --tab-border: #2a1a5e;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 15%, #2a1a5e 0%, transparent 55%),
              radial-gradient(circle at 80% 85%, #1b1445 0%, transparent 55%),
              linear-gradient(180deg, #0d0a1f 0%, #120d2b 60%, #0d0a1f 100%);
  background-attachment: fixed;
}

/* Layout */
.layout {
  display: flex;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  min-height: 100vh;
  align-items: stretch;
}

main {
  flex: 1;
}

/* Tabs */
.tabs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: 160px;
  padding-right: 1.5rem;
  border-right: 1px solid var(--tab-border);
  height: fit-content;
  position: sticky;
  top: 3rem;
}

.tab {
  background: var(--tab-bg);
  color: var(--muted);
  border: 1px solid var(--tab-border);
  border-radius: 8px;
  padding: 0.9rem;
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  width: 44px;
}

.tab:hover {
  background: #241a55;
  color: var(--text);
  transform: translateY(-2px);
  width: 130px;
}

.tab.active {
  background: var(--accent);
  color: #0d0a1f;
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(196, 167, 255, 0.5);
  width: 130px;
}

.tab.dyn {
  height: 44px;
  flex-shrink: 0;
  padding: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}

.tab.dyn .tab-icon {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
}

.tab.dyn .label {
  font-size: 0.9rem;
}

.tab-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.label {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab:hover .label,
.tab.active .label {
  opacity: 1;
  transform: translateX(0);
}

.tab.active .label {
  font-weight: 700;
  color: #fff3d6;
}

@media (max-width: 700px) {
  .layout {
    flex-direction: column;
    gap: 1rem;
  }
  .tabs {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid var(--tab-border);
    padding-right: 0;
    padding-bottom: 1rem;
    position: static;
  }
  .tab {
    border-radius: 999px;
    width: auto;
  }
  .tab:hover {
    width: auto;
  }
  .tab.active {
    width: auto;
  }
  .label {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Panels */
.panels {
  position: relative;
  min-height: 320px;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
  animation: panelIn 0.4s ease;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
}

.panel h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 0.5rem;
}

.panel p {
  color: var(--muted);
  font-size: 1.15rem;
}

.info {
  margin-top: 1rem;
}

.info p {
  margin-bottom: 0.75rem;
}

.info strong {
  color: var(--accent);
}

.like-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.like-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  flex-wrap: wrap;
  background: var(--tab-bg);
  border: 1px solid var(--tab-border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.like-list li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.like-list li span {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
}

.like-list li .like-sub {
  flex: 1 1 100%;
}

.add-like {
  margin-left: auto;
  background: var(--tab-bg);
  color: var(--muted);
  border: 1px solid var(--tab-border);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-like:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.add-like.expand {
  margin-left: 0.25rem;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.1rem;
  line-height: 1;
  transition: all 0.3s ease;
}

.add-like.expand::before {
  content: "＋";
}

.add-like.expand:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.add-like.expand.open {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(196, 167, 255, 0.4);
}

.like-sub {
  width: 100%;
  color: var(--muted);
  font-size: 0.9rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.like-sub.open {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.5rem;
}

.like-content {
  background: var(--tab-bg);
  border: 1px dashed var(--tab-border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  outline: none;
  min-height: 40px;
}

.like-content:focus {
  border-color: var(--accent);
  border-style: solid;
}

.like-input {
  flex: 1;
  background: var(--tab-bg);
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Socials */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 16px;
  background: var(--tab-bg);
  border: 1px solid var(--tab-border);
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.social svg {
  width: 52px;
  height: 52px;
  transition: transform 0.3s ease;
}

.social:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(196, 167, 255, 0.3);
}

.social:hover svg {
  transform: scale(1.08);
}
