@import url("https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300..800&family=Funnel+Sans:ital,wght@0,300..800;1,300..800&display=swap");

:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}
* {
  margin: 0%;
  padding: 0%;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
}

html,
body {
  width: 100%;
}

body {
  min-height: 100vh;
  position: relative;
}
h1,
h2,
h3,
a,
.btn,
.tone-title {
  font-family: "Funnel Display", sans-serif;
}
h4,
h5,
h6,
p {
  font-family: "Funnel Sans", sans-serif;
}
.noise-overlay {
  position: fixed;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.1;
  mix-blend-mode: multiply;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.25' numOctaves='2' seed='8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
}
#background {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0%;
  left: 0;
  /* background: linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.4)); */
  transition: background-color 0.25s ease-in-out;
}
#container {
  width: 100%;
  min-height: 100vh;
  font-family: "Funnel Sans", sans-serif;
}
nav {
  width: 100%;
  position: sticky;
  top: 0%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1rem;
}
main {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
  justify-content: center;
}
aside {
  width: 200px;
  min-height: calc(100vh - 80px);
  position: sticky;
  top: 80px;
  padding: 1rem;
}
.vibes-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.vibe-tag {
  text-align: left;
  padding: 0.6rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 500;
  width: 100%;
  color: #555;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.vibe-tag:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.03);
  padding-left: 1.5rem; /* Subtle nudge */
}

.vibe-tag.active {
  background: #111;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tones-container {
  flex: 1;
  padding: 0 1rem;
}

.tones {
  width: 100%;
  color: black;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
}
.tone-card {
  width: 18rem;
  height: 22rem;
  margin-bottom: 1rem;
  padding: 1rem;

  display: flex;
  flex-direction: column;
  gap: 1rem;

  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;

  /* box-shadow:
    6px 6px 12px rgba(0, 0, 0, 0.08),
    -6px -6px 12px rgba(0, 0, 0, 0.7); */
}

.tone-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.tone-colors {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 14px rgba(0, 0, 0, 0.06);
}

.tone-colors .stripe {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 1.25rem;
  transition: flex 0.5s var(--ease-out-expo), opacity 0.3s;
}
.tone-colors:hover .stripe {
  opacity: 0.9;
}
.tone-colors .stripe:hover {
  flex: 4;
  opacity: 1;
}
/* .stripe:hover .name-display, */
.stripe:hover .hex-display {
  font-size: 1.2rem;
}
.name-display {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: capitalize;
  font-weight: 600;
}

.hex-display {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 600;
}

.tone-info {
  width: 100%;
  height: 40%;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tone-detail {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.tone-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04rem;
}

.tone-rating {
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
}

.tone-action {
  display: flex;
  gap: 12px;
}

.btn {
  border: none;
  border-radius: 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  position: relative;
  overflow: hidden;
  transition: all 0.2s var(--ease-out-expo);
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  filter: brightness(110%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-elastic), opacity 0.2s;
}

.btn-success {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-elastic);
  background-color: #22c55e;
}

.btn.copied .btn-content {
  transform: translateY(-150%);
  opacity: 0;
}

.btn.copied .btn-success {
  transform: translateY(0);
}

.btn-primary {
  flex: 3;
  /* background: linear-gradient(to bottom, #fafafa 0%, #e6e6e6 100%); */
  transition: transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo);
  color: black;
  /* border: 1px solid rgba(0, 0, 0, 0.15); */
}
.btn-primary:hover {
  transition: box-shadow 0.1s ease, transform 0.1s ease;
}

.btn-icon {
  flex: 1;
}
