﻿/* App store buttons */
.store-buttons {
    display: flex;
    gap: 1rem;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #1a1a1a;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .store-button:hover {
        transform: translateY(-2px);
        color: white;
        text-decoration: none;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .store-button svg {
        width: 28px;
        height: 28px;
        fill: white;
    }

.store-button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-button-small {
    font-size: 0.65rem;
    opacity: 0.8;
}

.store-button-large {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

/* ── Shared invest-style card ── */
.ff-invest-card {
    background: var(--bs-card-bg, #fff);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color, rgba(98, 105, 118, 0.16));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.ff-invest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.ff-invest-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bs-bg-surface-secondary, #f1f5f9);
}

.ff-invest-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ff-invest-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--bs-secondary, #667382);
    opacity: 0.5;
}

.ff-invest-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}

.ff-invest-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.92);
    color: #1e293b;
    backdrop-filter: blur(4px);
}

.ff-invest-card-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.ff-invest-card-body {
    padding: 1.25rem;
    flex: 1;
}

.ff-invest-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.ff-invest-card-metrics {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--bs-border-color, rgba(98, 105, 118, 0.16));
    border-bottom: 1px solid var(--bs-border-color, rgba(98, 105, 118, 0.16));
}

.ff-invest-card-metric {
    flex: 1 1 0;
    text-align: center;
    min-width: 0;
    padding: 0 8px;
}

.ff-invest-card-metric-value {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
}

.ff-invest-card-metric-label {
    display: block;
    font-size: 0.7rem;
    color: var(--bs-secondary, #667382);
    letter-spacing: 0.01em;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ff-invest-card-metric-divider {
    flex: 0 0 1px;
    width: 1px;
    min-width: 1px;
    height: 28px;
    background: var(--bs-border-color, rgba(98, 105, 118, 0.16));
}

.ff-progress-bar {
    background-color: #4B8554;
    border-radius: 3px;
}

.ff-invest-card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--bs-border-color, rgba(98, 105, 118, 0.16));
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bs-primary, #0054a6);
}

.ff-invest-card:hover .ff-invest-card-footer {
    color: var(--bs-primary-darken, #003d7a);
}
