/* =====================================================
   Share Modal & Red Share Icon Styles - IIT Bhilai Portal
   ===================================================== */

/* Red Circular Share Icon Button (As shown in Image 1) */
.red-share-btn,
.iitb-share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #9966f8 !important;
    color: #ffffff !important;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, background 0.25s ease;
    vertical-align: middle;
    margin-left: 6px;
    padding: 0;
    text-decoration: none !important;
    position: relative;
    z-index: 5;
}

.red-share-btn i,
.iitb-share-btn i {
    font-size: 18px;
    color: #ffffff;
    line-height: 1;
    margin: 0;
}

.red-share-btn:hover,
.iitb-share-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 18px rgba(255, 45, 85, 0.6);
    background: linear-gradient(135deg, #ff4d70 0%, #c91a3c 100%);
}

.red-share-btn:active,
.iitb-share-btn:active {
    transform: scale(0.95);
}

/* Floating Share Button (Bottom Right) */
.floating-share-btn {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #9966f8 !important;
    color: #ffffff;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 45, 85, 0.45);
    z-index: 99990;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-share-btn i {
    font-size: 20px;
    color: #ffffff;
}

.floating-share-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 24px rgba(255, 45, 85, 0.65);
}

/* Share Modal Backdrop & Container (As shown in Image 2) */
.share-popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.share-popup-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.share-popup-card {
    background: #ffffff;
    width: 100%;
    max-width: 460px;
    border-radius: 28px;
    padding: 36px 28px 28px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

.share-popup-backdrop.active .share-popup-card {
    transform: scale(1);
}

/* Close Button (top-right x) */
.share-popup-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
    outline: none;
    padding: 0;
}

.share-popup-close:hover {
    color: #475569;
    background: #f1f5f9;
}

/* Social Buttons Row (WhatsApp, LinkedIn, Twitter, Facebook) */
.share-social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 10px;
    margin-bottom: 28px;
}

.share-social-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
    outline: none;
}

.share-social-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.share-social-btn i {
    font-size: 26px;
    color: #ffc800; /* Gold/yellow icon color matching Image 2 */
}

/* Individual Social Icon Colors matching Image 2 */
.share-social-btn.whatsapp {
    background: #12c056; /* Vibrant Green */
}

.share-social-btn.linkedin {
    background: #0077b5; /* LinkedIn Blue */
}

.share-social-btn.twitter {
    background: #1da1f2; /* Twitter Sky Blue */
}

.share-social-btn.facebook {
    background: #1877f2; /* Facebook Blue */
}

/* URL Container Box */
.share-url-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 6px 6px 6px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.share-url-text {
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: left;
    user-select: all;
}

/* Dark Navy Copy Button */
.share-copy-btn {
    background: #0b132b;
    color: #ffffff;
    border: none;
    outline: none;
    border-radius: 12px;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.share-copy-btn i {
    color: #ffc800; /* Gold copy icon */
    font-size: 16px;
}

.share-copy-btn:hover {
    background: #152244;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 19, 43, 0.3);
}

.share-copy-btn:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .share-popup-card {
        padding: 30px 20px 24px 20px;
        border-radius: 22px;
    }
    .share-social-row {
        gap: 12px;
        margin-bottom: 22px;
    }
    .share-social-btn {
        width: 50px;
        height: 50px;
    }
    .share-social-btn i {
        font-size: 22px;
    }
    .share-url-box {
        padding: 5px 5px 5px 14px;
    }
    .share-copy-btn {
        padding: 9px 16px;
        font-size: 13px;
    }
}
