/* =========================================================
   Ko-fi "Support us" — floating button + footer card.
   Visual language mirrors pwa.css (.pwa-fab / .pwa-footer-install)
   intentionally, so this reads as part of the same design system.
   ========================================================= */

/* ---- Floating support button (shares the bottom-left slot with
   .pwa-fab — pwa.js/support.js coordinate so only one shows at once) ---- */
.kofi-fab {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.kofi-fab.is-visible {
    display: inline-flex;
    animation: kofiFabIn 0.35s ease;
}

.kofi-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.kofi-fab:active {
    transform: translateY(0);
}

.kofi-fab-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@keyframes kofiFabIn {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

body.dark-theme .kofi-fab {
    background: #232323;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

@media (display-mode: standalone) {
    .kofi-fab {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 768px) {
    .kofi-fab {
        bottom: 15px;
        left: 15px;
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    @media (display-mode: standalone) {
        .kofi-fab {
            bottom: calc(15px + env(safe-area-inset-bottom, 0px));
        }
    }
}

/* ---- Footer "Support on Ko-fi" card (replaces the Buy Me a Coffee badge) ---- */
.kofi-footer-support {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    background: #fafafa;
    text-align: left;
    margin-bottom: 12px;
}

.kofi-footer-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 9px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kofi-footer-icon svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

.kofi-footer-text {
    flex: 1;
    min-width: 0;
}

.kofi-footer-text strong {
    display: block;
    font-size: 0.92rem;
    color: #000000;
    margin-bottom: 2px;
}

.kofi-footer-text span {
    display: block;
    font-size: 0.78rem;
    color: #666666;
}

.kofi-footer-btn {
    flex-shrink: 0;
    width: auto;
    padding: 9px 16px;
    font-size: 0.82rem;
    border-radius: 8px;
}

body.dark-theme .kofi-footer-support {
    background: #232323;
    border-color: #404040;
}

body.dark-theme .kofi-footer-text strong {
    color: #ffffff;
}

body.dark-theme .kofi-footer-text span {
    color: #b0b0b0;
}

@media (max-width: 768px) {
    .kofi-footer-support {
        flex-wrap: wrap;
    }
    .kofi-footer-btn {
        margin-left: 54px;
        width: calc(100% - 54px);
    }
}
