/* ── Gradient top border (replaces the plain border-top inline style) ──── */
.app-footer {
    position: relative;
}

.app-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(59, 130, 246, 0.45) 25%,
        rgba(6, 182, 212, 0.65) 50%,
        rgba(59, 130, 246, 0.45) 75%,
        transparent 100%
    );
}

/* ── Main 3-column grid ─────────────────────────────────────────────────── */

/* Mobile: stacked, centered */
.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
    padding-bottom: 2.5rem;
    text-align: center;
}

/* Mobile: brand shows first, stats second, trustpilot third */
.footer-brand-col  { order: 1; }
.footer-stats-inline { order: 2; }
.footer-tp-col     { order: 3; }

/* Desktop: left → center → right */
@media (min-width: 900px) {
    .footer-main {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 3rem;
        padding-bottom: 2.5rem;
    }

    .footer-stats-inline { order: 1; justify-self: start; }
    .footer-brand-col    { order: 2; justify-self: center; }
    .footer-tp-col       { order: 3; justify-self: end; }
}

/* ── Brand column ───────────────────────────────────────────────────────── */

.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-brand-name {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
    background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(96, 165, 250, 0.25));
}

/* Social icons row */
.footer-brand__socials,
.footer-brand-col .footer-icons {
    margin-bottom: 0;
}

/* ── Inline stats ───────────────────────────────────────────────────────── */

.footer-stats-inline {
    display: flex;
    align-items: center;
}

.footer-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.1rem;
}

.footer-stat:first-child { padding-left: 0; }
.footer-stat:last-child  { padding-right: 0; }

.footer-stat__value {
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

.footer-stat__label {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.38);
    text-transform: uppercase;
    letter-spacing: 0.9px;
    font-weight: 600;
    margin-top: 0.3rem;
}

.footer-stat__divider,
.footer-stat-divider {
    width: 1px;
    height: 2rem;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* ── Trustpilot column ──────────────────────────────────────────────────── */

.footer-tp-col {
    display: flex;
    justify-content: center;
}

@media (min-width: 900px) {
    .footer-tp-col {
        justify-content: flex-end;
    }
}

/* ── Trustpilot Widget ──────────────────────────────────────────────────── */

.tp-widget {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    min-width: 175px;
}

.tp-widget:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 182, 122, 0.35);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

/* Wordmark row */
.tp-widget__brand,
.tp-brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tp-widget__logo,
.tp-logo-star {
    width: 16px;
    height: 15px;
    flex-shrink: 0;
}

.tp-widget__brand-text,
.tp-brand-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
}

/* Rating label */
.tp-widget__label,
.tp-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.2px;
}

/* Five star boxes */
.tp-widget__stars,
.tp-stars {
    display: flex;
    gap: 2px;
}

.tp-widget__star,
.tp-star {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tp-widget__star svg,
.tp-star svg {
    width: 13px;
    height: 12px;
}

.tp-widget__star--full,  .tp-star--full  { background: #00B67A; }
.tp-widget__star--half,  .tp-star--half  { background: linear-gradient(to right, #00B67A 50%, #73747f 50%); }
.tp-widget__star--empty, .tp-star--empty { background: #73747f; }

/* Score / review count row */
.tp-widget__score,
.tp-score {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
}

.tp-widget__score strong,
.tp-score strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    font-size: 0.78rem;
}

.tp-widget__divider,
.tp-divider {
    opacity: 0.4;
}

/* ── Bottom bar ─────────────────────────────────────────────────────────── */

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.78rem;
    text-align: center;
}

@media (min-width: 900px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.footer-bottom__left,
.footer-bottom-left,
.footer-bottom__right,
.footer-bottom-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
}

@media (min-width: 900px) {
    .footer-bottom__left,  .footer-bottom-left  { justify-content: flex-start; }
    .footer-bottom__right, .footer-bottom-right { justify-content: flex-end; }
}

.footer-bottom__copyright,
.footer-copyright {
    color: rgba(255, 255, 255, 0.55);
}

.footer__nav-link,
.footer-nav-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.footer__nav-link:hover,
.footer-nav-link:hover {
    color: rgba(255, 255, 255, 0.85);
}

.footer-bottom__sep,
.footer-sep {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.7rem;
}

.footer-bottom__right span,
.footer-bottom-right span {
    color: rgba(255, 255, 255, 0.28);
}

.footer-bottom__heart,
.footer-heart {
    color: #f87171;
}

/* ── Debug Bar ──────────────────────────────────────────────────────────── */

.footer__debug,
.footer-bottom-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-debug__divider,
.debug-divider {
    color: rgba(255, 255, 255, 0.1);
}

.footer-debug__item a,
.debug-item a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-debug__item a:hover,
.debug-item a:hover {
    color: #fff;
    text-decoration: underline;
}
