/* ========== КНОПКА "ПОДЕЛИТЬСЯ" ========== */
.share-container {
    position: relative;
    margin: 10px 0 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #147072;
    border: none;
    border-radius: 40px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn:hover {
    transform: translateY(-2px);
    background: #116062;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.share-btn:active {
    transform: translateY(0);
}

.share-icon {
    transition: transform 0.3s ease;
}

.share-btn:hover .share-icon {
    transform: translateY(-2px) rotate(5deg);
}

.share-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    width: auto;
    padding: 10px;
    background: #116062;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 100;
}

.share-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.2s ease;
    border-radius: 12px;
}

.share-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* СПРАЙТ ИКОНОК */
.share-item-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('/static/images/sprite-share.png');
    background-repeat: no-repeat;
    background-size: 144px 24px;
}

.share-vk .share-item-icon { background-position: 0 0; }
.share-ok .share-item-icon { background-position: -24px 0; }
.share-max .share-item-icon { background-position: -48px 0; }
.share-telegram .share-item-icon { background-position: -72px 0; }
.share-instagram .share-item-icon { background-position: -96px 0; }
.share-copy .share-item-icon { background-position: -120px 0; }

.share-item-text {
    color: #fff;
}

/* Светлая тема */
body.light-theme .share-btn {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    color: #fff;
}

body.light-theme .share-menu {
    background: #fff;
    border: 1px solid #e2e8f0;
}

body.light-theme .share-item-text {
    color: #1e293b;
}

body.light-theme .share-item:hover {
    background: rgba(0, 0, 0, 0.05);
}
