/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-gradient {
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--hh-primary);
}

.text-muted {
    color: var(--hh-text-muted);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-sm {
    gap: var(--hh-spacing-sm);
}

.gap-md {
    gap: var(--hh-spacing-md);
}

.gap-lg {
    gap: var(--hh-spacing-lg);
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

.p-md {
    padding: var(--hh-spacing-md);
}

.p-lg {
    padding: var(--hh-spacing-lg);
}

.p-xl {
    padding: var(--hh-spacing-xl);
}

.mt-md {
    margin-top: var(--hh-spacing-md);
}

.mt-lg {
    margin-top: var(--hh-spacing-lg);
}

.mt-xl {
    margin-top: var(--hh-spacing-xl);
}

.mb-md {
    margin-bottom: var(--hh-spacing-md);
}

.mb-lg {
    margin-bottom: var(--hh-spacing-lg);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* pulse-glow removed */

/* ==========================================================================
   Skeleton Loading States
   ========================================================================== */
@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg,
            var(--hh-dark-elevated) 25%,
            rgba(255, 255, 255, 0.06) 50%,
            var(--hh-dark-elevated) 75%);
    background-size: 800px 100%;
    animation: shimmer 2s ease-in-out infinite;
    border-radius: var(--hh-radius-sm);
}

[data-hh-theme="paper"] .skeleton {
    background: linear-gradient(
        90deg,
        var(--hh-dark-elevated) 25%,
        rgba(0, 0, 0, 0.06) 50%,
        var(--hh-dark-elevated) 75%
    );
    background-size: 200% 100%;
}

.skeleton-text {
    height: 0.875rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-text.medium {
    width: 65%;
}

.skeleton-text.long {
    width: 90%;
}

.skeleton-avatar {
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-tag {
    display: inline-block;
    height: 1.5rem;
    border-radius: var(--hh-radius-full);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Skeleton: Discover Card */
.skeleton-discover-card {
    width: 100%;
    border-radius: var(--hh-radius-xl);
    overflow: hidden;
    background: var(--hh-dark-surface);
    border: 1px solid var(--hh-glass-border);
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.skeleton-discover-image {
    flex: 1;
    min-height: 200px;
}

.skeleton-discover-footer {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Skeleton: Match Card */
.skeleton-match-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--hh-dark-surface);
    border: 1px solid var(--hh-glass-border);
    border-radius: var(--hh-radius-lg);
}

.skeleton-match-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

/* Skeleton: Chat Message */
.skeleton-chat-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.skeleton-chat-row.sent {
    flex-direction: row-reverse;
}

.skeleton-bubble {
    border-radius: 16px;
    height: 2.5rem;
}

.skeleton-bubble.short {
    width: 35%;
}

.skeleton-bubble.medium {
    width: 55%;
}

.skeleton-bubble.long {
    width: 75%;
}

.animate-fade-in {
    animation: fadeIn var(--hh-transition-normal) forwards;
}

.animate-slide-up {
    animation: slideUp var(--hh-transition-normal) forwards;
}

.animate-pulse {
    /* pulse-glow removed */
}

.animate-slide-down {
    animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-delayed {
    opacity: 0;
    animation: fadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.animate-fade-in-delayed-2 {
    opacity: 0;
    animation: fadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

/* --------------------------------------------------------------------------
   Loading Messages (rotating status text)
   -------------------------------------------------------------------------- */
.hh-loading-message {
    animation: fadeInUp 0.4s ease-out;
    min-height: 1.5em;
}

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