/* * 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: 24px 22px;
    text-align: center;
    position: relative;
    margin: 24px 0;
    font-size: 0.95rem; /* Larger, bolder text */
    font-weight: 600;
    color: #1f2937; /* Dark gray text */
    line-height: 1.6;
    
    /* The Glowy Box Shadow */
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border-radius: 10px; /* Inner radius */
    
    /* Creating the border space */
    border: 4px solid transparent;
    background-clip: padding-box;
    z-index: 1;
}

/* The Gradient Border Trick */
.post-content blockquote::before {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    background: linear-gradient(to bottom right, #6366f1, #ec4899, #ef4444);
    z-index: -1;
    border-radius: 14px; /* 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: 9px;
}

/* --- 2. Share Wrapper Layout --- */
.share-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6; /* Subtle separator */
    width: 100%;
}

/* Container for the circular icons */
.share-icons-row {
    display: flex;
    gap: 0;
    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-wa {
    width: 100%;
    height: 34px;
    border-radius: 7px; /* Square with soft corners */
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.16);
}

.share-wa svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.share-wa { background: #25d366; }

.share-wa:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    color: #fff;
}

/* --- 4. The Big Copy Button --- */
.copy-btn {
    background: linear-gradient(90deg, #f97316, #ef4444); /* Orange to Red */
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 8px;
    border-radius: 7px;
    text-transform: uppercase;
    letter-spacing: 0.25px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.28);
    width: 100%;
    max-width: none;
    min-height: 34px;
    white-space: nowrap;
}

.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: 20px 16px;
        font-size: 0.9rem;
        margin: 20px 0;
        border-width: 3px; /* Slightly thinner border on mobile */
    }
    
    .post-content blockquote::before {
        top: -3px; left: -3px; right: -3px; bottom: -3px;
        border-radius: 13px;
    }
    
    .share-wrapper {
        gap: 6px;
        margin-top: 8px;
        padding-top: 6px;
    }
    
    .share-wa {
        width: 100%;
        height: 30px;
        border-radius: 6px;
    }
    
    .copy-btn {
        padding: 5px 6px;
        font-size: 0.76rem;
        min-height: 30px;
    }
}
