/**
 * Fahim Caption Styler CSS
 * Version: 1.0.0
 * All class names prefixed with 'fahim-' to avoid conflicts
 */

.fahim-caption-container {
    max-width: 800px;
    margin: 1.5rem auto; /* Reduced margin */
}

.fahim-caption-box {
    background-color: #fff;
    border: 2px solid #22a566;
    border-radius: 8px;
    margin-bottom: 1.5rem; /* Reduced margin */
    padding: 1.2rem; /* Reduced padding */
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Enhanced shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fahim-caption-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.fahim-caption-decor {
    font-size: 1.2rem; /* Increased size for better visibility */
    margin: 0.3rem 0; /* Reduced margin */
    color: #22a566; /* Changed to match border color */
    letter-spacing: 3px; /* Increased spacing */
}

.fahim-caption-text {
    font-size: 1.3rem;
    line-height: 1.6;
    margin: 1.2rem 0; /* Reduced margin */
    font-weight: 500;
    color: #333;
}

.fahim-caption-share {
    margin-top: 1rem; /* Reduced margin */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* Ensure buttons stay in one row */
}

.fahim-share-label {
    margin-right: 0.6rem; /* Increased margin */
    font-weight: 600; /* Increased weight */
    color: #444; /* Darker color for better visibility */
    font-size: 0.85rem; /* Smaller size to save space */
}

.fahim-share-buttons {
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Space between buttons */
}

.fahim-share-btn {
    width: 36px; /* Slightly smaller */
    height: 36px; /* Slightly smaller */
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: bold; /* Bold letters */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Added shadow for better visibility */
}

.fahim-share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.fahim-share-btn:active {
    transform: scale(0.95);
}

.fahim-share-facebook {
    background-color: #3b5998;
    font-family: Arial, sans-serif;
}

.fahim-share-whatsapp {
    background-color: #25D366;
    font-family: Arial, sans-serif;
}

.fahim-share-twitter {
    background-color: #1DA1F2;
    font-family: Arial, sans-serif;
}

.fahim-share-copy {
    background-color: #00c4a7;
    width: auto;
    padding: 0 0.8rem; /* Reduced padding */
    border-radius: 18px;
    font-size: 0.8rem; /* Smaller font */
    font-weight: bold;
    letter-spacing: 0.5px; /* Better readability */
}

/* For mobile responsiveness */
@media (max-width: 600px) {
    .fahim-caption-box {
        padding: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .fahim-caption-text {
        font-size: 1.1rem;
        margin: 1rem 0;
    }
    
    .fahim-caption-share {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .fahim-share-buttons {
        flex-wrap: nowrap; /* Keep buttons in one row */
    }
    
    .fahim-share-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .fahim-share-copy {
        padding: 0 0.6rem;
        font-size: 0.75rem;
    }
}

/* For very small screens */
@media (max-width: 320px) {
    .fahim-caption-share {
        flex-direction: column;
        align-items: center;
    }
    
    .fahim-share-label {
        margin-bottom: 0.3rem;
        margin-right: 0;
    }
    
    .fahim-share-buttons {
        justify-content: center;
    }
}