﻿/* ========== SOCIAL SHARE BUTTON STYLES ========== */

/* Fixed share button in top-right corner */
.share-button-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

    .share-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    }

    .share-btn:active {
        transform: translateY(0);
    }

    .share-btn svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

/* Share modal overlay */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

    .share-modal.active {
        display: flex;
    }

.share-modal-content {
    background: white;
    padding: 32px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.share-modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #111;
    margin: 0;
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

    .share-modal-close:hover {
        background: #f0f0f0;
    }

.share-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.share-platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    text-decoration: none;
    color: #111;
    transition: all 0.2s;
}

    .share-platform-btn:hover {
        border-color: #667eea;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.share-platform-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

    .share-platform-icon svg {
        width: 28px;
        height: 28px;
    }

.share-platform-name {
    font-size: 14px;
    font-weight: 600;
}

.share-url-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.share-url-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #666;
}

.share-url-input-group {
    display: flex;
    gap: 8px;
}

.share-url-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: monospace;
    background: #f9f9f9;
}

.copy-url-btn {
    padding: 12px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

    .copy-url-btn:hover {
        background: #5568d3;
    }

    .copy-url-btn.copied {
        background: #48bb78;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .share-platforms {
        grid-template-columns: repeat(2, 1fr);
    }

    .share-modal-content {
        padding: 24px;
    }

    .share-button-fixed {
        top: 10px;
        right: 10px;
    }

    .share-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}
