/**
 * Social Tabs Plugin - Styles
 * Hover panels for embeddable networks, direct links for others
 *
 * @since  1.2.0
 */

/* ===== Tab Container ===== */
.socialtabs {
    position: fixed;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.socialtabs--left { left: 0; }
.socialtabs--right { right: 0; }

/* ===== Tab (shared for button and link) ===== */
.socialtabs__tab {
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none !important;
    -webkit-appearance: none;
    appearance: none;
}
.socialtabs--left .socialtabs__tab {
    border-radius: 0 6px 6px 0;
    flex-direction: row;
}
.socialtabs--right .socialtabs__tab {
    border-radius: 6px 0 0 6px;
    flex-direction: row-reverse;
}
.socialtabs__tab--active {
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* ===== Icon ===== */
.socialtabs__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.socialtabs__icon svg {
    fill: currentColor;
    width: 60%;
    height: 60%;
}

/* ===== Label ===== */
.socialtabs__label {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 0 12px 0 4px;
    opacity: 0;
    transition: opacity 0.2s ease 0.05s;
    letter-spacing: 0.3px;
}
.socialtabs--right .socialtabs__label {
    padding: 0 4px 0 12px;
}
.socialtabs__tab:hover .socialtabs__label,
.socialtabs__tab:focus .socialtabs__label {
    opacity: 1;
}

/* ===== Focus / Accessibility ===== */
.socialtabs__tab:focus {
    outline: 2px solid #fff;
    outline-offset: -2px;
}
.socialtabs__tab:focus:not(:focus-visible) {
    outline: none;
}
.socialtabs__tab:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}
.socialtabs__tab:hover,
.socialtabs__tab:focus-visible {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ===== Slide-out Panel ===== */
.socialtabs-panel {
    position: fixed;
    z-index: 99999;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.25s ease,
                visibility 0.25s ease;
}
.socialtabs-panel--left {
    transform: translateX(-20px);
}
.socialtabs-panel--right {
    transform: translateX(20px);
}
.socialtabs-panel--open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ===== Panel Header ===== */
.socialtabs-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: #fff;
    min-height: 44px;
}
.socialtabs-panel__title {
    font-size: 15px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.socialtabs-panel__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.socialtabs-panel__close:hover,
.socialtabs-panel__close:focus { opacity: 1; }
.socialtabs-panel__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ===== Panel Body ===== */
.socialtabs-panel__body {
    overflow-y: auto;
    overflow-x: hidden;
    background: #f5f5f5;
}
.socialtabs-panel__content {
    width: 100%;
    height: 100%;
}
.socialtabs-panel__content iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .socialtabs--hide-mobile {
        display: none !important;
    }
    .socialtabs-panel {
        width: 90vw !important;
        left: 5vw !important;
        right: 5vw !important;
    }
}
