/* * FEATURE: Viral Share Card (New Design)
 * File: viralgrid/assets/css/feature-share.css
 */

/* --- 1. The Main Card (Blockquote) --- */
.post-content blockquote {
    background: #fff;
    border: none;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    margin: 40px 0;
    font-size: 1.4rem; /* Larger, bolder text */
    font-weight: 600;
    color: #1f2937; /* Dark gray text */
    line-height: 1.6;
    
    /* The Glowy Box Shadow */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px; /* Inner radius */
    
    /* Creating the border space */
    border: 5px solid transparent;
    background-clip: padding-box;
    z-index: 1;
}

/* The Gradient Border Trick */
.post-content blockquote::before {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    background: linear-gradient(to bottom right, #6366f1, #ec4899, #ef4444);
    z-index: -1;
    border-radius: 16px; /* Outer radius matches border width */
}

/* Optional: White background layer just in case */
.post-content blockquote::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: -1;
    border-radius: 11px;
}

/* --- 2. Share Wrapper Layout --- */
.share-wrapper {
    display: flex;
    flex-direction: column; /* Stack buttons below icons */
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #f3f4f6; /* Subtle separator */
}

.share-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Container for the circular icons */
.share-icons-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

/* --- 3. Circular Share Buttons --- */
.viralgrid-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

/* The Round Social Icons */
.share-fb, .share-wa, .share-tw {
    width: 50px; 
    height: 50px;
    border-radius: 50%; /* Perfect circle */
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.share-fb svg, .share-wa svg, .share-tw svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.share-fb { background: #3b5998; }
.share-wa { background: #25d366; }
.share-tw { background: #1da1f2; }

.share-fb:hover, .share-wa:hover, .share-tw:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.25);
    color: #fff;
}

/* --- 4. The Big Copy Button --- */
.copy-btn {
    background: linear-gradient(90deg, #f97316, #ef4444); /* Orange to Red */
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 12px 40px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    width: 100%;
    max-width: 200px; /* Limit width on desktop */
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    color: #fff;
}

/* --- Dark Mode --- */
body.dark-mode .post-content blockquote {
    background: #1f2937;
    color: #f3f4f6;
}
body.dark-mode .post-content blockquote::after {
    background: #1f2937;
}
body.dark-mode .share-wrapper {
    border-top-color: #374151;
}
body.dark-mode .share-label {
    color: #9ca3af;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 600px) {
    .post-content blockquote {
        padding: 30px 20px;
        font-size: 1.25rem;
        margin: 30px 0;
        border-width: 3px; /* Slightly thinner border on mobile */
    }
    
    .post-content blockquote::before {
        top: -3px; left: -3px; right: -3px; bottom: -3px;
        border-radius: 14px;
    }
    
    .share-wrapper {
        gap: 15px;
        margin-top: 20px;
    }
    
    .share-fb, .share-wa, .share-tw {
        width: 45px; 
        height: 45px;
    }
    
    .copy-btn {
        padding: 12px 0;
        max-width: 100%; /* Full width button on mobile */
        font-size: 1rem;
    }
}