/* ============================================================
   SUPER SIDEBAR SHARING - PLUGIN STYLES
   ============================================================ */

.share-sidebar {
    position: fixed;
    left: 20px;
    /* 
       VERTIKALE POSITION / ABSTAND NACH OBEN:
       - Wir nutzen top: 35% ohne transform, damit der Hauptbutton beim Öffnen 
         stabil an seiner Position bleibt und die Leiste nur nach unten ausfährt.
       - Du kannst diesen Prozentwert (z.B. 30% oder 40%) ändern, um die Höhe anzupassen.
    */
    top: 35%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 99999; /* Sehr hoher z-index, damit die Leiste über allen WP-Elementen liegt */
}

/* Haupt-Button "Teilen" */
.share-toggle-btn {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1DC1B8;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.2s ease;
    z-index: 10;
}

.share-toggle-btn:hover {
    background-color: #F9D44D;
}

.share-toggle-btn:active {
    transform: scale(0.95);
}

/* Die Haupt-Teilen-Symbole (Weiß, absolut zentriert) */
.share-toggle-btn i {
    position: absolute;
    font-size: 20px;
    color: #ffffff; /* Symbole sind immer weiß */
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Standard-Zustand des Schließen-Symbols (verkleinert, gedreht und unsichtbar) */
.share-toggle-btn .fa-xmark {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}

/* Animationen, wenn die Sidebar geöffnet wird */
.share-sidebar.open .share-toggle-btn .fa-share-nodes {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

.share-sidebar.open .share-toggle-btn .fa-xmark {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Container für die ausfahrenden Buttons */
.share-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                margin-top 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                opacity 0.3s ease, 
                visibility 0.4s;
}

/* Wenn geöffnet: Ausfahren nach unten */
.share-sidebar.open .share-buttons-container {
    max-height: 350px; /* Ausreichend Platz für alle 5 Buttons + Abstände */
    margin-top: 10px;
    opacity: 1;
    visibility: visible;
}

/* Einzelne Sharing-Buttons */
.share-btn {
    display: flex;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background-color: #1DC1B8;
    color: #ffffff;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                background-color 0.3s ease, 
                box-shadow 0.3s ease;
    white-space: nowrap;
}

/* Hover-Effekt: Vergrößern und Farbänderung zu Gelb */
.share-btn:hover {
    width: 230px; /* Erweitert sich horizontal nach rechts */
    background-color: #F9D44D;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Wrapper für das Icon (hält das Icon zentriert im 50px Kreis) */
.share-icon-wrap {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.share-icon-wrap i {
    font-size: 20px;
    color: #ffffff; /* Symbole sind immer weiß */
    line-height: 1;
}

/* Beschriftungs-Text */
.share-label {
    padding-left: 5px;
    padding-right: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff; /* Schrift ist immer weiß */
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Text einblenden beim Hovern */
.share-btn:hover .share-label {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.25s ease 0.1s, transform 0.25s ease 0.1s;
}

/* Unterstreichungen und untere Rahmen vom Theme für unsere Buttons komplett deaktivieren */
.share-sidebar a, 
.share-sidebar a:hover, 
.share-sidebar a:focus, 
.share-sidebar a:active,
.share-sidebar a *,
.share-sidebar a *:hover {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}