/* Clapback structural UI */

.mode-toggle {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.mode-toggle .mode-btn {
    border: 2px solid var(--primary-color, #6b73ff);
    background: transparent;
    color: inherit;
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: pointer;
}

.mode-toggle .mode-btn.active {
    background: var(--primary-color, #6b73ff);
    color: #fff;
}

.tier-selector {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

@media (min-width: 576px) {
    .tier-selector {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tier-card {
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

.tier-card:hover:not(.tier-locked) {
    transform: translateY(-3px);
}

.tier-card.tier-locked {
    cursor: pointer;
}

.tier-card.tier-preview {
    outline: 2px dashed rgba(128, 128, 128, 0.4);
    outline-offset: 3px;
}

.tier-card .tier-badge {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.tier-card .tier-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0.2rem 0;
    line-height: 1.25;
}

.tier-card .tier-desc {
    font-size: 0.74rem;
    opacity: 0.85;
    margin: 0;
    line-height: 1.35;
}

.tier-lock-icon {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    opacity: 0.55;
    font-size: 0.85rem;
}

.auth-bar {
    display: none;
}

/* You Sick Puppy roast-intensity dial — only shown in sick puppy mode. */
.bt-intensity {
    display: none;
    margin: 0.35rem 0 1.1rem;
    text-align: center;
}
body[data-bt-skin="sick_puppy"] .bt-intensity {
    display: block;
}
.bt-intensity-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    opacity: 0.72;
    margin-bottom: 0.45rem;
}
.bt-intensity-options {
    /* Grid with three equal columns guarantees identical button widths,
       regardless of label length or the global button touch-target rule. */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-width: 460px;
    margin: 0 auto;
}
.bt-intensity-opt {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0.5rem 0.3rem !important;
    border: 2px solid rgba(184, 255, 46, 0.4);
    background: transparent;
    color: inherit;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.bt-intensity-opt:hover { border-color: #b8ff2e; }
.bt-intensity-opt.is-active {
    background: #b8ff2e;
    color: #0e0e0e;
    border-color: #b8ff2e;
}

.share-preview-canvas {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.imagine-result img {
    max-width: 100%;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.clapback-result-hero {
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.5rem;
}

.welfare-footer {
    margin-top: 1rem;
}

.clapback-tts-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.clapback-speak-btn {
    font-weight: 700;
    border-radius: 0;
    padding: 0.45rem 1rem;
}

.tts-voice-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.75;
    font-weight: 700;
}

.tts-status {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-left: auto;
}

.tts-status.tts-error {
    color: #ff8a8a;
    opacity: 1;
}

.clapback-tts-bar.tts-active .clapback-speak-btn {
    animation: tts-pulse 1.4s ease-in-out infinite;
}

.clapback-roast-card.tts-speaking {
    box-shadow: none;
}

@keyframes tts-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}