/* =========================================================
   RK STORIES HUB
   Social-Media-Vorlagen + Coin-Belohnung
   CI: #1c2539 / #ea5e20
========================================================= */

/* ── Hub-Header ───────────────────────────────────────── */

.rk-story-hub__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.rk-story-hub__header h3 {
    margin: 0;
}

.rk-story-hub__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.rk-story-hub__badge--open {
    background: rgba(234,94,32,0.12);
    color: #c2410c;
}

.rk-story-hub__badge--done {
    background: rgba(22,163,74,0.12);
    color: #15803d;
}

.rk-story-hub__intro {
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* ── Ref-Link ─────────────────────────────────────────── */

.rk-story-hub__reflink {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
}

.rk-story-hub__reflink-label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 6px;
}

.rk-story-hub__reflink-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rk-story-hub__reflink-input {
    flex: 1;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    color: #1c2539;
    background: #fff;
    min-width: 0;
}

.rk-story-hub__copy-btn {
    flex: 0 0 auto;
    padding: 7px 14px;
    border-radius: 8px;
    background: #1c2539;
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.rk-story-hub__copy-btn:hover {
    background: #111827;
}

/* ── Story-Karten Grid ────────────────────────────────── */

.rk-story-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.rk-story-card {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(28,37,57,0.06);
    display: flex;
    flex-direction: column;
}

/* ── Story-Bild ───────────────────────────────────────── */

.rk-story-card__image-wrap {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #f3f4f6;
}

.rk-story-card__image-wrap--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 13px;
}

.rk-story-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rk-story-card__download {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(28,37,57,0.82);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    transition: background 0.15s ease;
}

.rk-story-card__download:hover {
    background: rgba(28,37,57,1);
    color: #fff;
}

/* ── Story-Body ───────────────────────────────────────── */

.rk-story-card__body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.rk-story-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #1c2539;
    line-height: 1.3;
}

/* ── Share-Buttons ────────────────────────────────────── */

.rk-story-share-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rk-story-share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
    width: 100%;
    text-align: left;
}

.rk-story-share-btn:hover {
    opacity: 0.88;
    transform: translateX(2px);
}

.rk-story-share-btn--wa {
    background: #25D366;
    color: #fff;
}

.rk-story-share-btn--fb {
    background: #1877F2;
    color: #fff;
}

.rk-story-share-btn--ig {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.rk-story-share-btn--tt {
    background: #010101;
    color: #fff;
}

/* ── Coin-Bestätigung ─────────────────────────────────── */

.rk-story-confirm-btn {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    background: #ea5e20;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    margin-top: auto;
}

.rk-story-confirm-btn:hover:not(:disabled) {
    background: #d95316;
    transform: translateY(-1px);
}

.rk-story-confirm-btn--highlight {
    animation: rk-story-pulse 0.6s ease;
}

@keyframes rk-story-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(234,94,32,0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(234,94,32,0); }
    100% { box-shadow: 0 0 0 0 rgba(234,94,32,0); }
}

.rk-story-confirm-btn--done {
    background: #15803d;
    cursor: default;
}

.rk-story-confirm-btn:disabled {
    opacity: 1;
}

.rk-story-card__shared-notice {
    font-size: 13px;
    font-weight: 600;
    color: #15803d;
    background: rgba(22,163,74,0.10);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 600px) {
    .rk-story-cards {
        grid-template-columns: 1fr;
    }
    .rk-story-hub__reflink-row {
        flex-direction: column;
        align-items: stretch;
    }
    .rk-story-hub__copy-btn {
        text-align: center;
    }
}
