/**
 * Upscale AI - Social Sharing Styles
 * Beautiful, modern social sharing buttons
 */

/* ===== PAGE SHARING SECTION ===== */
.upscale-share-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

.upscale-share-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px 0;
}

.upscale-share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== SOCIAL BUTTONS (Large) ===== */
.upscale-share-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.upscale-share-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.upscale-share-btn:hover::before {
    width: 100%;
    height: 100%;
}

.upscale-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.upscale-share-btn:active {
    transform: translateY(-1px);
}

.upscale-share-btn svg {
    position: relative;
    z-index: 1;
    width: 40px !important;
    height: 40px !important;
}

/* Facebook */
.upscale-share-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
    color: white;
}

/* Twitter/X */
.upscale-share-twitter {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
}

/* LinkedIn */
.upscale-share-linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    color: white;
}

/* WhatsApp */
.upscale-share-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
    color: white;
}

/* Telegram */
.upscale-share-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    color: white;
}

/* Copy Link */
.upscale-share-copy {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
}

/* ===== IMAGE SHARING BUTTONS (Small) ===== */
.upscale-image-share-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.upscale-share-btn-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.upscale-share-btn-small::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.upscale-share-btn-small:hover::before {
    width: 100%;
    height: 100%;
}

.upscale-share-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.upscale-share-btn-small svg {
    position: relative;
    z-index: 1;
}

/* Small button colors - same as large */
.upscale-share-btn-small[data-platform="pinterest"] {
    background: linear-gradient(135deg, #e60023 0%, #bd001c 100%);
    color: white;
}

.upscale-share-btn-small[data-platform="whatsapp"] {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
    color: white;
}

.upscale-share-btn-small[data-platform="telegram"] {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    color: white;
}

.upscale-share-btn-small[data-platform="facebook"] {
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
    color: white;
}

.upscale-share-btn-small[data-platform="twitter"] {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
}

/* ===== TOAST NOTIFICATIONS ===== */
.upscale-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0f172a;
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    white-space: nowrap;
}

.upscale-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.upscale-toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.upscale-toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* ===== SHARE CONTAINER (under download buttons) ===== */
.upscale-share-container {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.upscale-share-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .upscale-share-section {
        padding: 20px;
        margin: 30px 0;
    }

    .upscale-share-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .upscale-share-buttons {
        gap: 10px;
    }

    .upscale-share-btn {
        width: 48px;
        height: 48px;
    }

    .upscale-toast {
        bottom: 20px;
        left: 20px;
        right: 20px;
        transform: translateX(0) translateY(100px);
        text-align: center;
    }

    .upscale-toast.show {
        transform: translateX(0) translateY(0);
    }
}

/* ===== ANIMATIONS ===== */
@keyframes shareButtonPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.upscale-share-btn,
.upscale-share-btn-small {
    animation: shareButtonPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Stagger animation for multiple buttons */
.upscale-share-buttons .upscale-share-btn:nth-child(1) {
    animation-delay: 0s;
}

.upscale-share-buttons .upscale-share-btn:nth-child(2) {
    animation-delay: 0.05s;
}

.upscale-share-buttons .upscale-share-btn:nth-child(3) {
    animation-delay: 0.1s;
}

.upscale-share-buttons .upscale-share-btn:nth-child(4) {
    animation-delay: 0.15s;
}

.upscale-share-buttons .upscale-share-btn:nth-child(5) {
    animation-delay: 0.2s;
}

.upscale-share-buttons .upscale-share-btn:nth-child(6) {
    animation-delay: 0.25s;
}

/* ===== FIXED SIDEBAR (Bottom Left) ===== */
.upscale-fixed-share-sidebar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    animation: slideInFromLeft 0.5s ease-out;
}

.upscale-fixed-share-sidebar .upscale-share-btn {
    width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    font-weight: normal !important;
}

.upscale-fixed-share-sidebar .upscale-share-btn svg {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments for sidebar */
@media (max-width: 767px) {
    .upscale-fixed-share-sidebar {
        bottom: 10px;
        left: 10px;
        gap: 8px;
    }

    .upscale-fixed-share-sidebar .upscale-share-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        max-width: 44px !important;
        max-height: 44px !important;
    }

    .upscale-fixed-share-sidebar .upscale-share-btn svg {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
    }
}
