/* ═══════════════════════════════════════════
   DROPS Footer — Brutalist collapsible
   Uses px sizing (not viewport em) for
   consistent utility-section proportions
   ═══════════════════════════════════════════ */

/* 1. Container — push to bottom */
.site-footer {
    margin-top: auto;
    padding-top: 32px;
}


/* 3. Trigger — left-aligned, matches .list-item-title style */
.footer-trigger {
    display: flex;
    justify-content: flex-start;
    cursor: pointer;
    user-select: none;
    padding: 12px 0;
}

.footer-trigger-title {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg);
    text-decoration: underline;
    text-decoration-color: var(--blue);
    text-underline-offset: 0.06em;
    text-decoration-thickness: 1px;
    transition: text-decoration-thickness 0.15s;
}

.footer-trigger:hover .footer-trigger-title,
.footer-trigger.is-expanded .footer-trigger-title {
    text-decoration-thickness: 2px;
}

/* 4. Panel — collapsed on mobile */
.footer-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-inner {
    padding: 8px 0 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* 5. Grid — 2 columns */
.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 6. Brand text — clean, no sign-badge transform issues */
.footer-brand {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg);
    margin-bottom: 12px;
}

/* 7. Navigation — tight compact links */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.footer-nav a {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.5);
    padding: 3px 0;
    transition: color 0.15s;
    white-space: nowrap;
}

.footer-nav a::after {
    content: '\00b7';
    margin: 0 6px;
    color: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.footer-nav a:last-child::after {
    display: none;
}

.footer-nav a:hover {
    color: var(--fg);
}

/* 8. Social icons — compact row */
.footer-social {
    display: flex;
    gap: 4px;
    margin-top: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: rgba(0, 0, 0, 0.35);
    transition: color 0.15s;
}

.social-icon svg {
    width: 32px;
    height: 32px;
}

.social-icon:hover {
    color: var(--fg);
}

/* 9. Column label */
.footer-col-label {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

/* ═══════════════════════════════════════════
   10a. Telegram CTA — replaces newsletter
   ═══════════════════════════════════════════ */
.footer-telegram-hint {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 12px;
    line-height: 1.4;
}

.footer-telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg);
    padding: 12px 20px;
    border: 1.5px solid var(--fg);
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.footer-telegram-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--fg);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.footer-telegram-btn:hover {
    color: var(--bg);
}

.footer-telegram-btn:hover::before {
    transform: scaleX(1);
}

.footer-telegram-btn:active {
    transform: scale(0.97);
}

.footer-telegram-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   10b. Newsletter — CRO-optimized 2026 (legacy)
   ═══════════════════════════════════════════ */
.newsletter-form {
    position: relative;
}

/* Input container — bordered with integrated submit */
.newsletter-field {
    position: relative;
    display: flex;
    align-items: center;
    height: 48px;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    overflow: visible;
    transition: border-color 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.newsletter-field:hover {
    border-color: rgba(0, 0, 0, 0.3);
}

/* Focus — airmail / par avion chevron border */
.newsletter-field.is-focused {
    outline: none;
}

.newsletter-field::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 10px;
    background: repeating-linear-gradient(
        -45deg,
        #c00 0px,
        #c00 4px,
        #fff 4px,
        #fff 8px,
        #00c 8px,
        #00c 12px,
        #fff 12px,
        #fff 16px
    );
    opacity: 0.35;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                inset 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 3px;
}

.newsletter-field.is-focused::before {
    opacity: 0.7;
    inset: -7px;
    border-radius: 12px;
    padding: 5px;
}

.newsletter-input {
    flex: 1;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    color: var(--fg);
    background: transparent;
    border: none;
    padding: 0 14px;
    height: 100%;
    outline: none;
    -webkit-appearance: none;
    border-radius: 0;
    min-width: 0;
}

.newsletter-input::placeholder {
    color: rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

/* Submit — integrated right side */
.newsletter-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 100%;
    background: none;
    border: none;
    border-left: 1.5px solid rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}

.newsletter-field.has-value .newsletter-submit {
    color: var(--fg);
}

.newsletter-submit:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--fg);
}

.newsletter-submit:active {
    background: rgba(0, 0, 0, 0.06);
}

/* Arrow hover micro-interaction */
.newsletter-submit svg {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.newsletter-submit:hover svg {
    transform: translateX(3px);
}


/* Success — replaces input, uses brand blue */
.newsletter-form[data-state="success"] .newsletter-field {
    display: none;
}

.newsletter-success {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    color: var(--fg);
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--blue);
    border-radius: 6px;
}

.newsletter-success[hidden] {
    display: none;
}

/* Error — static red border, no shake */
.newsletter-error {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    color: #c00;
    padding-top: 6px;
}

.newsletter-error[hidden],
.newsletter-error:empty {
    display: none;
}

.newsletter-field.is-error {
    border-color: #c00;
}


/* Loading — pulse (not spin) */
.newsletter-submit[aria-busy="true"] svg {
    animation: pulse-arrow 0.6s ease infinite alternate;
}

@keyframes pulse-arrow {
    from { opacity: 1; }
    to { opacity: 0.2; }
}

/* Hint */
.newsletter-hint {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.25);
    margin-top: 8px;
}

/* Subscriber count — gamification */
.newsletter-count {
    font-family: var(--font);
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.3);
    margin-top: 6px;
}

.newsletter-count[hidden] {
    display: none;
}

.newsletter-count [data-count] {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s;
}

/* 11. Badges */
.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    align-items: center;
}

.footer-badge { display: inline-flex; }

.badge-img {
    height: 20px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.4;
    transition: filter 0.2s, opacity 0.2s;
}

.footer-badge:hover .badge-img {
    filter: grayscale(0);
    opacity: 1;
}

/* 12. Bottom bar — status + copyright */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-bottom-left,
.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Status dot */
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00c853;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

.status-dot--off {
    background: #bbb;
    animation: none;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-text {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-copy,
.footer-tagline {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.25);
}

.footer-sep {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.15);
}

/* ═══════════════════════════════════════════
   13. Desktop — always expanded, 2-column
   ═══════════════════════════════════════════ */
@media (min-width: 769px) {
    .footer-trigger {
        cursor: default;
        pointer-events: none;
        padding: 8px 0;
    }

    .footer-trigger-title {
        color: var(--fg);
    }

    .footer-panel {
        max-height: none !important;
        overflow: visible;
        transition: none;
    }

    .footer-grid {
        flex-direction: row;
        gap: 40px;
    }

    .footer-col--left {
        flex: 1;
    }

    .footer-col--right {
        flex: 1;
    }
}

/* ═══════════════════════════════════════════
   14. Mobile overrides
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .footer-grid {
        gap: 10px;
    }

    .footer-trigger {
        min-height: 44px;
        align-items: center;
    }

    /* Inset footer content so newsletter doesn't touch edges */
    .footer-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .newsletter-submit {
        width: 48px;
    }

    .social-icon svg {
        width: 32px;
        height: 32px;
    }

    .footer-nav a {
        padding: 5px 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* 12b. Legal links — tiny, in bottom bar */
.footer-legal-link {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-legal-link:hover {
    color: var(--fg);
}

/* 15. Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .footer-panel,
    .newsletter-field,
    .newsletter-submit,
    .newsletter-submit svg,
    .newsletter-count [data-count],
    .social-icon {
        transition-duration: 0.01ms !important;
    }
    .status-dot { animation: none; }
}
