/*
 * AutoClipz reusable UI pieces.
 * Use these classes when we want the black-to-blue glowing launcher button style.
 */

:root {
    --ac-blue: #0057F6;
    --ac-blue-dark: #003fb8;
    --ac-blue-bright: #0070ff;
    --ac-cyan: #00D4FF;
}

/*
 * Shared AutoClipz wordmark.
 * Context controls the font size; this keeps the brand shape consistent.
 */
.brand-text,
.guest-welcome-brand {
    display: inline-flex !important;
    align-items: baseline;
    justify-content: center;
    color: var(--ac-blue) !important;
    font-weight: 900 !important;
    letter-spacing: -0.065em !important;
    line-height: 0.92 !important;
    white-space: nowrap;
    filter:
        drop-shadow(0 0 7px rgba(0, 87, 246, 0.26))
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.08));
}

.brand-text .brand-highlight,
.guest-welcome-brand .guest-brand-clipz {
    color: #ffffff !important;
    margin-left: -0.025em;
    font-weight: inherit !important;
    letter-spacing: inherit !important;
    line-height: inherit !important;
    text-shadow:
        0 0 7px rgba(255, 255, 255, 0.36),
        0 0 14px rgba(255, 255, 255, 0.12);
}

.guest-welcome-brand .guest-brand-auto {
    color: var(--ac-blue) !important;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

/* Scissors are the Clipper identity mark and intentionally carry the strongest role glow. */
.fa-cut {
    color: #ffd54a;
    text-shadow: 0 0 8px rgba(255, 232, 138, 0.78);
    filter:
        drop-shadow(0 0 5px rgba(255, 232, 138, 0.9))
        drop-shadow(0 0 12px rgba(255, 193, 7, 0.7));
}

.ac-launcher {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border-radius: 11px;
    border: 1px solid rgba(0, 87, 246, 0.34);
    background:
        radial-gradient(circle at 92% 45%, rgba(255, 255, 255, 0.06), transparent 28%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(6, 12, 22, 0.94));
    color: rgba(255, 255, 255, 0.92);
    padding: 0.78rem 1rem;
    cursor: pointer;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 rgba(0, 87, 246, 0);
}

.ac-launcher:hover,
.ac-launcher:focus-visible {
    border-color: rgba(0, 212, 255, 0.72);
    background:
        radial-gradient(circle at 90% 45%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(0, 112, 255, 0.96), rgba(0, 63, 184, 0.94));
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow:
        0 0 0 0.16rem rgba(0, 87, 246, 0.16),
        0 0 22px rgba(0, 87, 246, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    outline: none;
}

.ac-launcher:disabled,
.ac-launcher.disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
}

.ac-launcher:disabled:hover,
.ac-launcher.disabled:hover {
    border-color: rgba(0, 87, 246, 0.34);
    background:
        radial-gradient(circle at 92% 45%, rgba(255, 255, 255, 0.06), transparent 28%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(6, 12, 22, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 rgba(0, 87, 246, 0);
}

.ac-launcher-strong {
    min-height: 58px;
    font-size: 1.05rem;
}

.ac-launcher-compact {
    min-height: 42px;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
}

.ac-launcher-compact .ac-launcher-label {
    width: auto;
    text-align: center;
}

.ac-launcher-icon {
    color: var(--ac-blue-bright);
    font-size: 1.16rem;
    filter: drop-shadow(0 0 6px rgba(0, 87, 246, 0.42));
    transition: color 0.22s ease, text-shadow 0.22s ease, filter 0.22s ease;
}

.ac-launcher-label {
    flex: 1;
    min-width: 0;
    color: inherit;
    font-weight: 800;
    text-align: left;
}

.ac-launcher-muted-label {
    color: rgba(173, 181, 189, 0.86);
    font-style: italic;
    font-weight: 500;
}

.ac-launcher-arrow {
    color: rgba(173, 181, 189, 0.72);
    font-size: 0.8rem;
    margin-left: auto;
    transition: color 0.22s ease, text-shadow 0.22s ease, transform 0.22s ease;
}

.ac-launcher:hover .ac-launcher-icon,
.ac-launcher:focus-visible .ac-launcher-icon,
.ac-launcher:hover .ac-launcher-arrow,
.ac-launcher:focus-visible .ac-launcher-arrow {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.52));
}

.ac-launcher:hover .ac-launcher-muted-label,
.ac-launcher:focus-visible .ac-launcher-muted-label {
    color: #ffffff;
}

.clipper-upgrade-btn {
    border: 1px solid rgba(255, 232, 143, 0.76);
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.24), transparent 44%),
        linear-gradient(145deg, rgba(255, 204, 38, 0.98), rgba(161, 105, 0, 0.98) 68%);
    color: #120d00;
    font-weight: 800;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        0 0 24px rgba(255, 193, 7, 0.28);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.clipper-upgrade-btn:hover,
.clipper-upgrade-btn:focus-visible {
    border-color: rgba(255, 246, 194, 0.94);
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.38), transparent 46%),
        linear-gradient(145deg, #ffe06b, #c68700 68%);
    color: #070500;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.54),
        0 0 30px rgba(255, 193, 7, 0.46);
}

/* Mobile layouts are touch-first, so taps should not leave hover finishes stuck on. */
@media (max-width: 767px) {
    .ac-launcher:hover {
        border-color: rgba(0, 87, 246, 0.34) !important;
        background:
            radial-gradient(circle at 92% 45%, rgba(255, 255, 255, 0.06), transparent 28%),
            linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(6, 12, 22, 0.94)) !important;
        color: rgba(255, 255, 255, 0.92) !important;
        transform: none !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 0 0 rgba(0, 87, 246, 0) !important;
    }

    .ac-launcher:hover .ac-launcher-icon {
        color: var(--ac-blue-bright) !important;
        text-shadow: none !important;
        filter: drop-shadow(0 0 6px rgba(0, 87, 246, 0.42)) !important;
    }

    .ac-launcher:hover .ac-launcher-arrow {
        color: rgba(173, 181, 189, 0.72) !important;
        text-shadow: none !important;
        filter: none !important;
    }

    .ac-launcher:hover .ac-launcher-muted-label {
        color: rgba(173, 181, 189, 0.86) !important;
    }

    .ac-launcher:active {
        transform: scale(0.985) !important;
        transition-duration: 0.1s;
    }

    .clipper-upgrade-btn:hover {
        transform: none;
    }

    .clipper-upgrade-btn:active {
        transform: scale(0.985);
    }
}
