/* ════════════════════════════════════════════════
   YH Social — Floating Bar
   Fixed to the right edge; each button slides open
   to reveal its label on hover/focus.
════════════════════════════════════════════════ */
.yhs-float-bar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.yhs-float-btn {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 48px;
    height: 48px;
    border-radius: 8px 0 0 8px;
    text-decoration: none;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: width 0.3s ease, box-shadow 0.25s ease;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.25);
}
.yhs-float-btn:hover,
.yhs-float-btn:focus-visible {
    width: 150px;
    box-shadow: -3px 3px 14px rgba(0,0,0,0.35);
    outline: none;
    color: #fff;
}

.yhs-float-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.yhs-float-label {
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.2s ease 0.1s, transform 0.2s ease 0.1s;
    padding-right: 12px;
}
.yhs-float-btn:hover .yhs-float-label,
.yhs-float-btn:focus-visible .yhs-float-label {
    opacity: 1;
    transform: translateX(0);
}

/* Brand colours */
.yhs-float-btn--fb { background: #1877f2; }
.yhs-float-btn--fb:hover { background: #0e5ec4; }
.yhs-float-btn--ig { background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%); }
.yhs-float-btn--ig:hover { filter: brightness(1.1); }
.yhs-float-btn--wa { background: #25d366; }
.yhs-float-btn--wa:hover { background: #1ebb57; }

/* Mobile — smaller, no expand */
@media (max-width: 600px) {
    .yhs-float-btn { width: 44px; height: 44px; border-radius: 6px 0 0 6px; }
    .yhs-float-btn:hover { width: 44px; }
    .yhs-float-label { display: none; }
    .yhs-float-icon { width: 44px; height: 44px; font-size: 18px; }
}

/* ════════════════════════════════════════════════
   Share Buttons Bar
   Appears below post content on sacred texts,
   albums and events.
════════════════════════════════════════════════ */
.yhs-share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 18px 0 8px;
    margin-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.yhs-share-label {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.7;
    margin-right: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.yhs-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    font-family: inherit;
}
.yhs-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    color: #fff;
    text-decoration: none;
}
.yhs-share-btn--fb  { background: #1877f2; }
.yhs-share-btn--fb:hover { background: #0e5ec4; }
.yhs-share-btn--wa  { background: #25d366; }
.yhs-share-btn--wa:hover { background: #1ebb57; }
.yhs-share-btn--copy { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }
.yhs-share-btn--copy:hover { background: rgba(255,255,255,0.18); }
.yhs-share-btn--copy.yhs-copied { background: #4caf50 !important; border-color: #4caf50 !important; }

/* ════════════════════════════════════════════════
   Facebook Feed wrapper
════════════════════════════════════════════════ */
.yhs-fb-feed-wrap {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 24px 0;
}
.yhs-fb-feed-wrap .fb-page,
.yhs-fb-feed-wrap .fb-page span,
.yhs-fb-feed-wrap .fb-page iframe {
    width: 100% !important;
}

/* ════════════════════════════════════════════════
   Facebook Feed — Native Cards
   Replaces the old iframe embed with styled post
   cards that match the YH website aesthetic.
════════════════════════════════════════════════ */
.yhs-fb-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 24px 0;
}

.yhs-fb-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,175,55,0.18);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.yhs-fb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
    border-color: rgba(212,175,55,0.45);
}

/* Image */
.yhs-fb-card__img-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: rgba(0,0,0,0.3);
}
.yhs-fb-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.yhs-fb-card:hover .yhs-fb-card__img {
    transform: scale(1.05);
}

/* Body */
.yhs-fb-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Date */
.yhs-fb-card__date {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #D4AF37;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Post text */
.yhs-fb-card__text {
    font-size: 14px;
    line-height: 1.65;
    opacity: 0.88;
    margin: 0;
    flex: 1;
}

/* CTA link */
.yhs-fb-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    padding: 8px 16px;
    background: #1877f2;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.yhs-fb-card__cta:hover {
    background: #0e5ec4;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

/* Error / empty states */
.yhs-fb-error {
    padding: 12px 16px;
    border: 1px solid #c00;
    border-radius: 6px;
    color: #c00;
    font-size: 13px;
}
.yhs-fb-empty {
    opacity: 0.6;
    font-style: italic;
    text-align: center;
    padding: 32px 0;
}

/* Single-column on narrow screens */
@media (max-width: 480px) {
    .yhs-fb-feed {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
