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

.fahim-caption-container {
    max-width: 800px;
    margin: 1rem auto;
}

.fahim-caption-box {
    background-color: #fff;
    border: none;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.fahim-caption-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.fahim-caption-decor {
    display: none;
}

.fahim-caption-text {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    color: #333;
    flex: 1;
}

.fahim-caption-share {
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
}

.fahim-share-label {
    display: none;
}

.fahim-share-buttons {
    display: flex;
    align-items: center;
    gap: 0;
}

.fahim-share-btn {
    width: auto;
    height: auto;
    border-radius: 4px;
    border: none;
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.fahim-share-btn:hover {
    transform: none;
    box-shadow: none;
}

.fahim-share-btn:active {
    transform: none;
}

.fahim-share-facebook {
    background-color: transparent;
    display: none;
}

.fahim-share-whatsapp {
    background-color: transparent;
    display: none;
}

.fahim-share-twitter {
    background-color: transparent;
    display: none;
}

.fahim-share-copy {
    background-color: #17a69f;
    width: auto;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0;
    display: flex;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 36px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fahim-share-copy:hover {
    background-color: #1a8f84;
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.fahim-share-copy:active {
    transform: scale(0.98);
}

/* For mobile responsiveness */
@media (max-width: 600px) {
    .fahim-caption-box {
        padding: 1rem;
        margin-bottom: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fahim-caption-text {
        font-size: 1rem;
        margin: 0 0 1rem 0;
        width: 100%;
    }
    
    .fahim-caption-share {
        flex-wrap: nowrap;
        justify-content: flex-end;
        width: 100%;
    }
    
    .fahim-share-buttons {
        flex-wrap: nowrap;
    }
    
    .fahim-share-btn {
        width: auto;
        height: auto;
        font-size: 0.85rem;
    }
    
    .fahim-share-copy {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* For very small screens */
@media (max-width: 320px) {
    .fahim-caption-box {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fahim-caption-text {
        margin: 0 0 1rem 0;
        width: 100%;
    }
    
    .fahim-caption-share {
        justify-content: flex-end;
        width: 100%;
    }
    
    .fahim-share-buttons {
        justify-content: flex-end;
    }
}
