:root {
    --bt-bg: #121212;
    --bt-panel: #1e1e1e;
    --bt-text-main: #ffffff;
    --bt-text-subtle: #bbbbbb;
    --bt-tan: #d2b48c;
    --bt-tan-dark: #c2a37e;
}

body {
    background-color: var(--bt-bg);
    color: var(--bt-text-main);
    font-family: Arial, sans-serif;
}

.bt-page-container {
    min-height: 100vh;
    padding: 3rem 1rem;
}

.bt-chip {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--bt-tan);
    color: var(--bt-tan);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 1rem;
}

.bt-tool-card {
    background-color: var(--bt-panel);
    border-radius: 0;
    border: 1px solid #2b2b2b;
    color: #ddd;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(0, 0, 0, 0.7);
}

.bt-tool-card:hover {
    transform: translateY(-6px);
    box-shadow:
        8px 8px 0 rgba(110, 90, 62, 0.95),
        0 18px 32px rgba(0, 0, 0, 0.85);
    border-color: var(--bt-tan);
    background-color: var(--bt-tan);
    color: #121212;
}

.bt-tool-card-disabled {
    opacity: 0.55;
    cursor: default;
    filter: grayscale(1);
    color: #999;
}

.bt-tool-card-disabled:hover {
    transform: none;
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(0, 0, 0, 0.7);
    border-color: #333;
    background-color: #161616;
    color: #888;
}

.bt-tool-card-disabled .bt-tool-pill {
    border-color: #555;
    color: #777;
    background-color: transparent;
}

.bt-tool-card-disabled .bt-under-construction {
    border-color: #777;
    color: #bcbcbc;
}

.bt-tool-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bt-tan);
    margin-bottom: 0.5rem;
}

.bt-tool-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.bt-tool-pill {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #444;
    color: #aaa;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.bt-tool-card:hover .bt-tool-pill {
    border-color: rgba(0, 0, 0, 0.45);
    color: #2a2117;
    background-color: rgba(0, 0, 0, 0.04);
}

.bt-tool-body {
    flex: 1;
}

.bt-tool-footer {
    margin-top: 1rem;
}

.btn-tan {
    background-color: var(--bt-tan);
    color: #000;
    border: none;
}

.btn-tan:hover {
    background-color: var(--bt-tan-dark);
    color: #000;
}

.btn-outline-tan {
    border-color: var(--bt-tan);
    color: var(--bt-tan);
}

.btn-outline-tan:hover {
    background-color: var(--bt-tan);
    color: #000;
}

.bt-footer-note {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--bt-text-subtle);
    text-align: center;
}

.bt-footer-note a {
    color: var(--bt-tan);
    text-decoration: none;
}

.bt-footer-note a:hover {
    text-decoration: underline;
}

/* Audio toggle */
.bt-audio-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 1.1rem;
  border: 1px solid #514332;
  background: #1f1b15;
  color: #f5f5f5;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bt-audio-toggle .bi {
  font-size: 1.3em;
}

.bt-audio-toggle:hover {
  border-color: #a58e77;
  color: #a58e77;
}

.bt-audio-toggle.bt-audio-playing {
  background-color: #2a2a2a;
  border-color: #a58e77;
  color: #a58e77;
  box-shadow: 0 0 0 0 rgba(165, 142, 119, 0.7);
  animation: bt-audio-pulse 1.4s infinite;
}

.bt-audio-toggle.bt-audio-playing .bi {
  animation: bt-icon-glow 1.4s infinite;
}

@keyframes bt-audio-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(165, 142, 119, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(165, 142, 119, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(165, 142, 119, 0);
  }
}

@keyframes bt-icon-glow {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Responsive: cards always full width on narrow screens */
@media (max-width: 767.98px) {
    .bt-page-container {
        padding-top: 2.5rem;
    }
}
