/**
 * Wolf Howl Tool — Styles
 */

.wh-wrapper {
    text-align: center;
    padding: 0.5rem 0 0;
}

/* Wolf photo */
.wh-wolf {
    max-width: 280px;
    margin: 0 auto 1.25rem;
    border-radius: var(--wpt-radius-lg, 14px);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.wh-wolf-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--wpt-radius-lg, 14px);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.wh-wolf.howling {
    animation: wh-shake 0.4s ease-in-out 5;
}

.wh-wolf.howling .wh-wolf-img {
    filter: brightness(1.15) contrast(1.1);
    transform: scale(1.03);
}

/* Title */
.wh-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.wh-subtitle {
    font-size: 1rem;
    opacity: 0.55;
    margin: 0 0 1.5rem;
}

/* Howl button */
.wh-howl-btn {
    font-size: 1.25rem !important;
    padding: 1rem 3rem !important;
    min-height: 60px !important;
    border-radius: 999px !important;
    gap: 0.625rem !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: auto !important;
    max-width: 100%;
}

.wh-howl-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35) !important;
}

.wh-howl-btn:active {
    transform: scale(0.95) !important;
}

.wh-howl-btn.howling {
    animation: wh-pulse 0.5s ease-in-out 6;
    background: #9333ea !important;
    box-shadow: 0 4px 32px rgba(147, 51, 234, 0.4) !important;
}

.wh-howl-icon {
    font-size: 1.375rem;
    line-height: 1;
}

/* Counter */
.wh-counter {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

.wh-counter-label {
    opacity: 0.5;
}

.wh-counter-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--wpt-accent, #2563eb);
    min-width: 2rem;
    transition: transform 0.3s;
}

.wh-counter-value.bump {
    animation: wh-bump 0.3s ease;
}

/* Message */
.wh-message {
    margin-top: 1rem;
    font-size: 1rem;
    min-height: 1.5em;
    opacity: 0;
    transition: opacity 0.4s;
}

.wh-message.visible {
    opacity: 0.65;
}

/* Sound wave rings */
.wh-sound-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid var(--wpt-accent, #2563eb);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    left: 50%;
    top: 25%;
    transform: translate(-50%, -50%) scale(0.5);
    animation: wh-ring 1.5s ease-out forwards;
}

/* Animations */
@keyframes wh-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

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

@keyframes wh-bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

@keyframes wh-ring {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(3); }
}

/* Responsive */
@media (max-width: 640px) {
    .wh-wolf {
        max-width: 220px;
    }

    .wh-title {
        font-size: 1.25rem;
    }

    .wh-howl-btn {
        padding: 0.875rem 2rem !important;
        font-size: 1.125rem !important;
        min-height: 52px !important;
    }
}

@media (max-width: 380px) {
    .wh-wolf {
        max-width: 180px;
    }

    .wh-title {
        font-size: 1.125rem;
    }

    .wh-howl-btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
}
