/* 投稿案内（画面を塞がないコーナーカード） */
.post-prompt {
    display: none;
    position: fixed;
    z-index: 160;
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: min(22.5rem, calc(100vw - 2rem));
    pointer-events: none;
}

.post-prompt.is-open {
    display: block;
    pointer-events: auto;
}

.post-prompt.is-open[hidden] {
    display: block;
}

.post-prompt__card {
    position: relative;
    padding: 1rem 1rem 0.875rem;
    border-radius: 1rem;
    background: linear-gradient(165deg, #1f2937 0%, #111827 55%, #0f172a 100%);
    border: 1px solid var(--gth-border-accent, rgba(74, 222, 128, 0.25));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 18px 40px rgba(0, 0, 0, 0.5),
        0 0 32px rgba(34, 197, 94, 0.08);
}

.post-prompt.is-open .post-prompt__card {
    animation: post-prompt-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes post-prompt-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-prompt__close {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    color: #9ca3af;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.post-prompt__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.post-prompt__header {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding-right: 1.75rem;
    margin-bottom: 0.875rem;
}

.post-prompt__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: var(--gth-green, #4ade80);
}

.post-prompt__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.4;
    color: #f9fafb;
}

.post-prompt__desc {
    margin: 0.3rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #9ca3af;
}

.post-prompt__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.post-prompt__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.375rem;
    padding: 0 0.95rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: #052e16;
    background: linear-gradient(180deg, var(--gth-green, #4ade80) 0%, var(--gth-green-dim, #22c55e) 100%);
    border-radius: 0.5rem;
    transition: filter 0.15s, transform 0.1s;
}

.post-prompt__cta:hover {
    filter: brightness(1.06);
}

.post-prompt__cta:active {
    transform: scale(0.98);
}

.post-prompt__later {
    min-height: 2.375rem;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #9ca3af;
    background: transparent;
    border: 1px solid rgba(75, 85, 99, 0.6);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.post-prompt__later:hover {
    color: #e5e7eb;
    border-color: #6b7280;
    background: rgba(255, 255, 255, 0.04);
}

body:has(.gth-theme-preview-bar) .post-prompt {
    bottom: 4.75rem;
}

@media (max-width: 480px) {
    .post-prompt {
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
        bottom: max(0.75rem, env(safe-area-inset-bottom));
    }

    .post-prompt__cta,
    .post-prompt__later {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .post-prompt.is-open .post-prompt__card {
        animation: none;
    }
}
