/* Social Media Floating Bar */
.social-media-bar {
    position: fixed;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    z-index: 999;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
    transform: translateY(150px);
    /* Hidden by default or when scrolling down */
    opacity: 0;
    pointer-events: none;
}

.social-media-bar.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.social-media-item {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-light, #ffffff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.2));
    overflow: hidden;
}

.social-media-item:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.social-media-item img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    border-radius: 4px;
    /* in case mostly square */
}

/* Social Media Modal */
.social-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.social-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.social-modal-body {
    background: var(--surface-color, #ffffff);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
}

.social-modal-overlay.active .social-modal-body {
    transform: scale(1) translateY(0);
}

.social-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 12px;
    object-fit: contain;
}

.social-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #333);
    margin-bottom: 8px;
}

.social-modal-content {
    font-size: 0.95rem;
    color: var(--text-secondary, #666);
    margin-bottom: 24px;
    word-break: break-all;
    background: var(--bg-color, #f5f5f5);
    padding: 12px;
    border-radius: 8px;
    border: 1px dashed var(--border-color, #ccc);
}

.social-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn-copy {
    background: var(--primary-color, #6a11cb);
    color: #fff;
}

.social-btn-copy:active {
    opacity: 0.8;
}

.social-btn-open {
    background: transparent;
    border: 1px solid var(--primary-color, #6a11cb);
    color: var(--primary-color, #6a11cb);
}

.social-btn-close {
    background: transparent;
    color: var(--text-secondary, #666);
    font-size: 0.9rem;
    padding: 8px;
}