/**
 * Znx Media — Shared Styles
 * Used by: index.html, influencer.html, brand.html
 */

/* ── Material Symbols ── */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Brand Gradients ── */
.editorial-gradient {
    background: linear-gradient(135deg, #1b42eb 0%, #6e3bd8 100%);
}

.text-editorial-gradient {
    background: linear-gradient(135deg, #1b42eb 0%, #6e3bd8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Button Outline Gradient ── */
.btn-outline-gradient {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-gradient:hover {
    background: linear-gradient(135deg, #1b42eb 0%, #6e3bd8 100%);
    color: #eeeeff !important;
    border-color: transparent;
    box-shadow: 0px 10px 20px rgba(27, 66, 235, 0.15);
}

/* ── Glass Navigation ── */
.glass-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ── Scroll Reveal ── */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up[style*="--delay"] {
    transition-delay: var(--delay);
}

/* ── Tier Fill Animation ── */
.tier-fill {
    width: 0;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tier-fill.animated {
    width: 75%;
}

/* ── Tooltip ── */
.tooltip-trigger {
    position: relative;
}

.tooltip-trigger .tooltip-box {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 280px;
    padding: 16px 18px;
    background: #0f0f1a;
    color: #e8eaed;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 50;
}

.tooltip-trigger .tooltip-box::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #0f0f1a;
}

.tooltip-trigger:hover .tooltip-box {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tooltip-trigger .tooltip-box .tooltip-title {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a1aeff;
    margin-bottom: 8px;
}

/* ── Testimonial Carousel ── */
.testimonial-track {
    overflow: hidden;
    width: 100%;
}

.testimonial-scroll {
    display: flex;
    gap: 1.5rem;
    width: max-content;
}

.testimonial-scroll--left {
    animation: scroll-left 35s linear infinite;
}

.testimonial-track:hover .testimonial-scroll {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-card {
    flex-shrink: 0;
    width: 380px;
    padding: 1.75rem;
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid rgba(172, 179, 183, 0.12);
    box-shadow: 0 1px 3px rgba(45, 51, 55, 0.04), 0 4px 12px rgba(45, 51, 55, 0.03);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
    box-shadow: 0 8px 30px rgba(27, 66, 235, 0.08), 0 2px 8px rgba(45, 51, 55, 0.06);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .testimonial-card {
        width: 300px;
        padding: 1.25rem;
    }
}
