/*
 * Mobile bookmark pages (mobile.php): /gp/{id} and /ios/{id}.
 *
 * The page background, header, brand, language pill and footer are the ones
 * from home.css - this file only adds the centred single-column panel, the
 * link preview and the two call-to-action buttons, using the same tokens.
 */

.mobile-main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6) 0;
}

.mobile-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    width: 100%;
    max-width: 460px;
    padding: var(--space-6) var(--space-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(46, 37, 108, .08);
    text-align: center;
}

.mobile-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

/* ------------------------------------------------------------ link preview */

.link-preview {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-4);
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: left;
}

/* A long title wraps to two lines instead of stretching the card. */
.link-preview-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.link-preview-host {
    overflow: hidden;
    color: var(--text-muted);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ------------------------------------------------------------------- copy */

.mobile-note {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.mobile-hint {
    margin-top: calc(var(--space-2) * -1);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.mobile-tagline {
    color: var(--text-muted);
    font-size: 13px;
}

/* --------------------------------------------------------------- buttons */

.mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 var(--space-5);
    background: var(--brand-gradient);
    border-radius: 14px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(91, 91, 245, .32);
    transition: transform var(--transition), box-shadow var(--transition);
}

.mobile-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(91, 91, 245, .4);
}

.mobile-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 var(--space-4);
    background: var(--brand-soft);
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--brand-strong);
    font-size: 15px;
    font-weight: 650;
    transition: border-color var(--transition);
}

.mobile-secondary:hover {
    border-color: var(--brand);
}

.mobile-cta-logo {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

/* "or" between the two buttons. */
.mobile-divider {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-muted);
    font-size: 13px;
}

.mobile-divider::before,
.mobile-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--border);
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 480px) {
    .mobile-main {
        padding: var(--space-5) 0;
    }

    .mobile-panel {
        padding: var(--space-5) var(--space-4);
        border-radius: 18px;
    }

    .mobile-title {
        font-size: 22px;
    }

    .mobile-note {
        font-size: 14px;
    }

    .mobile-cta {
        min-height: 52px;
        padding: 0 var(--space-4);
        font-size: 15px;
    }
}
