/**
 * Component Stories Bar Stylesheet
 * Decoupled CSS from stories_bar.php
 */
.story-item-all-btn {
    cursor: pointer;
}

.story-ring-all {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
}

.story-avatar-all {
    background: #1E293B;
    color: #fff;
}

.story-ring-user {
    background: linear-gradient(135deg, #FF3E6C 0%, #F51E5C 100%);
    box-shadow: 0 4px 10px rgba(245, 30, 92, 0.25);
}

.story-viewer-meta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
}

.story-viewer-author-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.story-viewer-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    display: none;
}

.story-viewer-delete-btn {
    font-size: 18px;
    margin-right: 5px;
    display: none;
    background: none;
    border: none;
    color: #EF4444;
    cursor: pointer;
    outline: none;
}

.story-viewer-share-btn {
    font-size: 18px;
    margin-right: 5px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    outline: none;
}

.story-viewer-cta-box {
    position: absolute;
    bottom: 25px;
    left: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: calc(100% - 30px);
}

.story-coupon-sticker {
    display: none;
    background: rgba(251, 191, 36, 0.95);
    border: 1px dashed #D97706;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    color: #78350F;
    margin-bottom: 4px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    font-family: monospace;
    letter-spacing: 0.5px;
}

.story-product-btn-link {
    display: none;
    text-align: center;
    padding: 11px 20px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 100%;
}

.story-favorite-btn {
    display: none;
    text-align: center;
    padding: 11px 20px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    color: #fff;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 100%;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.story-wa-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 20px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    width: 100%;
}

.story-share-title {
    margin-top: 0;
    font-size: 16px;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 15px;
    text-align: center;
}

.story-share-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    background: #F8FAFC;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.story-share-qr-wrapper {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.story-share-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.story-share-qr-loader {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.story-share-qr-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.story-share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.story-share-button-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
}

.story-share-button-link--wa { color: #25D366; }
.story-share-button-link--fb { color: #1877F2; }
.story-share-button-link--x  { color: #0F1419; }

.story-share-button-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.story-share-button-icon--wa { background: #E8F8F0; }
.story-share-button-icon--fb { background: #E8F2FE; }
.story-share-button-icon--x  { background: #F1F5F9; }
.story-share-button-icon--copy { background: #EFF6FF; }

.story-share-copy-button {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    width: 100%;
}

.story-share-close-btn {
    background: #F1F5F9;
    color: var(--dark);
    font-weight: 700;
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

.bubble-back-btn-hidden {
    display: none;
}
