/**
 * Social Sharing Styles for Dirty Paws
 */

/* Share Container */
.social-share-container {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.share-title {
    margin: 0 0 15px;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

.share-btn i {
    font-size: 16px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Platform-specific colors */
.share-btn.facebook {
    background-color: #1877f2;
}

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

.share-btn.pinterest {
    background-color: #e60023;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.email {
    background-color: #555;
}

/* Floating Share Bar */
.floating-share-bar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: white;
    border-radius: 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 10px;
    transition: all 0.3s ease;
}

.floating-share-toggle {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8B4513;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.floating-share-toggle:hover {
    background: #6B3410;
    transform: scale(1.1);
}

.floating-share-buttons {
    display: none;
    margin-top: 10px;
}

.floating-share-bar.active .floating-share-buttons {
    display: block;
}

.floating-share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    color: white;
    margin: 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.floating-share-btn:hover {
    transform: scale(1.1);
}

/* Pinterest Pin It Button */
.pinterest-pin-wrapper {
    position: relative;
    display: inline-block;
}

.pinterest-pin-it-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e60023;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pinterest-pin-wrapper:hover .pinterest-pin-it-button {
    opacity: 1;
}

.pinterest-pin-it-button:hover {
    background: #c70020;
}

/* Share Incentive */
.share-incentive {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    animation: slideIn 0.5s ease;
}

.share-incentive p {
    margin: 0;
    color: #2e7d32;
    font-weight: 500;
}

.share-code {
    font-family: monospace;
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* Discount Modal */
.share-discount-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: bounceIn 0.5s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #666;
}

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

.discount-code {
    font-size: 28px;
    font-weight: bold;
    color: #8B4513;
    background: #fef5e7;
    padding: 15px 30px;
    border-radius: 10px;
    margin: 20px 0;
    font-family: monospace;
    letter-spacing: 2px;
}

.copy-code-btn {
    background: #8B4513;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-code-btn:hover {
    background: #6B3410;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-share-bar {
        bottom: 20px;
        left: 50%;
        top: auto;
        transform: translateX(-50%);
        flex-direction: row;
    }
    
    .floating-share-buttons {
        display: flex;
        margin-top: 0;
        margin-left: 10px;
    }
    
    .floating-share-bar.active .floating-share-buttons {
        display: flex;
    }
    
    .share-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}