/**
 * Social features styling
 */

/* Like Button */
.like-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #f5f5f5;
    margin-right: 8px;
}

.like-btn:hover {
    background-color: #ffecec;
    color: #ff5252;
}

.like-btn.liked {
    color: #ff5252;
    background-color: #ffecec;
}

.like-btn i {
    font-size: 1.2rem;
    margin-right: 4px;
}

.like-count {
    font-size: 0.9rem;
    font-weight: 600;
}

.liked-animation {
    animation: pulse 0.7s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Share Button */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #f5f5f5;
}

.share-btn:hover {
    background-color: #e6f7ff;
    color: #1890ff;
}

.share-btn i {
    font-size: 1.2rem;
    margin-right: 4px;
}

/* Social Actions Container */
.social-actions {
    display: flex;
    margin-top: 10px;
}

/* Share Modal */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.share-modal {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.share-modal-header h3 {
    margin: 0;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #555;
}

.share-modal-body {
    padding: 20px;
}

.share-game-info {
    display: flex;
    margin-bottom: 20px;
}

.share-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.share-game-details h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.share-game-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.share-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.share-option:hover {
    background-color: #f5f5f5;
}

.share-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: white;
    background-color: #1890ff;
}

.facebook-icon {
    background-color: #1877f2;
}

.twitter-icon {
    background-color: #1da1f2;
}

.linkedin-icon {
    background-color: #0a66c2;
}

.link-icon {
    background-color: #666;
}

.share-link-container {
    display: flex;
    margin-top: 15px;
}

.share-link {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
}

.copy-link-btn {
    padding: 8px 15px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.copy-link-btn:hover {
    background-color: #40a9ff;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .share-options {
        flex-wrap: wrap;
    }
    
    .share-option {
        width: 50%;
        margin-bottom: 10px;
    }
    
    .share-game-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .share-thumbnail {
        margin-right: 0;
        margin-bottom: 10px;
    }
} 